How to view Linux Nic traffic and Its Features

Source: Internet
Author: User
Tags nfsd

In Linux, there are many ways to view Nic traffic. Next we will record several methods for viewing Linux Nic traffic and their respective features. It is displayed in text and text format. Let's take a look at the detailed introduction, which is required in the future.
I. iptraf is a good tool for viewing Linux Nic traffic. RHEL5 iso comes with it. My system is not installed by default. He can collect statistics based on different protocols, ports, and network adapters as needed. In short, he is a powerful tool. Enter iptraf in the command line to enter a text GUI, as shown below:

Ip traffic monitoring simple traffic statistics detailed traffic statistics this is not clear Lan statistics Fileters: Set Some filtering options, such as: ip, arp rarp and so on. Configure: Some configuration options, one of which is useful is log configuration. You can specify the location where the monitoring information is saved as logs. Select --------------- first.

 

Select All NICs.

I have enabled the log function. The log storage location is default.

I used a virtual machine in this experiment, and my real machine was continuously running the ping testing machine. This tool also has some command parameters, which are actually the above options. Very convenient. You can use man. 2: For the Linux Nic traffic check nload tool, RHEL5 does not come with it. You need to download and install it on your own. In the command line

Enter the command directly. The following result is displayed. Left, very intuitive, very good. Iii. ifstat
RHEL5 does not come with it, but it is also a good and easy-to-use tool. After installation, enter the command. The result is as follows:


If there are multiple NICs, there will be multiple columns. Pretty good. IV. In Linux Nic traffic view, the sar tool RHEL5 comes with it. It is also installed by default. A powerful tool seems to be quite powerful.) There are a lot of parameters, and there is time for man. The-n parameter is useful. It has six different switches: DEV | EDEV | NFS | NFSD | SOCK | ALL. DEV displays network interface information, EDEV displays statistics on network errors, NFS statistics on active NFS clients, NFSD statistics on NFS servers, and SOCK displays concatenation information, ALL shows ALL 5 switches. They can be used independently or together. -N DEV is used now. Enter the command: sar-n DEV 1 4 <! -- [If! Vml] -->

The value 1 4 after the command indicates that the value is obtained once every second and four times. IFACE: LAN interface
Rxpck/s: packets received per second
Txpck/s: Packets sent per second
Rxbyt/s: number of bytes received per second
Txbyt/s: number of bytes sent per second
Rxcmp/s: compressed data packets received per second
Txcmp/s: compressed data packets sent per second
Rxmcst/s: multicast packet received per second

IFACE: LAN interface rxerr/s: Bad packet received per second txerr/s: Bad packet sent per second coll/s: number of conflicts per second rxdrop/s: Because the buffer is full, number of received packets discarded per second txdrop/s: Because the buffer is full, the number of sent packets discarded per second txcarr/s: the number of carrier errors per second during packet sending rxfram/s: number of frame alignment errors of received packets per second rxfifo/s: number of received packets per second FIFO transmission errors txfifo/s: below are several simpler methods for sending the number of errors that pass through the FIFO packet per second. Although we can see the traffic statistics, it is too simple and not intuitive. Command: [root @ station204 ~] # Watch more/proc/net/dev

 

Command: [root @ station204 ~] # Watch ifconfig

In addition, for Linux Nic traffic viewing iftop, RHEL5 does not come with it. I use it and do not like it. There is also an mtr tool, which comes with REHL5. It is installed by default and features are also available.

  1. Detailed introduction to linux performance monitoring
  2. Development and Application of linux Network Monitoring System
  3. How to share Linux traffic monitoring
  4. System Monitoring: linux System Monitoring command details
  5. Linux memory monitoring process details

Related Article

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.