Operating System - HP-UX
1834602 Members
4343 Online
110069 Solutions
New Discussion

Re: How to find the speed of the CPU in HP-UX 11i V3

 
SOLVED
Go to solution
senthil_kumar_2
Regular Advisor

How to find the speed of the CPU in HP-UX 11i V3

Hi All,

We can use below mentioned command to get the speed of the CPU in HP-UX 11i v1.

root@aa128116:/root > b -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print $2}'` <
root@aa128116:/root > echo $PROC_SPEED
440



It is not working on HP-UX 11i V3:

Example:

# PROC_SPEED=`echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print $2}'`
adb: info: Option -k is deprecated.
adb: warning: Unrecognized format character - 'D'.
# echo $PROC_SPEED

#


How to solve the issue.
5 REPLIES 5
Torsten.
Acclaimed Contributor
Solution

Re: How to find the speed of the CPU in HP-UX 11i V3

Use a very simple command:

# machinfo

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Tor-Arne Nostdal
Trusted Contributor

Re: How to find the speed of the CPU in HP-UX 11i V3

:) Torstein is fast :D

Assign him his points and close the thread.. unless you want a bunch of alternatives instead of this nice one

No points for me please
I'm trying to become President of the state I'm in...
Pete Randall
Outstanding Contributor

Re: How to find the speed of the CPU in HP-UX 11i V3

The man page says "the following command-line options to adb are obsolete and are no longer required. If used they generate a warning."

Try it without the "-k".

Still looking for the "D" solution.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: How to find the speed of the CPU in HP-UX 11i V3

I would try leaving out the "D", too. It simplay says you want itick_per_usec printed as a signed decimal number.


Pete

Pete
senthil_kumar_2
Regular Advisor

Re: How to find the speed of the CPU in HP-UX 11i V3

As "machinfo" is showing the speed of the CPU on HP-UX 11i V3, i am closing this thread.