Calculation of various attributes in HP UX server

Calculation of various attributes in HP UX server

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

                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • Calculation of various attributes in Linux server

                        Physical memory utilization Command: free -m Sample Output: total used free shared buff/cache available Mem: 16338247680 6590242816 1372995584 662192128 8375009280 8734982144 Swap: 100 10 0 Calculation: Physical memory % = 100 -(((MemFree + Buffers + ...
                      • Calculation of various attributes in AIX server

                        Page Space Command: lsps -a Sample Output: Page Space      Physical Volume   Volume Group       Size       %Used       Active     Auto        Type       Chksum ...
                      • Calculation of various attributes in MACOS server

                        Memory Utilization Command: export UNIX95;top -l 1 -n 2 Sample Output: Processes: 154 total, 2 running, 152 sleeping, 600 threads  2020/03/04 14:49:04 Load Avg: 1.46, 1.60, 1.62  CPU usage: 5.40% user, 8.10% sys, 86.48% idle  SharedLibs: 202M ...
                      • Calculation of various attributes in FreeBSD server

                        Memory Utilization Command: export UNIX95;top -d 1 -n 2 Sample Output: last pid: 69468;  load averages:  0.23,  0.13,  0.09  up 439+07:00:37    18:32:00 27 processes:  2 running, 25 sleeping Mem: 8204K Active, 125M Inact, 100M Wired, 21M Buf, 109M ...
                      • Calculation of various attributes in Sun Solaris server

                        CPU Utilization CPU utilization = command=/usr/bin/vmstat 1 3  kthr      memory            page            disk          faults      cpu  r b w   swap  free  re  mf pi po fr de sr cd s0 -- --   in   sy   cs us sy id  0 0 0 1459384 744528 34 233 0  0  ...