Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #185265

Re: No ifconfig [Was: no /etc/inittab]

From Darac Marjal <mailinglist@darac.org.uk>
Newsgroups linux.debian.user
Subject Re: No ifconfig [Was: no /etc/inittab]
Date 2017-08-15 16:20 +0200
Message-ID <ueKRj-2kD-5@gated-at.bofh.it> (permalink)
References (3 earlier) <ueHA6-bQ-7@gated-at.bofh.it> <ueIFP-RA-1@gated-at.bofh.it> <ueJBV-1pV-45@gated-at.bofh.it> <ueJLA-1Ix-17@gated-at.bofh.it> <ueK4W-1Pe-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Aug 15, 2017 at 09:29:37AM -0400, Greg Wooledge wrote:
>On Tue, Aug 15, 2017 at 03:03:35PM +0200, Dejan Jocic wrote:
>> And what exactly do you miss in ifconfig and net-tools package, that you
>> can not do with ip, which is part of iproute2 package that comes as part
>> of base system?
>
>What iproute2 and net-tools are BOTH missing is a sane, script-friendly,
>user-controllable output format.

Agreed. systemd's "journalctl" gets it right here - a human readable 
"short" output (admittedly, journalctl then goes overboard with the 
number of options for timestamps, but they ARE a thorny issue), a 
verbose output showing all the information and a json output which is 
MUCH more easily parsed by scripts (none of this "The third field from 
the left, except for the first line, which is a header" malarkey).

>
>What iproute2 is specifically missing (as far as I can determine):
>consistent option syntax, and any report analogous to "netstat -in":
>
>wooledg:~$ netstat -in
>Kernel Interface table
>Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
>eth0      1500  8254258      0      0 0       7682795      0      0      0 BMRU
>lo       65536   579959      0      0 0        579959      0      0      0 LRU
>
>In a world where virtually every possible output of every reporting
>command is atrociously hard to read, that one is the least bad.  You can
>actually get the interface names with only two reasonably simple parsing
>operations (strip the first line, then strip everything from the first
>whitespace to EOL).
>
>The closest analog I've found in iproute2 is "ip link", which looks like:
>
>wooledg:~$ ip link
>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
>    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
>    link/ether a0:8c:fd:c3:89:e0 brd ff:ff:ff:ff:ff:ff
>
>Parsing the interface names out of THAT is significantly harder.

Have you looked at "ip -s link"? It's not quite as easy to parse as 
"netstat -in", but all the information's there.

>
>The real tragedy is the missed opportunity.  Linux developers wrote
>iproute2 from scratch, but they failed to add any kind of user-specified
>output format (cf. ps h -o ppid, find -printf %h, etc.), or to sit down
>and THINK about how the user interface should be designed.  Instead of
>a clean, friendly, consistent, useful new tool we just got this weird
>monstrosity that feels like someone decided to change things just because
>they were bored one day, without any rhyme or reason or plan.
>

util-linux is, arguably, going the right way here. libsmartcols[1] 
allows for some rather flexible output options: trees, tables, UTF8 
handling, terminal-width truncation etc.

[1] http://karelzak.blogspot.co.uk/2014/05/libsmartcols-pretty-output-for-everyone.html


-- 
For more information, please reread.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

no /etc/inittab Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-14 11:50 +0200
  Re: no /etc/inittab Erik Christiansen <dvalin@internode.on.net> - 2017-08-14 13:00 +0200
    Re: no /etc/inittab Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-14 13:10 +0200
      Re: no /etc/inittab Nicolas George <george@nsup.org> - 2017-08-14 13:40 +0200
        Re: no /etc/inittab Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-14 13:50 +0200
        Re: no /etc/inittab Brian <ad44@cityscape.co.uk> - 2017-08-14 18:10 +0200
          Re: no /etc/inittab Joel Rees <joel.rees@gmail.com> - 2017-08-14 23:20 +0200
      Re: no /etc/inittab Joe <joe@jretrading.com> - 2017-08-14 14:00 +0200
        Re: no /etc/inittab Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-14 15:00 +0200
        Re: no /etc/inittab Nicolas George <george@nsup.org> - 2017-08-14 15:30 +0200
          Re: no /etc/inittab Joe <joe@jretrading.com> - 2017-08-14 15:50 +0200
            Re: no /etc/inittab Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-14 16:00 +0200
              Re: no /etc/inittab Darac Marjal <mailinglist@darac.org.uk> - 2017-08-14 16:10 +0200
                Re: no /etc/inittab Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-14 16:30 +0200
                Re: no /etc/inittab Darac Marjal <mailinglist@darac.org.uk> - 2017-08-14 16:40 +0200
                Re: no /etc/inittab Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-14 18:30 +0200
            Re: no /etc/inittab Henrique de Moraes Holschuh <hmh@debian.org> - 2017-08-14 16:30 +0200
              Re: no /etc/inittab Joe <joe@jretrading.com> - 2017-08-14 17:30 +0200
                Re: no /etc/inittab Henrique de Moraes Holschuh <hmh@debian.org> - 2017-08-14 18:20 +0200
                Re: no /etc/inittab David Wright <deblis@lionunicorn.co.uk> - 2017-08-15 19:10 +0200
          Re: no /etc/inittab Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-19 12:10 +0200
            Re: no /etc/inittab David Wright <deblis@lionunicorn.co.uk> - 2017-08-19 22:10 +0200
              Re: no /etc/inittab Joe <joe@jretrading.com> - 2017-08-19 23:00 +0200
    Re: no /etc/inittab deloptes <deloptes@gmail.com> - 2017-08-14 16:30 +0200
      No ifconfig [Was: no /etc/inittab] Erik Christiansen <dvalin@internode.on.net> - 2017-08-15 12:50 +0200
        Re: No ifconfig [Was: no /etc/inittab] Nicolas George <george@nsup.org> - 2017-08-15 14:00 +0200
          Re: No ifconfig [Was: no /etc/inittab] Erik Christiansen <dvalin@internode.on.net> - 2017-08-15 15:00 +0200
            Re: No ifconfig [Was: no /etc/inittab] Dejan Jocic <jodejka@gmail.com> - 2017-08-15 15:10 +0200
              Re: No ifconfig [Was: no /etc/inittab] Greg Wooledge <wooledg@eeg.ccf.org> - 2017-08-15 15:30 +0200
                Re: No ifconfig [Was: no /etc/inittab] Erik Christiansen <dvalin@internode.on.net> - 2017-08-15 16:10 +0200
                Re: No ifconfig [Was: no /etc/inittab] Darac Marjal <mailinglist@darac.org.uk> - 2017-08-15 16:20 +0200
                Re: No ifconfig [Was: no /etc/inittab] Greg Wooledge <wooledg@eeg.ccf.org> - 2017-08-15 16:50 +0200
                Re: No ifconfig Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-15 18:30 +0200
                Re: No ifconfig Greg Wooledge <wooledg@eeg.ccf.org> - 2017-08-15 19:00 +0200
                Re: No ifconfig Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-15 19:20 +0200
                Re: No ifconfig David Wright <deblis@lionunicorn.co.uk> - 2017-08-15 20:30 +0200
                Re: Re: No ifconfig [Was: no /etc/inittab] Clive Standbridge <list-user@tgstandbridges.plus.com> - 2017-08-16 10:00 +0200
                Re: No ifconfig [Was: no /etc/inittab] Gene Heskett <gheskett@shentel.net> - 2017-08-16 11:00 +0200
                Re: No ifconfig [Was: no /etc/inittab] <tomas@tuxteam.de> - 2017-08-16 12:00 +0200
                Re: No ifconfig [Was: no /etc/inittab] Greg Wooledge <wooledg@eeg.ccf.org> - 2017-08-16 14:30 +0200
                Re: Re: No ifconfig [Was: no /etc/inittab] Clive Standbridge <list-user@tgstandbridges.plus.com> - 2017-08-16 16:20 +0200
                Re: Re: No ifconfig [Was: no /etc/inittab] <tomas@tuxteam.de> - 2017-08-16 16:40 +0200
                Re: Re: Re: No ifconfig [Was: no /etc/inittab] Clive Standbridge <list-user@tgstandbridges.plus.com> - 2017-08-16 17:20 +0200
                Re: No ifconfig Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-15 18:40 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-15 19:50 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-15 19:50 +0200
                Re: No ifconfig David Wright <deblis@lionunicorn.co.uk> - 2017-08-15 20:20 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-15 21:00 +0200
                Re: No ifconfig Brian <ad44@cityscape.co.uk> - 2017-08-15 22:00 +0200
                Re: No ifconfig Curt <curty@free.fr> - 2017-08-15 22:10 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-16 04:00 +0200
                Re: No ifconfig Greg Wooledge <wooledg@eeg.ccf.org> - 2017-08-15 19:50 +0200
                No ifconfig [Was: no /etc/inittab] Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-28 09:40 +0200
              Re: No ifconfig [Was: no /etc/inittab] Erik Christiansen <dvalin@internode.on.net> - 2017-08-15 15:30 +0200
                Re: No ifconfig [Was: no /etc/inittab] Dejan Jocic <jodejka@gmail.com> - 2017-08-15 16:50 +0200
                Re: No ifconfig [Was: no /etc/inittab] Nicolas George <george@nsup.org> - 2017-08-15 17:10 +0200
                Re: No ifconfig [Was: no /etc/inittab] Gene Heskett <gheskett@shentel.net> - 2017-08-15 19:30 +0200
                Re: No ifconfig [Was: no /etc/inittab] David Wright <deblis@lionunicorn.co.uk> - 2017-08-15 20:20 +0200
                Re: No ifconfig [Was: no /etc/inittab] Gene Heskett <gheskett@shentel.net> - 2017-08-15 21:00 +0200
                Re: No ifconfig [Was: no /etc/inittab] Brian <ad44@cityscape.co.uk> - 2017-08-15 21:50 +0200
                Re: No ifconfig [Was: no /etc/inittab] Gene Heskett <gheskett@shentel.net> - 2017-08-16 04:00 +0200
                Re: No ifconfig [Was: no /etc/inittab] Nicolas George <george@nsup.org> - 2017-08-15 20:20 +0200
                Re: No ifconfig [Was: no /etc/inittab] Gene Heskett <gheskett@shentel.net> - 2017-08-15 21:00 +0200
              Re: No ifconfig [Was: no /etc/inittab] Felix Miata <mrmazda@earthlink.net> - 2017-08-15 16:10 +0200
                Re: No ifconfig [Was: no /etc/inittab] Henrique de Moraes Holschuh <hmh@debian.org> - 2017-08-15 16:40 +0200
                No ifconfig Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-19 10:10 +0200
                Re: No ifconfig Henrique de Moraes Holschuh <hmh@debian.org> - 2017-08-19 14:10 +0200
          Re: No ifconfig [Was: no /etc/inittab] Gene Heskett <gheskett@shentel.net> - 2017-08-15 17:30 +0200
            Re: No ifconfig [Was: no /etc/inittab] Glenn English <ghe2001@gmail.com> - 2017-08-15 18:40 +0200
              Re: No ifconfig Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-19 10:40 +0200
                Re: No ifconfig Zenaan Harkness <zenaan@freedbms.net> - 2017-08-19 11:40 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-19 15:30 +0200
                Re: No ifconfig Nicolas George <george@nsup.org> - 2017-08-19 15:50 +0200
                Re: No ifconfig Fungi4All <fungilife@protonmail.com> - 2017-08-19 16:20 +0200
                Re: No ifconfig Fungi4All <fungilife@protonmail.com> - 2017-08-19 16:20 +0200
                Re: No ifconfig Fungi4All <fungilife@protonmail.com> - 2017-08-19 16:30 +0200
                Re: No ifconfig Nicolas George <george@nsup.org> - 2017-08-19 17:10 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-19 20:40 +0200
                Re: No ifconfig Brian <ad44@cityscape.co.uk> - 2017-08-19 21:00 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-19 21:30 +0200
                Re: No ifconfig Brian <ad44@cityscape.co.uk> - 2017-08-19 21:40 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-19 21:50 +0200
                Re: No ifconfig Liam O'Toole <liam.p.otoole@gmail.com> - 2017-08-20 02:10 +0200
                Re: No ifconfig Nicolas George <george@nsup.org> - 2017-08-19 16:50 +0200
                Re: No ifconfig Ansgar Burchardt <ansgar@debian.org> - 2017-08-20 12:00 +0200
                Re: No ifconfig Fungi4All <fungilife@protonmail.com> - 2017-08-21 15:30 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-19 16:30 +0200
                Re: No ifconfig Brian <ad44@cityscape.co.uk> - 2017-08-19 19:50 +0200
                Re: No ifconfig Erik Christiansen <dvalin@internode.on.net> - 2017-08-20 14:40 +0200
                Re: No ifconfig <tomas@tuxteam.de> - 2017-08-20 14:50 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-20 17:50 +0200
                Re: No ifconfig Erik Christiansen <dvalin@internode.on.net> - 2017-08-21 05:20 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-21 06:00 +0200
                Re: No ifconfig Zenaan Harkness <zenaan@freedbms.net> - 2017-08-19 23:40 +0200
                Re: No ifconfig Liam O'Toole <liam.p.otoole@gmail.com> - 2017-08-20 02:20 +0200
                Re: No ifconfig Erik Christiansen <dvalin@internode.on.net> - 2017-08-20 14:50 +0200
                Re: No ifconfig Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-21 07:20 +0200
                Re: No ifconfig Greg Wooledge <wooledg@eeg.ccf.org> - 2017-08-21 15:00 +0200
                Re: No ifconfig Christian Seiler <christian@iwakd.de> - 2017-08-21 15:10 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-21 17:10 +0200
                Re: No ifconfig Christian Seiler <christian@iwakd.de> - 2017-08-21 18:20 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-21 19:10 +0200
                Re: No ifconfig Christian Seiler <christian@iwakd.de> - 2017-08-21 19:20 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-21 19:50 +0200
                Re: No ifconfig Christian Seiler <christian@iwakd.de> - 2017-08-21 20:10 +0200
                Re: No ifconfig Gene Heskett <gheskett@shentel.net> - 2017-08-21 21:50 +0200
                Re: No ifconfig Christian Seiler <christian@iwakd.de> - 2017-08-22 17:20 +0200
                Re: No ifconfig Sven Hartge <sven@svenhartge.de> - 2017-08-22 17:20 +0200
                Re: No ifconfig Eike Lantzsch <zp6cge@gmx.net> - 2017-08-21 17:30 +0200
                No ifconfig Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-28 10:40 +0200
                No ifconfig Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-28 10:20 +0200
                Re: No ifconfig Curt <curty@free.fr> - 2017-08-21 17:30 +0200
            Re: No ifconfig [Was: no /etc/inittab] David Wright <deblis@lionunicorn.co.uk> - 2017-08-15 19:10 +0200
              Re: No ifconfig [Was: no /etc/inittab] Gene Heskett <gheskett@shentel.net> - 2017-08-15 19:50 +0200
                Re: No ifconfig [Was: no /etc/inittab] Brian <ad44@cityscape.co.uk> - 2017-08-15 20:10 +0200
                Re: No ifconfig [Was: no /etc/inittab] Gene Heskett <gheskett@shentel.net> - 2017-08-15 20:50 +0200
                Re: No ifconfig [Was: no /etc/inittab] Brian <ad44@cityscape.co.uk> - 2017-08-15 21:30 +0200
                Re: No ifconfig [Was: no /etc/inittab] Gene Heskett <gheskett@shentel.net> - 2017-08-16 03:40 +0200
                Re: No ifconfig [Was: no /etc/inittab] David Wright <deblis@lionunicorn.co.uk> - 2017-08-15 21:30 +0200
                Re: No ifconfig [Was: no /etc/inittab] Gene Heskett <gheskett@shentel.net> - 2017-08-16 03:50 +0200
                Re: No ifconfig [Was: no /etc/inittab] David Wright <deblis@lionunicorn.co.uk> - 2017-08-16 06:40 +0200
    Re: no /etc/inittab Brian <ad44@cityscape.co.uk> - 2017-08-14 21:30 +0200
      Re: obsolete wiki (was: no /etc/inittab) Felix Miata <mrmazda@earthlink.net> - 2017-08-14 22:40 +0200
        Re: obsolete wiki (was: no /etc/inittab) Brian <ad44@cityscape.co.uk> - 2017-08-14 23:20 +0200
          Re: obsolete wiki Felix Miata <mrmazda@earthlink.net> - 2017-08-14 23:50 +0200
            Re: obsolete wiki rhkramer@gmail.com - 2017-08-15 16:10 +0200
              Re: obsolete wiki Brian <ad44@cityscape.co.uk> - 2017-08-15 19:20 +0200
                Re: obsolete wiki Greg Wooledge <wooledg@eeg.ccf.org> - 2017-08-15 19:40 +0200
                Re: obsolete wiki rhkramer@gmail.com - 2017-08-16 14:30 +0200
                Re: obsolete wiki Brian <ad44@cityscape.co.uk> - 2017-08-16 16:20 +0200
              Re: obsolete wiki Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-28 11:20 +0200
                Re: obsolete wiki rhkramer@gmail.com - 2017-08-28 12:50 +0200
          obsolete wiki (was: no /etc/inittab) Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-28 08:20 +0200
        Re: obsolete wiki (was: no /etc/inittab) Gene Heskett <gheskett@shentel.net> - 2017-08-15 00:20 +0200
          Re: obsolete wiki (no /etc/inittab) Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-19 11:50 +0200
            Re: obsolete wiki (no /etc/inittab) Pierre Frenkiel <pierre.frenkiel@gmail.com> - 2017-08-19 15:10 +0200
            Re: obsolete wiki (no /etc/inittab) Gene Heskett <gheskett@shentel.net> - 2017-08-19 16:00 +0200
              Re: obsolete wiki (no /etc/inittab) Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-19 20:00 +0200
                Re: obsolete wiki (no /etc/inittab) Gene Heskett <gheskett@shentel.net> - 2017-08-19 21:10 +0200
                Re: obsolete wiki (no /etc/inittab) Brian <ad44@cityscape.co.uk> - 2017-08-19 21:30 +0200
                Re: obsolete wiki (no /etc/inittab) Greg Wooledge <wooledg@eeg.ccf.org> - 2017-08-21 15:10 +0200
                Re: obsolete wiki (no /etc/inittab) Gene Heskett <gheskett@shentel.net> - 2017-08-21 16:30 +0200
                obsolete wiki (no /etc/inittab) Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-28 09:00 +0200
  Re: no /etc/inittab Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2017-08-19 10:40 +0200

csiph-web