Operating System - HP-UX
1833625 Members
3490 Online
110062 Solutions
New Discussion

Need help gathering some basic info...

 
SOLVED
Go to solution
Jonathan Telep
Occasional Contributor

Need help gathering some basic info...

I need some basic commands that I can use in HP-UX for gathering information about 3 things in this ancient 712/60 workstation I have:

How can I find out how much memory is in it?
How do I find out what speed the processor is?
How can I find out how many and what size hard drives are installed on it?

Thanks in advance!
5 REPLIES 5
James A. Donovan
Honored Contributor

Re: Need help gathering some basic info...

Memory:
$ grep Phys /var/adm/syslog/syslog.log

# CPU's
$ top

CPU speed
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
Remember, wherever you go, there you are...
Patrick Wallek
Honored Contributor

Re: Need help gathering some basic info...

You can get all of this thru SAM -

# sam

Go into the "Performance Monitors" section and then go into "System Properties"
Sanjiv Sharma_1
Honored Contributor

Re: Need help gathering some basic info...

Hi,

Memory:
$ dmesg
$ grep Phys /var/adm/syslog/syslog.log

# Number of CPU's
$ top

CPU speed
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem

Disk
# strings /etc/lvmtab
Or, # ioscan -fnCdisk

# diskinfo -v /dev/rdsk/cxtxtx
For all the device files shown.
Everything is possible
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Need help gathering some basic info...

Get the 'ux' script from my website, and you will find the answers to questions 1 and 2 alongside on a single line. The seperate and longer answers are there too in the FAQ section
Singapore https://www.beepz.com/personal/merijn/#FAQ
Rotterdam http://www.cmve.net/~merijn/#FAQ
Seattle http://ww.hpux.ws/merijn/#FAQ

--8<---
How many CPU's does my system have?

a5:/wrk 105 > grep processor /var/adm/syslog/syslog.log
Nov 5 13:10:54 a5 vmunix: 160 processor
a5:/wrk 105 > ioscan -fnkC processor
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
processor 0 160 processor CLAIMED PROCESSOR Processor
a5:/wrk 106 > echo "selclass qualifier cpu;infolog" | /usr/sbin/cstm | grep "CPU Module"
PA 8600 CPU Module 3.1
a5:/wrk 107 > echo "sc product cpu;il" | /usr/sbin/cstm | grep 'CPU Module'
PA 8600 CPU Module 3.1
a5:/wrk 108 >

Or with Perl:

a5:/wrk 108 > perl -MUnix::Processors -le'print join"\t",$_->id,$_->state,$_->type,$_->clock for @{Unix::Processors->new()->processors}'
0 online HP PA-RISC 2.0 750
1 online HP PA-RISC 2.0 750
a5:/wrk 109 >
-->8---

--8<---
How much memory do I have

a5:/ 112 # echo "selclass qualifier memory;info;wait;infolog" | cstm | grep 'Total Configured'
Total Configured Memory : 2048 MB
a5:/ 113 # echo 'memory_installed_in_machine/D' | adb -k /stand/vmunix /dev/mem | perl -nle'/(\d+)/&&print$1*4,"k"'
2097152k
a5:/ 114 # grep Physical /var/adm/syslog/syslog.log
Aug 25 08:01:07 a5 vmunix: Physical: 2097152 Kbytes, lockable: 1562360 Kbytes, available: 1801856 Kbytes
a5:/ 115 #
-->8---

For the drive info, use ioscan, vgdisplay, lvdisplay, and bdf (or better: di, also available on my site)

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Bill Hassell
Honored Contributor

Re: Need help gathering some basic info...

If you are running 10.xx or later on your 712, download a copy of Ignite/UX. You absolutely need this to recover from loss of the boot disk. Included with Ignite/UX is print_manifest which collects all the above information (and much more) in a nicely formatted listing.

For quick information about the hardware, ioscan is invaluable:

ioscan -kf
ioscan -knf
ioscan -kfC disk
ioscan -kfC lan

and so on...


Bill Hassell, sysadmin