This widget could not be displayed.
Operating System - HP-UX
1845516 Members
3197 Online
110244 Solutions
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
New Discussion
This widget could not be displayed.
This widget could not be displayed.

Processor type in K-class server

 
SOLVED
Go to solution
L van Mourik
Advisor

Processor type in K-class server

Command/file to find out what type of processors are in my HP9000 system. HP-UX 10.20. Glance has not been installed.
5 REPLIES 5
Radhakrishnan Venkatara
Trusted Contributor
Solution

Re: Processor type in K-class server

hi,

just use this script.

u can find the processor lot many informations.


radhakrishnan
Negative thinking is a highest form of Intelligence
Frederic Sevestre
Honored Contributor

Re: Processor type in K-class server

Hi,

You can try this :

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"}'


Regards,
Fr??d??ric

Crime doesn't pay...does that mean that my job is a crime ?
Frederic Sevestre
Honored Contributor

Re: Processor type in K-class server

The "MEM=" line is not used.

I cut one of my script.

Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Pete Randall
Outstanding Contributor

Re: Processor type in K-class server

You can tell the speed of the processor (therefor inferring the model) with this little script:


HPUX=/stand/vmunix

MHZ=$(echo itick_per_tick/D | adb -k $HPUX /dev/kmem | tail -1 | awk '{print $2/10000}')
echo $MHZ



Pete

Pete
L van Mourik
Advisor

Re: Processor type in K-class server

That is exactly what I'm looking for. Thanx.