[root@kiccleaf ~]
-
bash
: dstat:
command
not found
[root@kiccleaf ~]
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
updates
/primary_db
| 654 kB 00:02
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package dstat.noarch 0:0.7.0-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================
Package Arch Version Repository Size
=======================================================================
Installing:
dstat noarch 0.7.0-1.el6 base 144 k
Transaction Summary
=======================================================================
Install 1 Package(s)
Total download size: 144 k
Installed size: 660 k
Is this ok [y
/N
]: y
Downloading Packages:
dstat-0.7.0-1.el6.noarch.rpm | 144 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : dstat-0.7.0-1.el6.noarch 1
/1
Installed:
dstat.noarch 0:0.7.0-1.el6
Complete!
[root@kiccleaf ~]
-dsk
/total-
read
writ
861k 90k
0 0
0 68k
4096B 1216k
0 112k
[root@kiccleaf ~]
Usage: dstat [-afv] [options..] [delay [count]]
Versatile tool
for
generating system resource statistics
Dstat options:
-c, --cpu
enable
cpu stats 显示CPU情况
-C 0,3,total include cpu0, cpu3 and total
-d, --disk
enable
disk stats 显示磁盘情况
-D total,hda include hda and total
-g, --page
enable
page stats
-i, --int
enable
interrupt stats
-I 5,eth2 include int5 and interrupt used by eth2
-l, --load
enable
load stats
-m, --mem
enable
memory stats 显示内存情况
-n, --net
enable
network stats 显示网络情况
-N eth1,total include eth1 and total 可以指定网络接口
-p, --proc
enable
process stats
-r, --io
enable
io stats (I
/O
requests completed)
-s, --swap
enable
swap stats 显示swap情况
-S swap1,total include swap1 and total 可以指定多个swap
-t, --
time
enable
time
/date
output
-T, --epoch
enable
time
counter (seconds since epoch)
-y, --sys
enable
system stats
--aio
enable
aio stats
--fs, --filesystem
enable
fs stats
--ipc
enable
ipc stats 报告IPC消息队列和信号量的使用情况
--lock
enable
lock stats
--raw
enable
raw stats
--socket
enable
socket stats
--tcp
enable
tcp stats
--udp
enable
udp stats
--unix
enable
unix stats
--vm
enable
vm stats
--plugin-name
enable
plugins by plugin name (see manual)
--list list all available plugins
-a, --all equals -cdngy (default) 使用-cdngy 缺省的就是这样显示
-f, --full automatically
expand
-C, -D, -I, -N and -S lists 使用 -C, -D, -I, -N and -S 显示
-
v
, --vmstat equals -pmgdsc -D total 使用-pmgdsc -D 显示
--bw, --blackonwhite change colors
for
white background terminal
--float force float values on
screen
--integer force integer values on
screen
--nocolor disable colors (implies --noupdate)
--noheaders disable repetitive headers 只显示一次表头以后就不显示了,使用重定向写入文件时很有用
--noupdate disable intermediate updates
--output
file
write CSV output to
file
delay is the delay
in
seconds between each update (default: 1)
count is the number of updates to display before exiting (default: unlimited)