Linux nload and iftop view network usage

Source: Internet
Author: User
Tags unique id

Operating system: CENTOS7

Nload:
Yum install-y gccyum install-y gcc-c++yum install-y ncurses-develyum install-y wget wget http://www.roland-riegel.de/n Load/nload-0.7.4.tar.gztar zxvf nload-0.7.4.tar.gz cd nload-0.7.4./configuremakemake Install

  

Introduction:

The display information for the nload is also supported for the set display unit. We can add the-u parameter, which can then be followed by H (which is automatically formatted as a readable unit), B (denoted as bit/s), K (denoted as kbit/s), m (represented as Mbit/s), and G (represented as gbit/s). For example, below we enter the command "Nload-u M", which is in megabytes.

The default top incoming is the traffic that enters the NIC;
The default bottom outgoing is the network card out of traffic;
Default right (curr current traffic), (AVG average traffic), (min min traffic), (max Max traffic), (TTL traffic statistics)

Nload Network card name-you display in what units

Nload ens33-u m

Iftop:

centos7.4 64-bit installation iftop traffic monitoring, first for the dependent package installation

Yum install libpcap libpcap-devel ncurses ncurses-devel wget

Download Iftop latest installation package after completion

wget http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz

Unzip the appropriate package, then configure the installation

Tar xzf iftop-1.0pre4.tar.gz cd iftop-1.0pre4  ./configure && make && make install

After the completion of the direct input iftop can, here is also a point to remind you that some server configuration when the default network card is not set to the external network card, resulting in iftop after the data is empty, this time you can perform IP addr command to obtain the server all the network card name, find the corresponding network network card unique identification, Then enter the command as follows

IP addr# assume that the unique ID of the extranet adapter is eth0iftop-i eth0

Related parameter Description:
TX: Send Traffic
RX: Receive Traffic
Total: Overall flow
Cumm: Total traffic since running Iftop
Peak: Maximum Flow
Rates: Indicates the total average traffic of the NIC in the past 2s 10s 40s time, respectively

1 iftop Common parameter excerpt2-I set the monitoring network card, such as: # Iftop-I eth13-B displays traffic in bytes (default is bits), such as: # Iftop-B4-N Causes the host information to display the IP directly by default, such as: # Iftop-N5-N causes port information to be displayed by default directly, such as: # Iftop-N6-F shows incoming and outgoing traffic for a specific network segment, such as # iftop-f192.168.1.0/24 or # Iftop-f192.168.1.0/255.255.255.07-H (Display Thismessage), help, display parameter information8-p Use this parameter, the middle of the list shows the local host information, the presence of this computer outside the IP information;9-b The Flow graph bar is displayed by default;Ten-F This will not be used for the time being, filter the calculation of the packet; One-p The host information and port information are displayed by default; A-M sets the maximum value of the top-most scale of the interface, with a scale of five large segments, for example: # Iftop-m 100M - some operation commands after entering the Iftop screen (note case) - Press N to toggle the display of the IP or host name of the machine; the Press S to toggle whether the host information of the machine is displayed; - Press D to toggle whether the host information of the remote target hosts is displayed; -Press T to toggle display format to 2 lines/1 lines/Only send traffic/only the received traffic is displayed; - Press N to toggle display port number or port service name; + Press S to toggle whether to display the port information of the machine; - Press D to toggle whether the port information of the remote target host is displayed; + Press p to toggle whether the port information is displayed; APress p to toggle pause/continue to show; at Press B to toggle whether the average flow graph bar is displayed; - the average flow in 2 seconds or 10 seconds or 40 seconds is calculated by B switch; - Press T to toggle whether the total traffic for each connection is displayed; - Press L to turn on the screen filtering function, enter the characters to filter, such as IP, press ENTER, the screen will only show this IP-related traffic information; - Press L to toggle the scale on the top of the display screen, and the flow graph bar will change depending on the scale ; - Press J or press K to scroll up or down the screen to display the connection record; in Press 1 or 2 or 3 to sort by the three-column traffic data displayed on the right; - Sort by host name or IP based on remote target host; to Press O to toggle whether the current connection is fixed only; +Press Q to exit the monitor.
Other Parameters

Linux nload and iftop view network usage

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.