CPU Utilization
Command: /usr/bin/vmstat 1 3
Sample Output:
procs memory page faults cpu
r b w avm free re at pi po fr de sr in sy cs us sy id
3 1 0 255571 1582773 0 0 0 0 0 0 0 240 4039 81 0 1 99
3 1 0 255571 1582690 0 0 0 0 0 0 0 210 349 61 0 0 100
3 1 0 255571 1582690 0 0 0 0 0 0 0 209 320 62 0 0 100
where,
UserTime=us
SystemTime=sy
IdleTime=id
RunQueue=r
BlockedProcess=b
IntrsPerSec=in
CPU Core
Command: sar -u -M 1 3 = idle
Sample Output:
HP-UX hpuxserv B.11.31 U ia64 03/03/20
14:06:39 %usr %sys %wio %idle
----------------------------------------------------------
14:06:41 0 0 0 100
14:06:42 0 0 0 100
14:06:43 0 3 0 97
Average 0 1 0 99
Physical Memory
Command: grep Physical /var/adm/syslog/syslog.log
Sample Output:
Dec 28 06:25:15 hpuxserver1 vmunix: Physical: 8377100 Kbytes, lockable: 6111764 Kbytes, available: 6936700 Kbytes
Disk Utilization
Command: /usr/bin/bdf
Sample Output:
Filesystem kbytes used avail %used Mounted on
---------------------------------------------------------------------------------------------------------------------------------
/dev/vg00/lvol3 1048576 319120 723768 31% /
/dev/vg00/lvol1 1835008 157440 1664560 9% /stand
/dev/vg00/lvol8 8912896 1248240 7604832 14% /var
/dev/vg00/lvol7 4128768 2866128 1252864 70% /usr
/dev/vg00/lvol4 524288 21200 499160 4% /tmp
/dev/vg00/lvol6 7274496 4180880 3069480 58% /opt
/dev/vg00/lvol5 131072 46080 84392 35% /home
DevFS 3 3 0 100% /dev/deviceFileSystem
Memory Utilization
Command: export UNIX95=1;top -h -n5 -d1 -f /tmp/appmanager.txt;cat /tmp/appmanager.txt ;rm -f /tmp/appmanager.txt
Sample Output:
System: hpuxserv Wed Mar 4 13:32:29 2020
Load averages: 0.02, 0.03, 0.03
137 processes: 102 sleeping, 34 running, 1 zombie
Cpu states:
LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
--------------------------------------------------------------------------------------------------------
0.02 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
System Page Size: 4Kbytes
Memory: 409256K (301792K) real, 1326772K (1137600K) virtual, 6333220K free Page# 1/28
TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
? 56 root 191 20 3456K 3072K run 214:50 0.64 0.64 vxfsd
? 2019 root 152 20 54288K 11256K run 124:09 0.31 0.31 cimserver
? 2022 root 152 20 172M 52824K run 23:33 0.29 0.29 cimprovagt
? 2182 root 152 20 762M 87720K run 64:37 0.28 0.28 java
? 2007 root 152 20 30340K 4144K run 0:17 0.20 0.20 rpcd
Process
Command: export UNIX95=1;ps -ef -o comm,pcpu,vsz,args
Sample Output:
COMMAND %CPU VSZ COMMAND
------------------------------------------------------------------------------------------------
swapper 0.02 0 swapper
init 0.04 2064 init
kevm 0.02 0 kevm
net_str_cached 0.00 0 net_str_cached
escsid 0.02 0 escsid
ObjectThreadPool 0.00 0 ObjectThreadPool
ttisr 0.02 0 ttisr
ksyncer_daemon 0.04 0 ksyncer_daemon
ioconfigd 0.00 0 ioconfigd
kmemdaemon 0.02 0 kmemdaemon