1830939 Members
2784 Online
110017 Solutions
New Discussion

Interrogating CPU speed

 
SOLVED
Go to solution
Kevin Lamb
Frequent Advisor

Interrogating CPU speed

Hi,

Just want to know a way of interrogating clock speed on HP-UX 10:20 via the command line.

I know I can get the cpu clock speed from SAM and on a HP-UX 10.01 and HP-UX 11.00 server the following command can be used:
echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem

However the above command does not work on HP-UX 10.20.

Can anyone give me any suggestions?

Cheers,

Kev
5 REPLIES 5
Thierry Poels_1
Honored Contributor
Solution

Re: Interrogating CPU speed

hi,

HZ=`echo itick_per_tick/D | adb -k /stand/vmunix /dev/kmem|tail -1|cut -f2`
((MHZ=$HZ/10000))
echo $MHZ

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
federico_3
Honored Contributor

Re: Interrogating CPU speed

CPU_SPEED=`echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem|tail -1|cut -f2`
echo $CPU_SPEED


Federico

Kevin Lamb
Frequent Advisor

Re: Interrogating CPU speed

Frederico/Thierry

Many thanks for the response about the CPU interrogation, I have successfuly ran this on a couple of our 10.20 servers; however we still have one server which provides no output to any of the scripts.

Not sure why this is happening perhaps I will have to live with this?

Cheers

Kev
John Hall
Frequent Advisor

Re: Interrogating CPU speed

Kevin,

If you run adb and nothing is displayed then the reason may be the kernel parameter ???maxdsiz??? is too small for the amount of memory installed.

This exact problem happen to me and HP gave me this answer that worked!

-John Hall
Roger Baptiste
Honored Contributor

Re: Interrogating CPU speed

<<; however we still have one server which provides no output to any of the scripts.>>

In this case,

Use SAM -> Performance monitor -> System properties

-raj
Take it easy.