1,iostat
the iostat command reports I/O statistics for each active disk on the system
# iostat -t x y
x表示间隔的时间,y表示间隔显示的次数
这个命令一般用于查看的参数是bps、sps、msps,一般来说msps的值都是1.0
2,ps
the ps command displays information about selected processes running on the system
3,sar
the sar command collects and reports on many different system activities,including
CPU,buffer cache,disk,and others
# sar -u 5 4
HP-UX d270_1 B.10.20 E 9000/861 11/15/05
10:22:46 %usr %sys %wio %idle
10:22:51 0 0 0 100
10:22:56 0 0 0 100
10:23:01 0 0 0 100
10:23:06 0 0 0 100
Average 0 0 0 100
# sar -d 5 4
HP-UX d270_1 B.10.20 E 9000/861 11/15/05
10:23:13 device %busy avque r+w/s blks/s avwait avserv
10:23:17
10:23:21 c2t6d0 0.50 0.50 0 8 1.11 18.47
10:23:25
10:23:29
Average c2t6d0 0.12 0.50 0 2 1.11 18.47
4,time,timex
the time and timex commands report the elapsed time,the time spent in system mode,and the time spent in user mode, for a specific invocation of a process
5,top
the top command displays a real-time list of the top CPU consumers on the system
# top -s 10:间隔十秒显示top信息
6,uptime
the uptime command shows how long a system has been up,and who is logged in and what they are doing
# uptime
10:30am up 14 days, 22:46, 1 user, load average: 3.11, 3.10, 3.09
# uptime -w
10:32am up 14 days, 22:48, 1 user, load average: 3.10, 3.10, 3.09
User tty login@ idle JCPU PCPU what
root ttyp1 9:32am uptime -w
7,vmstat
the vmstat command reports virtual memory statistics about processes, virtual memory, and CPU activity
# vmstat -n 5 2
VM
memory page faults
avm free re at pi po fr de sr in sy cs
2375 3128 1 0 0 0 0 0 0 161 38 33
CPU
cpu procs
us sy id r b w
0 1 99 0 3 0
1528 3094 0 0 0 0 0 0 0 142 40 32
0 0 100 0 3 0
8,glance和gpm只支持版本11.0
9,MeasureWare和PerfView工具只支持版本10.x和11.x
10,netstat
the netstat command displays general networking statistics
# netstat -rn
Routing tables
Destination Gateway Flags Refs Use Interface Pmtu PmtuTime
127.0.0.1 127.0.0.1 UH 0 350 lo0 4608
162.16.10.214 127.0.0.1 UH 1 291489 lo0 4608
192.168.1.1 127.0.0.1 UH 0 616 lo0 4608
default 172.16.10.254 UG 0 8190 lan0 1500
172.18.11.0 172.18.18.224 U 1 159593 lan0 1500
172.169.1 172.169.1.1 U 0 0 btlan02 1500
11,nfsstat
the nfsstat command displays network file system statistics
# nfsstat
Server rpc:
calls badcalls nullrecv b