1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| $ ifstat -V ifstat utility, iproute2-ss170501
$ ifstat
Interface RX Pkts/Rate TX Pkts/Rate RX Data/Rate TX Data/Rate RX Errs/Drop TX Errs/Drop RX Over/Rate TX Coll/Rate lo 465914 0 465914 0 625885K 0 625885K 0 0 0 0 0 0 0 0 0 eth0 8088K 0 829431 0 1527M 0 1036M 0 0 162 0 0 0 0 0 0
$ more /tmp/.ifstat.u0
1 lo 466027 0 466027 0 625892330 0 625892330 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 eth0 8092621 0 830397 0 1527932937 0 1036848657 0 0 0 0 0 162 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$ ifstat
Interface RX Pkts/Rate TX Pkts/Rate RX Data/Rate TX Data/Rate RX Errs/Drop TX Errs/Drop RX Over/Rate TX Coll/Rate lo 2 0 2 0 104 0 104 0 0 0 0 0 0 0 0 0 eth0 5 0 4 0 360 0 392 0 0 0 0 0 0 0 0 0
$ ifstat -a
$ ifstat -j {"kernel":{"lo":{"rx_packets":466070,"tx_packets":466070,"rx_bytes":625895786,"tx_bytes":625895786,"rx_errors":0,"tx_errors":0,"rx_dropped":0,"tx_dropped":0,"multicast":0,"collisions":0},"eth0":{"rx_packets":8093534,"tx_packets":830501,"rx_bytes":1527989911,"tx_bytes":1036857851,"rx_errors":0,"tx_errors":0,"rx_dropped":162,"tx_dropped":0,"multicast":0,"collisions":0}}}
$ ifstat -j {"kernel":{"lo":{"rx_packets":466171,"tx_packets":466171,"rx_bytes":625902258,"tx_bytes":625902258,"rx_errors":0,"tx_errors":0,"rx_dropped":0,"tx_dropped":0,"multicast":0,"collisions":0},"eth0":{"rx_packets":8096750,"tx_packets":831115,"rx_bytes":1528196531,"tx_bytes":1036914347,"rx_errors":0,"tx_errors":0,"rx_dropped":162,"tx_dropped":0,"multicast":0,"collisions":0}}} $ ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.31.80 netmask 255.255.255.0 broadcast 192.168.31.255 inet6 fe80::2daa:d1ea:5915:ce9f prefixlen 64 scopeid 0x20<link> ether 00:50:56:2f:07:60 txqueuelen 1000 (Ethernet) RX packets 8096769 bytes 1528197941 (1.4 GiB) RX errors 0 dropped 162 overruns 0 frame 0 TX packets 831126 bytes 1036915361 (988.8 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 466171 bytes 625902258 (596.9 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 466171 bytes 625902258 (596.9 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|