Operating System - HP-UX
1833346 Members
3827 Online
110051 Solutions
New Discussion

How to show cpu info in hp-ux 10.20.

 
SOLVED
Go to solution
George Liu_2
Frequent Advisor

How to show cpu info in hp-ux 10.20.

Thanks.
:-) George
9 REPLIES 9
Jeff Machols
Esteemed Contributor

Re: How to show cpu info in hp-ux 10.20.

there a bunch of ways,

the best is

# top

there is also

vmstat 1 10
sar 2 10
G. Vrijhoeven
Honored Contributor

Re: How to show cpu info in hp-ux 10.20.

Hi,

there are several standard tools like:

sar -M
sar -q (moment and history)
top (moment)

HP tools like:
glance (moment)
perview (history)

if you install diagnostics you can get firmware revisions etc.

Hope this will help,

Gideon
Helen French
Honored Contributor

Re: How to show cpu info in hp-ux 10.20.

Hi,

See man pages of these commands:

# top
# sar
# vmstat

Also if you have glance, that will give you a better option.

Also r u looking for PRM too?

HTH,
Shiju
Life is a promise, fulfill it!
fg_1
Trusted Contributor

Re: How to show cpu info in hp-ux 10.20.

George

Sar -M - Works well.
Top
Glance - excellent tool but not free.
Vmstat

All good tools, check out the man pages on them.

Good luck
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to show cpu info in hp-ux 10.20.

Hi:

If you looking for your CPU model and speed you can use:

# model

# echo itick_per_usec/D|/usr/bin/adb -k /stand/vmunix /dev/kmem

Regards!

...JRF...
Rick Garland
Honored Contributor

Re: How to show cpu info in hp-ux 10.20.

As mentioned, there are a bunch of ways.

Here are a couple:

CPU SPEED
echo itick_per_tick/D | adb /stand/kmem

BITS
get_conf KERNEL_BITS

# CPUs
sar -Mu 1 1 | awk 'END '{print $NR -5}'

(This one-liner from JRF and I like it!)

Many other posts with much info available
James R. Ferguson
Acclaimed Contributor

Re: How to show cpu info in hp-ux 10.20.

Hi Rick!

Thanks! ...but it should read (to echo the number of CPUs) ;-)

# sar -Mu 1 1 | awk 'END {print NR-5}'

Regards!

...JRF...
Rick Garland
Honored Contributor

Re: How to show cpu info in hp-ux 10.20.

Hey JRF:

Thanks for the correction - thinking about the EOD on this Friday!

(The weekend is fast approaching!)
George Liu_2
Frequent Advisor

Re: How to show cpu info in hp-ux 10.20.

Thanks. case closed. George