In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to use bmon under Linux", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use bmon under Linux" this article.
Bmon is a text-based, simple but very powerful network monitoring and debugging tool in Unix-like systems. It can capture network-related statistics and display them in a user-friendly format. It is a reliable and efficient tool for bandwidth monitoring and network speed estimation.
It can read input using various input modules and display output in various output modes, including an interactive text user interface and programmable text output for scripting.
Install the bmon bandwidth monitoring tool on Linux
Almost all Linux distributions have bmon packages in the default repository, which can be easily installed from the default package manager, but the available versions may be older.
$sudo yum install bmon [On RHEL/CentOS/Fedora] $sudo dnf install bmon [On Fedora 22 +] $sudo apt-get install bmon [On Debian/Ubuntu/Mint]
In addition, you can also get the .rpm and .deb packages for your Linux distribution from https://pkgs.org/download/bmon.
If you want a * * version of bmon (for example, version 4.0), you need to build from the source code with the following command.
In CentOS, RHEL, and Fedora
$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 make $sudo make install
In Debian, Ubuntu, and Linux Mint
$git clone https://github.com/tgraf/bmon.git $cd bmon $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 make $sudo make install
How to use the bmon bandwidth Monitoring tool in Linux
Run it with the following command (beginner's note: RX means to receive data per second, TX means to send data per second):
$bmon
Bmon-Linux bandwidth monitoring
Press d to view more detailed graphical statistics of bandwidth usage, refer to the screenshot below.
Bmon-Detailed Bandwidth Statistics
Press Shift +? You can view the Quick Guide. Press Shift + again? You can exit the (guide) interface.
Bmon-Quick Guide
You can view statistics for a specific network card through the Up and Down arrow keys. However, to monitor a specific network card, you can also specify it as a command line argument as follows.
Option-p specifies the network card to display, and in the following example, we will monitor the network card enp1s0:
$bmon-p enp1s0
Bmon-monitors Ethernet bandwidth
To view bits per second instead of bytes per second, use the-b option as follows:
$bmon-bp enp1s0
We can also specify the refresh interval by second as follows:
$bmon-r 5-p enp1s0
How to use bmon input module
Bmon has many input modules that can provide network card statistics, including:
Netlink-collects network card and flow control statistics from the kernel using the Netlink protocol. This is the default input module.
Proc-reads Nic statistics from the / proc/net/dev file. It is considered a traditional interface and provides backward compatibility. It is a standby module when the Netlink interface is not available.
Dummy-this is a programmable input module for debugging and testing.
Null-deactivate data collection.
To see the rest of the information about a module, you can call it using the help option as follows:
$bmon-I netlink:help
The following command enables the proc input module to run bmon:
$bmon-I proc-p enp1s0
How to use bmon output module
Bmon also uses the output module to display or export the statistics collected by the input module above. The output module includes:
Curses-this is an interactive text user interface that provides real-time online estimates and a graphical representation of each attribute. This is the default output module.
Ascii-this is a simple programmable text output for user viewing. It can display a list of network cards, detailed counts, and graphics to the console. This is the default alternative output module when the curses library is not available.
Format-this is a fully scripted output mode for use by other programs-means that we can use its output values for analysis in later scripts and programs.
Null-deactivate the output.
Get more module information through the help option as shown below.
$bmon-o curses:help
The following command runs bmon in ascii output mode:
$bmon-p enp1s0-o ascii
Bmon-Ascii output mode
We can also use format output mode, and then use the obtained values in scripts or other programs:
$bmon-p enp1s0-o format
Bmon-Format output mode
For additional usage information, options, and examples, read bmon's man manual:
The above $man bmon is all the contents of this article entitled "how to use bmon under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.