HP-UX Server Details

OS: HP-UX

I need the following details from HP-UX server.

I don't have root login, so most of the commands require root privilege

  1. No of cpu in the server

  2. Total Memory, Free & Used

  3. Space used and free space

Any help would be highly appreciated

Start by giving us more details: What version of OS (and platform if you know: Pa-Risc or IA64...)
Since you are not root, uname -a will give you the OS version...
top command should show how many processors you have with memory etc...

Disc space free and used:

bdf

CPUs and memory alternative if you have "glance" rather than "top".

glance

(Don't need to be root)

Using top command below are the output

Load averages: 0.00, 0.01, 0.01
719 processes: 677 sleeping, 41 running, 1 zombie
Cpu states:
CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS
 0    0.00   0.0%   0.0%   0.0% 100.0%   0.0%   0.0%   0.0%   0.0%
 1    0.00   0.0%   0.0%   0.0% 100.0%   0.0%   0.0%   0.0%   0.0%
 2    0.00   0.0%   0.0%   0.0% 100.0%   0.0%   0.0%   0.0%   0.0%
 3    0.00   0.0%   0.0%   1.0%  99.0%   0.0%   0.0%   0.0%   0.0%
---   ----  -  -  -  -  -  -  -  -----
avg   0.00   0.0%   0.0%   1.0%  99.0%   0.0%   0.0%   0.0%   0.0%
Memory: 1720928K (960944K) real, 6619724K (3035284K) virtual, 4348276K free  Page# 1/72

You can always try also for memory:

ant:/home/vbe $ grep Physic /var/adm/syslog/syslog.log
Apr 29 19:05:34 2A:ant vmunix:     Physical: 8388608 Kbytes, lockable: 6464976 Kbytes, available: 7426824 Kbytes

or

echo "gop cstmpager cat;scl type mem;info;wait;il"|cstm

(works on pa-risc 11.11...)

Btw. On large memory systems I've never been able to reconcile the memory figures from "top". Possible that the fields overflow?

vbe's method using "cstm" to audit memory seems to be the only way which will always work without using "glance". As a non-root user you would have to specify the full path "/usr/sbin/cstm" .

On a similar vein the number of CPUs is buried in this cstm query.

echo "selclass qualifier system;info;wait;infolog" | /usr/sbin/cstm

This will help

echo "selclass qualifier memory;info;wait;infolog"|cstm