Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HP-UX Processor Type

Status
Not open for further replies.

melody7

Technical User
Mar 9, 2004
2
US
Can somebody tell me how can I find out the Processor Type of an HP-UX system?
Are there any commands or directories I should go to?

Thanks!
 
Hi,

xstm or cstm can provide information on processors. If you are after the actual type, then this would depend on what server you are talking about - HP9000 servers use PA-RISC.

Martin
 
... you could try

grep -i $(model | cut -d"/" -f3) /usr/sam/lib/mo/sched.models

For processor speed :

if [ "$VER" -eq "10" ]
then
echo 'itick_per_usec/D'| adb /stand/vmunix /dev/kmem |tail -1
|awk '{print $2}'
else
echo 'itick_per_usec/D'| adb /stand/vmunix /dev/kmem |grep itick_per_usec|tail -1
|awk '{print $2}'
fi

Martin
 
On Itanium boxes (HP-UX 11.20 or later) the
utility /usr/contrib/bin/machinfo will tell
you everything you want to know about a processor.
 
You can run the follwing script to know more about processors in HP-UX including the processor type:

REV=`uname -r`
case $REV in
*10*) MODEL_FILE=/usr/lib/sched.models
ADB=adb
MODEL=`model | cut -d / -f2`
MODEL1=`model | cut -d / -f3`
MEM=$(echo 'physmem/D'| adb /stand/vmunix /dev/kmem | grep physmem | tail -1 | awk '{ print $2 }')
;;

*11*)
MODEL_FILE=/usr/sam/lib/mo/sched.models
ADB="adb -k"
MODEL=`model | cut -d / -f2`
MODEL1=`model | cut -d / -f3`
MEM=$(echo 'phys_mem_pages/D'| adb /stand/vmunix /dev/kmem |grep phys_mem_pages | tail -1 | awk '{ pri
nt $2 }')
;;

esac

PROCESSOR=`grep "^$MODEL1" "$MODEL_FILE" | awk ' { print $3 } ' - `
NUMPROC=`/usr/sbin/ioscan -kfnC processor | grep processor|wc -l`
echo "$NUMPROC x \c"
echo "$PROCESSOR\t\c"
echo itick_per_tick/D | $ADB /stand/vmunix /dev/kmem | tail -1 | awk '{print $2/10000 " MHz"}'


Hanwant Verma
Software Developer/Analyst
London (UK)
 
If you want to make out weather the HP-UX OS is running on PA or IA h/w without bothering about the specifics of the model of the proessor, you can find that from the kernel it self :
file /stand/vmunix

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top