Network based systems

How to use bmon to monitor network bandwidth in Linux 2022

This tutorial is about using bmon to monitor network bandwidth on Linux. We will do our best for you to understand this guide. I hope you will like this blog How to use bmon to monitor network bandwidth in Linux. If your answer is yes, please share after reading this.

Check How to use bmon to monitor network bandwidth in Linux

bmon is a simple yet powerful text-based network monitoring and debugging tool for Unix-like systems that collects network-related statistics and displays them visually in an easy-to-use format. It is a reliable and efficient real-time bandwidth monitor and throughput estimator. It can read input with a variety of input modules and present output in a variety of output modes, including an interactive cursive user interface, as well as programmable text output for scripting purposes. Almost all Linux distributions have the bmon package in the standard repositories and can be easily installed using the standard package manager, but the version available may be a bit older.

We are talking about running an internet speed test from the Linux command line. This is great for testing your internet speed. But what if you want to monitor the bandwidth usage of an internal connection? Enter bmon, a lightweight real-time command-line bandwidth monitoring tool. The bmon utility is a tool that provides network interface usage information on the command line, but in a very familiar way. The bmon utility is widely used, easy to install and start. Let’s dive. Bmon Stands is an open source tool for bandwidth monitoring tool. bmon is a powerful CLI-based network bandwidth monitoring and debugging tool for Unix/Linux systems to collect network related statistics and present them visually on the command line in an easy to use way. Records traffic usage on all network interfaces in the system. It is an efficient and fast real-time network bandwidth monitor and throughput estimator.

Installing bmon on Linux:

It can be easily installed from the default package manager, as almost all Linux distributions have the bmon package in the default repositories, but the available version might be a bit older.

On RHEL/CentOS/Fedora:

On Fedora 22+:

On Debian/Ubuntu/Mint:

  • $ sudo apt-get install bmon

On the openSUSE system:

On Arch Linux-based systems:

For the latest version of bmon (i.e. version 4.0), you need to compile it from source using the following commands for different Linux distributions:

For Debian-based systems:

  • $ git clone https://github.com/tgraf/bmon.git
  • $ cd b monday
  • $ sudo apt-get install build-essential make libconfuse-dev libnl-3-dev libnl-route-3-dev libncurses-dev pkg-config dh-autoreconf
  • $ sudo ./autogen.sh
  • $ sudo ./configure
  • $ sudo do
  • $ sudo make install
  • $ month

For CentOS 6, RHEL-based systems:

  • $ git clone https://github.com/tgraf/bmon.git
  • $ cd bmon
  • $ sudo yum install make libconfuse-devel libnl3-devel libnl-route3-devel ncurses-devel
  • $ sudo ./autogen.sh
  • $ sudo./configure
  • $ sudo do
  • $ sudo make install
  • $ month

For OSX installation:

Full help is provided via the following command:

Bandwidth Monitor (BMON): Getting Started

Running bmon to capture live bandwidth usage

After successfully completing the bmon installation using the above commands for different distributions, simply type the following command to run the bmon tool:

Configure the specific interface to display:

-To monitor the enp1s0 network interface, we will use the -p flag to set a policy that defines the network interfaces to display as follows:

To see the output in bits per second instead of bytes per second, use the -b flag like this:

To set intervals per second, use the -r flag as shown below:

To use bmon input modules:

  • Netlink uses the Netlink protocol to collect interface statistics and kernel traffic control.
  • By default, netlink is the input module.
  • To explicitly set netlink as an input module:
  • proc is used to read interface statistics from the /proc/net/dev file.
  • It is considered a legacy interface.
  • It is offered for backwards compatibility and also as an alternative module in case the Netlink interface is not available. To explicitly set proc as an input module:
  • dummy is the programmable input module for debugging and testing purposes.
  • To explicitly define dummy as an input module:
  • Null is used to disable data collection.
  • To get more information about a specific module, use the “help” prompt with the input mode as shown below:

Final words: How to use bmon to monitor network bandwidth on Linux

Hope you understand this article How to use bmon to monitor network bandwidth in Linux, if your answer is no, you can ask anything via the contact forum section linked to this article. And if your answer is yes, share this article with your family and friends.


Source link