Sar–n DEV 1 2
After the command 1 2 means: 1 times every second, 2 times.
Dev Display Network interface information
The-n parameter is useful, he has 6 different switches: DEV | Edev | NFS | NFSD | Sock | All.
DEV Displays network interface information,
EDEV displays statistical data about network errors,
NFS Statistics activity for NFS client information,
NFSD Statistics Server for NFS information,
Sock displays socket information,
All 5 switches are displayed. They can be used individually or together. Now we're going to use the-N dev.
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20-21 |
# sar-n dev 1 2 Linux 2.6.32-358.el6.x86_64 (DB1) 03/21/2016&nbs p; _x86_64_ (CPU) 10:29:58 AM iface rxpck/s txpck/s rxkb/s & nbsp; txkb/s rxcmp/s txcmp/s rxmcst/s 10:29:59 nbsp; lo 16.00 16.00 0.77 0.77 0.00 0.00 0.00 10:29:59 am eth0 48.00 31.00 20.06 15.77 0.00 0.00   &NBsp; 1.00 10:29:59 am eth1 149.00 123.00 172.56 135.93 0.00 0.00 0.00 10:29:59 am eth2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10:29:59 am iface rxpck/s txpck/s rxkb/s txkb/s rxcmp/s txcmp/s rxmcst/s |