Monitoring

Monitor Network Bandwidth On Linux

This article depends on Network Monitoring. I will share a few commands which will give you the points of interest of Network transmission capacity utilization. These are the best commands to get a quick look about your network utilization. These commands will monitor network transfer speed and bandwidth of all incoming and outgoing traffic.

1. NLOAD

Nload is a command line tool which is used to monitor network bandwidth of incoming and outgoing traffic. Nload is easy to use and no any other supported options are available.

In the event that you need to investigate incoming/outgoing traffic then nload will be the great choice.

$ apt-get install nload
$ nload

2. BMON

Bmon is like nload but bmon will give you some more detail. bmon (Bandwidth Monitoring) is another apparatus to monitor bandwidth on a Linux machine. The output of bmon tool additionally gives a diagram and packet details. you can pick ethernet alternative by up/down arrow to check bandwidth on the graph.

You can also use the “d” option to get extra network details.

$ apt-get install bmon
$ bmon

3. VNSTAT

vnstat is an alternate tool from different tools. It will keep running as a background process or daemon. Continue putting away the extent of information exchange constantly. You can be checked the historical backdrop of system bandwidth utilization with the usage of vnstat.

$ apt-get install vnstat
$ vnstat

When you run this vnstat first time it will give you notice message “eth3: Not enough data available yet“. Attempt this command after some time so the vnstat will assemble a few subtle elements identified with network usage.

If you want the current status of network usage then run below command with some options.

$ vnstat -l -i eth3

4. IFSTAT

ifstat give network usage in group style mode. Use beneath command of ifstat which gives you bandwidth with subtle elements of Time, information move In/Out and so forth.

We have utilized “- t” and “- I” alternative with ifstat command. – t give the time and – I is used to mentioning ethernet.

$ ifstat -t -i eth0

Samle outputs:

Time eth3
HH:MM:SS KB/s in KB/s out
17:54:13 5.69 1.40
17:54:14 3.16 0.18
17:54:15 1.66 0.00
17:54:16 2.21 0.06
17:54:17 3.98 0.12
17:54:18 2.84 0.00

5. DSTAT

dstat is an adaptable asset insights tool. dstat give you subtle elements in sections and unmistakably appears in what size and unit are shown. It will indicate details in exactly with the same time period. It is composed in python. You can utilize the choice to indicate different values with different colors. You can check “man page” for various alternatives.

$ apt-get install dstat
$ dstat

If you use only dstat command it will give you complete information like total-CPU-usage, dsk/total, net/total, paging etc.

$ dstat

Sample outputs:

—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
0 0 99 0 0 0| 17k 65k| 0 0 | 12B 164B| 434 1350
0 0 99 0 0 0| 0 0 |5365B 60B| 0 0 | 444 1151
1 0 99 0 0 0| 0 0 |4699B 78B| 0 0 | 486 3311
1 0 99 0 0 0| 0 0 |2220B 0 | 0 0 | 436 2033
1 0 98 0 0 0| 0 0 |5056B 0 | 0 0 | 638 2153
1 0 99 1 0 0| 0 40k |3869B 0 | 0 0 | 572 1701
1 0 99 0 0 0| 0 0 |5242B 0 | 0 0 | 545 3620
1 0 99 0 0 0| 0 8192B|3492B 300B| 0 0 | 530 2620
1 0 98 0 0 0| 0 0 |3437B 1007B| 0 0 | 528 1931
1 0 97 1 0 0| 0 140k |3834B 0 | 0 0 | 585 2274
1 0 98 0 0 0| 0 80k |2280B 125B| 0 0 | 535 4014

Use the below command to check only send/receive data.

$ dstat -nt

Sample outputs:

-net/total- —-system—-
recv send | time
0 0 |04-11 18:04:32
4747B 594B |04-11 18:04:33
2984B 294B |04-11 18:04:34
3817B 0 |04-11 18:04:35
4372B 60B |04-11 18:04:36
4762B 0 |04-11 18:04:37
10k 8557B |04-11 18:04:38
6344B 356B |04-11 18:04:39

Thanks:)

Thank you! for visiting LookLinux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at LookLinux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment