How Monitor Bandwidth in Real Time (Nload) on CentOS Debian
In This tutorial will analyze a simple but practical tool called Nload with which we can take real-time control over the bandwidth and thus determine if some processes are consuming this resource abnormally affecting traffic throughout the IT architecture.
What is Nload?
Nload is a command line tool through which we can take administrative control over network bandwidth by monitoring incoming and outgoing traffic through graphs and providing additional information such as data transfer and use of the network.
Install Nload on CentOS 7
The first step is to install the Epel repositories if you do not have them installed, and for this, we will execute the following command:
yum install epel-release
Once installed, we proceed to install Nload by executing the following command:
yum install nload
sudo apt install nload
How To Use Nload in CentOS 7
Once the application is installed, we proceed to monitor the state of the network by executing one of the following commands:
nload or nload enp0s3 (adapter_name)
We can visualize the outgoing and incoming data.
There are a series of useful keyboard shortcuts to obtain detailed information, these are:
- Left and right arrows to change the network device.
- F2 key to show the options window.
- F5 key to save the user's current configuration.
- F6 key to load the configuration files again.
- We will use the key combination Ctrl + C or the q key to exit nload.
If we want to deploy multiple devices at the same time, if we have them, we will use the -m parameter and the result will be the following:
We will use the -a parameter to determine the length in seconds the nload time sale which is 300 ms by default. We will use the following syntax:
nload -a 60
if we add the value -t we will indicate the update time of the screen which is by default 500, we must keep in mind that if we indicate a very low value the calculation of the traffic will not be adequate, we will use the following syntax for its adjustment:
nload -ma 400 -t 100
Finally, if we want to deploy a single device, we will use the following syntax:
nload devices (device_name)
This is how Nload allows us to have control over the bandwidth of our network in Linux distros and take better management over it.