惠普-UX服务器性能监控使用命令

本文介绍了HP-UX服务器中用于性能监控的多个命令,包括iostat、ps、sar、time、top、uptime、vmstat等,详细阐述了每个命令的功能和用法,如监控CPU、内存、磁盘I/O、网络等系统活动,帮助系统管理员有效地管理和分析服务器性能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值