Operating System - HP-UX
1833068 Members
3044 Online
110049 Solutions
New Discussion

System Stat Cmds: Disk/RAM/CPU

 
SOLVED
Go to solution
Karl Balsmeier
Advisor

System Stat Cmds: Disk/RAM/CPU

My manager just asked me to find:

Disk Space
Available Disk Space
Memory/ RAM
Processor

uname -a gives me

HP-UX systemname B.11.00 U 9000/800 155464616 unlimited-user license

Is bdf my best bet for the disk info?
How do I show system RAM & Processors?

-karlski
"Unix is the Net"
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: System Stat Cmds: Disk/RAM/CPU

ioscan will show processors and disk

bdf shows only mounted filesystems

Attaching a script that displays memory by slot and size.

SEO
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James A. Donovan
Honored Contributor

Re: System Stat Cmds: Disk/RAM/CPU

If you have Measureware installed and running, then ideally the scopeux daemon is running and collecting data. If so, then you can use the extract command.

Use the extract command to extract the MeasureWare data to one or more flat files.

Executing:

$ extract -g -xp -b TODAY-1 -e TODAY

will extract collected global detailed data from the previous 24 hours to the xfrdGLOBAL.asc file:

$ ll
total 1336
-rw-r--r-- 1 jdonovan users 679800 Nov 10 10:41 xfrdGLOBAL.asc

This is an ordinary text file which can be imported into Excel.

There are many options for what data can be extracted. See the extract manpage for details.

To graph overall CPU utilization, you would select the column labelled "CPU %". Likewise, to graph overall memory utilization, choose the column labelled "Memory %".

....otherwise use sar and the sa1 and sa2 scripts (see the man page for sadc)
Remember, wherever you go, there you are...
Patrick Wallek
Honored Contributor

Re: System Stat Cmds: Disk/RAM/CPU

If you have Ignite/UX instllaed, which everyone should, have a look at the print_manifest commaned.

# /opt/ignite/bin/print_manifest

Karthik S S
Honored Contributor
Solution

Re: System Stat Cmds: Disk/RAM/CPU

Disk space/Info:
bdf
diskinfo /dev/rdsk/cxtxdx
pvdisplay /dev/rdsk/cxtxdx

Memory:
dmesg |grep Physical
swapinfo -tm

CPU:
ioscan -fnC processor

For more info, download the following depot, gunzip, untar and execute.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/

-Karthik S S

For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Con O'Kelly
Honored Contributor

Re: System Stat Cmds: Disk/RAM/CPU

Hi Karl

To add to what the others have given.

CPU Speed:
# echo "itick_per_usec/D" | adb /stand/vmunix /dev/kmem

Physical Memory (RAM):
# echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem
(Multiply value by 4 to get RAM in KB)

Free Memory:
# vmstat 1 2 | tail -1 | awk '{ printf "%-d\n", $5*4}'

Cheers
Con
Sritharan
Valued Contributor

Re: System Stat Cmds: Disk/RAM/CPU

Hi,


For other alternative, you can also use SAM to get all this information,

(i) Disk Space
SAM->Disk and File Systems

(ii) Available Disk Space
SAM->Disk and File Systems

(iii)Memory/ RAM
SAM->Performance Monitor->System Properties

(iv)Processor
SAM->Performance Monitor->System Properties

Thanks & Regards
Sri


Known is a drop...unknown is an ocean -> quote from a movie