SAR command parameters A lot, there is time man a bit. The-n parameter is useful, he has 6 different switches: DEV | Edev | NFS | NFSD | SOCK | All. The dev Displays the network interface information, Edev displays statistics about network errors, NFS Statistics active NFS Client information, NFSD statistics Server for NFS, sock displays socket information, all shows all 5 switches. They can be used alone or together. We're going to use the-N dev now. Input command: Sar–n DEV 1 4
After the command 1 4 means: Take the value once every second, take four times. Iface:lan interface rxpck/s: Packets Received per second TXPCK/S: Packets sent per second rxbyt/s: Bytes received per second txbyt/s: Bytes sent per second RXCMP/S: Compressed packets received per second txcmp/ S: Compressed packets sent per second rxmcst/s: Multicast packets received per second Iface:lan interface rxerr/s: Bad packets received per second txerr/s: Bad packets sent per second coll/s: collisions per second rxdrop/s: Because the buffers are full, Number of received packets dropped per second txdrop/s: The number of sent packets dropped per second txcarr/s: The number of carrier errors per second when sending packets rxfram/s: The number of frame alignment errors received per second for packets rxfifo/ S: Number of errors received per second FIFO error TXFIFO/S: The number of errors sent per second FIFO too fast goto: http://blog.csdn.net/wzx19840423/article/details/50854360
Linux View network traffic commands