1832861 Members
2830 Online
110048 Solutions
New Discussion

Re: Hardware information

 
SOLVED
Go to solution
Manuales
Super Advisor

Hardware information

Hi all ... how can i gather the following from hp-ux server, i man, what command could i use?

- Memory
- Disks
- CPU
- Serial Number
- Module

what other things about hw could i obtain?

Thanks ..
6 REPLIES 6
Ludovic Derlyn
Esteemed Contributor
Solution

Re: Hardware information

hi,

If you are in 11iv2 use machinfo

machinfo gives cpu, memory,serial number

Else use print_manifest or hpux_config

regards

L-DERLYN
James R. Ferguson
Acclaimed Contributor

Re: Hardware information

Hi Manuales:

A nice summary is given by Ignite. You can run 'print_manifest' or having done a 'make_tape_recovery' simply print the '/var/opt/ignite/recovery/latest/manifest' file.

Regards!

...JRF...
Bill Hassell
Honored Contributor

Re: Hardware information

Use the command:

print_manifest

or less convenient: run sam and select Performance Monitors -> System Properties. The serial number is always on a sticker attached to the computer, a with newer computers, available through the cstm command:

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

To see the hardware configuration (I/O cards and devices):

ioscan -kf


Bill Hassell, sysadmin
DCE
Honored Contributor

Re: Hardware information



You can also use sysinfo (yoou can get it from the link below)

It gives a lot of information - In fact I use it for DR planning


http://gatekeep.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=sysinfo
Pete Randall
Outstanding Contributor

Re: Hardware information

If you have Ignite installed, you can use the print_manifest command.

You can also use SAM to display system properties (Sam -> Performance
Monitors -> System Properties).

There are also utilities like "cfg2html" ( http://come.to/cfg2html ),
"nickel" ( ftp://ftp.hp.com/pub/catia/Utils/nickel.shar ) and "sysinfo"
( http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/ ).

Finally, you can also obtain this information from the command line with a
series of little scripts like these:

CPU

HPUX=/stand/vmunix

MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')

#Note: for 11.23 RISC, use
MHZ=$(echo itick_per_tick/D \ # echo "itick_per_usec/d" \
| adb -k $HPUX /dev/kmem \ # | adb $HPUX /dev/kmem
| tail -1 \ #For Itanium, use machinfo
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"


Number of CPUs

ioscan -k |grep -n processor |wc -l




RAM

HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi

MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM



And, even more finally, you can obtain CPU speed and RAM without CSTM or root ac
cess as described by Tom Ferony (under Nancy Rippey's login) here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889


Pete

Pete
Peter Godron
Honored Contributor

Re: Hardware information