Linux Check network card real-time traffic __linux

Source: Internet
Author: User
Tags switches nfsd

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.