:: Re: [DNG] ifconfig deprecated?
Góra strony
Delete this message
Reply to this message
Autor: Adam Borowski
Data:  
Dla: dng
Temat: Re: [DNG] ifconfig deprecated?
On Wed, Nov 22, 2017 at 10:45:12AM +0100, Martin Steigerwald wrote:
> For that I do not know a ip command out of the box. But
>
> merkaba:~> netstat -i
> Kernel-Schnittstellentabelle
> Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
> eth0      1500  6190114      0      0 0       2742172      0      0      0 
> BMRU
> lo       65536   334759      0      0 0        334759      0      0      0 LRU


Except that netstat is another part of the sinking ship.

The vast majority of netstat's functionality is in ss, usually even with
identical set of arguments, but as "netstat -i" shows information about
interfaces not sockets, it doesn't belong there.

You want "ip -s a", I'm too lazy to see if you can get just the counters.


Meow!
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢰⠒⠀⣿⡁ Imagine there are bandits in your house, your kid is bleeding out,
⢿⡄⠘⠷⠚⠋⠀ the house is on fire, and seven big-ass trumpets are playing in the
⠈⠳⣄⠀⠀⠀⠀ sky. Your cat demands food. The priority should be obvious...