使用sar显示网络流量
sar
sar -n DEV 1 1016:48:15 IFACE rxpck/s txpck/s rxbyt/s txbyt/s rxcmp/s txcmp/s rxmcst/s
16:48:16 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00
16:48:16 eth0 1882.00 1692.00 1278403.00 675412.00 0.00 0.00 0.00
16:48:16 eth1 1733.00 2010.00 928858.00 703407.00 0.00 0.00 3.00
16:48:16 eth2 0.00 0.00 0.00 0.00 0.00 0.00 0.00
16:48:16 eth3 0.00 0.00 0.00 0.00 0.00 0.00 0.00
16:48:16 sit0 0.00 0.00 0.00 0.00 0.00 0.00 0.00
16:48:16 bond0 3615.00 3702.00 2207261.00 1378819.00 0.00 0.00 3.00
16:48:16 vif0.0 0.00 0.00 0.00 0.00 0.00 0.00 0.00
16:48:16 veth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00
16:48:16 vif0.1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
16:48:16 veth1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
...ifstat
iptraf
iftop
nethogs
参考
Last updated