Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7427935
  • 博文数量: 1757
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16242
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1757)

文章存档

2024年(3)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: LINUX

2011-05-11 13:20:53

应站长要求每天给大家介绍一种GNU小工具,希望能对大家系统管理工作带来方便!

安装 bwm-ng

官网:
  • cd /usr/src
    wget
    tar zxvf bwm-ng-0.6.tar.gz
    cd bwm-ng-0.6
    ./configure && make && make install



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

bwm-ng -u bytes -d
复制代码
2011-5-11 9-37-12.png
2.监控磁盘IO
bwm-ng -u bytes -i disk
复制代码

2011-5-11 9-39-24.png


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

Options:
-t, --timeout displays stats every (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 show only interfaces in (comma seperated), or
if list is prefaced with % show all but interfaces
in list
-S, --sumhidden [value] count hidden interfaces for total
-A, --avglength 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 input method, one of: proc netstat disk
-f, --procfile filename to read raw data from. (/proc/net/dev)
--diskstatsfile filename to read diskstats (Linux 2.6+) from. (/proc/diskstats)
--partitionsfile filename to read diskstats (Linux 2.4) from. (/proc/partitions)

Output:
-o, --output output method, one of:
plain, curses, curses2, csv, html
-u, --unit unit to show. one of bytes, bits, packets, errors
-T, --type type of stats. one of rate, max, sum, avg
-C, --csvchar delimiter for csv
-F, --outfile output file for csv and html (default stdout)
-R, --htmlrefresh meta refresh for html output
-H, --htmlheader show and frame for html output
-c, --count number of query/output for plain & csv
-N, --ansiout disable ansi codes for plain output
(ie 1 for one single output)

转:
阅读(1565) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~