1831406 Members
3672 Online
110025 Solutions
New Discussion

command for CPU speed ?

 
SOLVED
Go to solution
Hari Kumar
Trusted Contributor

command for CPU speed ?

Hi to all MAestro's of HP-UX
Do we have any command in HpUX11i to find the CPU speed ,model e.t.c ? we are able to get info from SAM as System properties and also
anything to get all the system Information related to Hardware
Thanks in advance
Information is Wealth ; Knowledge is Power
8 REPLIES 8
twang
Honored Contributor

Re: command for CPU speed ?

cpu speed:
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
Pete Randall
Outstanding Contributor

Re: command for CPU speed ?

I use these little scripts:


Speed:

HPUX=/stand/vmunix

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



Memory:

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




Pete


Pete
Pete Randall
Outstanding Contributor

Re: command for CPU speed ?

Sorry, forgot model:

Use the model command.




Pete


Pete
Stefan Farrelly
Honored Contributor
Solution

Re: command for CPU speed ?

Yes, its called xstm (for the gui) or cstm from the command line. These commands are part of the Online Diagnostics which you shuold have installed - if not you can download and install from www.software.hp.com

To get this info from cstm;

/usr/sbin/cstm
> selall
> il

Then scroll down to view all the hardware including all your cpu's and all the info on them.

To check cpuspeed using a simple shell use this script;

let SPEED=`echo "itick_per_tick/D" | adb /stand/vmunix /dev/kmem|grep itick|tail -1|awk '{print $2}'`
if [ $SPEED -lt 0 ];then
echo "/stand/vmunix doesnt match running kernel, trying /stand/vmunix.prev"
let SPEED=`echo "itick_per_tick/D" | adb /stand/vmunix.prev /dev/kmem|grep itick|tail -1|awk '{print $2}'`
let SPEED=$SPEED/10000
if [ $SPEED -lt 0 ];then
echo "/stand/vmunix.prev doesnt match running kernel either, exiting"
exit 1
fi
else
let SPEED=$SPEED/10000
fi
echo "CPU Speed = $SPEED Mhz"

Im from Palmerston North, New Zealand, but somehow ended up in London...
T G Manikandan
Honored Contributor

Re: command for CPU speed ?

echo itick_per_usec/D | adb /stand/vmunix /dev/mem
Hari Kumar
Trusted Contributor

Re: command for CPU speed ?

Thanks alot Stefen the info given by you to the Hardware info is very usefull and it is giving VAST information.
Thanks Pete and twanq for Calculating CPU speed.
Can u please suggest me how to get such a wonderful knowledge in all those internal stuff!!!
Information is Wealth ; Knowledge is Power
Stefan Farrelly
Honored Contributor

Re: command for CPU speed ?

To keep getting wonderful info like this keep using the forums - you pick up all sorts of wonderful info! I have.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Umapathy S
Honored Contributor

Re: command for CPU speed ?

Vamsi,
If you keep on browsing through the Q&A in this forum, very soon you will get that knowledge. Better than training.

cheers
Umapathy
Arise Awake and Stop NOT till the goal is Reached!