Nethogs-Network traffic monitoring tool

Source: Internet
Author: User

Command iftop to check bandwidth usage, netstat to view interface statistics reports, and other tools BANDWIDTHD, speedometer, nethogs, Darkstat, Jnettop, Ifstat, Iptraf, Nload and ntop and so on. But these tools are statistical card access data, if you want to find a like 360 security guard on Windows, can be in real-time statistics per program network bandwidth utilization, then nethogs is the only tool you need.

1. Download
Address: http://jaist.dl.sourceforge.net/project/nethogs/nethogs/0.8/nethogs-0.8.0.tar.gz
Download Install package: nethogs-0.8.0.tar.gz (38.0 KB)

2. Installation

Yum install-y gcc gcc-c++ libpcap* libpcap-devel* ncurses*

TAR-ZXVF nethogs-0.8.0.tar.gz
CD Nethogs
Make && make install

3. Questions

If nethogs occurs when executing: IOCTL failed while establishing local IP for selected device eth0. Specify the device on the command line.

Need to find the right interface: IP route Show | grep default to see if it's eth0 or eth1.

Then in execution: Nethogs eth1

Original question: Https://askubuntu.com/questions/261024/nethogs-ioctl-failed-while-establishing-local-ip

4. Command line Parameters

The following is the Nethogs command line parameter, with '-d ' to add the refresh frequency parameter, ' device name ' is used to detect the bandwidth of a given or some device (default is eth0). For example: To set the refresh rate for 5 seconds, type the following command:

# nethogs-d 5

If only the network bandwidth used to monitor the device (eth0) can use the following command:

# nethogs Eth0

If you want to monitor both the eth0 and ETH1 interfaces, use the following command:

# nethogs Eth0 eth1

Additional parameters and usage:

-d:delay for Refresh Rate,default is 1.

-h:display available commands usage.

-p:sniff in promiscious mode (not recommended).

-t:tracemode.

-b:bughunt mode-implies TraceMode.

-v:prints Version Info.

Nethogs Interactive Control

Here are some useful interactive controls for Nethogs (keyboard shortcuts):

M:cycle between display modes (KB/S, KB, b, MB)

R:sort by ' received '

S:sort by ' sent '

Q:quit

Nethogs-Network traffic monitoring tool

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.