打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
BWM

 BWM-NG 监控网络带宽和磁盘IO的小利器




给大家介绍一种GNU小工具,希望能对大家系统管理工作带来方便!

安装 bwm-ng

官网: http://www.gropp.org/

·cd /usr/src
wget http://www.gropp.org/bwm-ng/bwm-ng-0.6.tar.gz
tar zxvf bwm-ng-0.6.tar.gz
cd bwm-ng-0.6
./configure && make && make install



1.监控网络:
  1. bwm-ng -u bits -d

  2. bwm-ng -u bytes -d
复制代码


2.监控磁盘IO
  1. bwm-ng -u bytes  -i disk
复制代码




# bwm-ng --help   //更详细的使用大家一起挖掘
Bandwidth Monitor NG (bwm-ng) v0.6
Copyright (C) 2004-2007 Volker Gropp <bwmng@gropp.org>
USAGE: bwm-ng [OPTION] ... [CONFIGFILE]
displays current ethernet interfaces stats

Options:
  -t, --timeout <msec>    displays stats every <msec> (1msec = 1/1000sec)
                          default: 500
  -d, --dynamic [value]   show values dynamicly (Byte KB or MB)
  -a, --allif [mode]      where mode is one of:
                          0=show only up (and selected) interfaces
                          1=show all up interfaces (default)
                          2=show all and down interfaces
  -I, --interfaces <list> show only interfaces in <list> (comma seperated), or
                          if list is prefaced with % show all but interfaces
                          in list
  -S, --sumhidden [value] count hidden interfaces for total
  -A, --avglength <sec>   sets the span of average stats (Default 30s)
  -D, --daemon [value]    fork into background and daemonize
  -h, --help              displays this help
  -V, --version           print version info

Input:
  -i, --input <method>    input method, one of: proc netstat disk
  -f, --procfile <file>   filename to read raw data from. (/proc/net/dev)
      --diskstatsfile <file> filename to read diskstats (Linux 2.6+) from. (/proc/diskstats)
      --partitionsfile <file> filename to read diskstats (Linux 2.4) from. (/proc/partitions)

Output:
  -o, --output <method>   output method, one of:
                          plain, curses, curses2, csv, html
  -u, --unit <value>      unit to show. one of bytes, bits, packets, errors
  -T, --type <value>      type of stats. one of rate, max, sum, avg
  -C, --csvchar <char>    delimiter for csv
  -F, --outfile <file>    output file for csv and html (default stdout)
  -R, --htmlrefresh <num> meta refresh for html output
  -H, --htmlheader        show <html> and <meta> frame for html output
  -c, --count <num>       number of query/output for plain & csv
  -N, --ansiout           disable ansi codes for plain output
                          (ie 1 for one single output)
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
SAS系列24:单向有序列联表资料的假设检验
Windows 取证之EVTX日志
全志H6,最强画质4K机顶盒解决方案
C -> Cs: What You Need to Know to Move from C to Cs
Hack the virtual memory Archives
COBOL - PS file org and opertion
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服