Operating System - HP-UX
1836713 Members
2978 Online
110108 Solutions
New Discussion

Re: a hp workstation b2000,how can i know cpu's speed by command?

 
常有慈悲心
Regular Advisor

a hp workstation b2000,how can i know cpu's speed by command?

thanks.
5 REPLIES 5
Warren_9
Honored Contributor

Re: a hp workstation b2000,how can i know cpu's speed by command?

hihi,

use sam

Performance Monitors --> System properties
Naveej.K.A
Honored Contributor

Re: a hp workstation b2000,how can i know cpu's speed by command?

echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem | awk '{print $2}'

Check this out!!!

--Naveej
practice makes a man perfect!!!
Devender Khatana
Honored Contributor

Re: a hp workstation b2000,how can i know cpu's speed by command?

Hi,
Execute this on prompt.

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


HTH,
Devender
Impossible itself mentions "I m possible"
Pete Randall
Outstanding Contributor

Re: a hp workstation b2000,how can i know cpu's speed by command?

For a little more info, try this:

HPUX=/stand/vmunix

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

MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"


Pete

Pete
Bharat Katkar
Honored Contributor

Re: a hp workstation b2000,how can i know cpu's speed by command?

The link below helps.
Regards,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=879169
You need to know a lot to actually know how little you know