sudo bmon

monitor bandwidth interface eth0 (vyos 把 bmon 的linux 改为 了 moniter interface 了,底层还是调用的 bmon)
Linux:~$ sudo bmon -h
bmon 3.5
Copyright (C) 2001-2013 by Thomas Graf <tgraf@suug.ch>
Copyright (C) 2013 Red Hat, Inc.
bmon comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the source
code for details.
Usage: bmon [OPTION]...
Options:
Startup:
-i, --input=MODPARM Input module(s)
-o, --output=MODPARM Output module(s)
-f, --configfile=PATH Alternative path to configuration file
-h, --help Show this help text
-V, --version Show version
Input:
-p, --policy=POLICY Element display policy (see below)
-a, --show-all Show all elements (even disabled elements)
-r, --read-interval=FLOAT Read interval in seconds (float)
-R, --rate-interval=FLOAT Rate interval in seconds (float)
-s, --sleep-interval=FLOAT Sleep time in seconds (float)
-L, --lifetime=LIFETIME Lifetime of an element in seconds (float)
Output:
-U, --use-si Use SI units
-b, --use-bit Display in bits instead of bytes
Module configuration:
modparm := MODULE:optlist,MODULE:optlist,...
optlist := option;option;...
option := TYPE[=VALUE]
Examples:
-o curses:ngraph=2
-o list # Shows a list of available modules
-o curses:help # Shows a help text for html module
Interface selection:
policy := [!]simple_regexp,[!]simple_regexp,...
Example: -p 'eth*,lo*,!eth1'
Please see the bmon(1) man pages for full documentation.
Linux:~$


本文介绍了如何在Linux系统中使用bmon工具监控网络接口的带宽使用情况。通过`sudo bmon`命令可以查看各接口的流量信息。bmon提供了一种类似moniter interface的监控方式,尤其在VyOS环境中,它被 VyOS 更改为 `moniter interface`,但其底层仍然是调用的bmon。此外,文章还展示了bmon的命令行选项及其用途,包括不同模块的配置和接口选择策略。

被折叠的 条评论
为什么被折叠?



