Network Monitoring commands in Linux

Source: Internet
Author: User


Monitor the overall bandwidth usage

nload command

Official website: http://www.roland-riegel.de/nload/index.html

can also be installed via Yum

Yun-y Install Nload

Parameters Description
-T
Set refresh interval in milliseconds, default 500
-I. Set the traffic graph display scale for the inbound, default 10240
-O Set the outbound traffic graph display scale, default 10240
-U

Set the display unit when the transmission amount is displayed, in bit bit units

b:bit/s

k:kbit/s

m:mbit/s

-U

Sets the display unit for the display of the transfer amount, in bytes

b:byte/s

k:kbyte/s

m:mbyte/s

Monitor all network ports and switch the network card with the left and right arrows on the keyboard

Nload-i 2000-u m

Monitor designated network ports

Nload eth1-i 200-u m

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/8E/E2/wKiom1jOSJXgKJ2aAADphF3c_e4270.png "title=" Snip20170319_112.png "alt=" Wkiom1josjxgkj2aaadphf3c_e4270.png "/>


Monitor the bandwidth usage of sockets

Iftop command

You can detect the data that is transmitted by each socket connection, but it cannot display the process ID of a socket.

Usually use Yum Android

Yum-y Install Iftop

Command parameters Description
-N Do not host name resolution, that is, display IP address
-P Display Port number
-I. Specify the network interface for monitoring
Iftop-np

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/8E/E2/wKiom1jOTTnz47aXAAJ7Za5A_YQ522.png "title=" Snip20170319_114.png "alt=" Wkiom1jottnz47axaaj7za5a_yq522.png "/>"= Send <= representative to receive

Right-most three-column number representing 2-second, 10-second, and 40-second average traffic

TX: Indicates the total amount sent

RX: Indicates the total amount received

Total: All amounts indicated

Note: Press the following key during display to toggle mode

T: Whether to show the total traffic per connection

B: Average flow of 2 seconds, 10 seconds, and 40 seconds, respectively

P: Pause/Resume Display


Iptraf command:

A ncurses-based IP LAN monitoring tool that shows the amount of data transmitted directly by each connection and the host, TCP information, UDP count, ICMP, OSPF information, Ethernet payload information, node status information, and so on.

Yum-y Install Iptraf

Command parameters Description
-G Show traffic conditions for all network ports
-D <interface>
Network traffic in the specified network port monitoring details
-S <interface> Monitor TCP, UDP network traffic on specified network ports
-Z <interface>
Number of statistics packets on the specified network port
-L <interface>
Monitor all statistics through this port at the specified network ports


Monitor the bandwidth usage of the process

Netthogs command

You can display the bandwidth used by each process and sort the list, consuming the highest bandwidth on top, which can report PID, user, and path.

Yum-y Install Nethogs

Name parameter Description
-C <Num> The refresh rate, by default, is 0, which means no limit and always refreshes.
-S Sort the Sent column
-T TraceMode mode

When run-time press:

Q: Exit

S: Sort the Sent column

R: Sort the Reveive

M: Toggle Display Units

Nethogs

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8E/E0/wKioL1jOXziDYKzhAAPTMiVFX0M775.png "title=" Snip20170319_116.png "alt=" Wkiol1joxzidykzhaaptmivfx0m775.png "/>


This article is from the "Little Demon's Home" blog, so be sure to keep this source http://littledevil.blog.51cto.com/9445436/1908155

Network Monitoring commands in Linux

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.