1830894 Members
2345 Online
110017 Solutions
New Discussion

CPU count on HP

 
SOLVED
Go to solution
Alpa Shah
Advisor

CPU count on HP

Hi,

I want to know the command which returns the number of physical processors (i.e. CPU count) in the system on HP-UX.
Or the information similar to what we get thru 'psrinfo' command on solaris.

-Alpa
3 REPLIES 3
Dennis Handly
Acclaimed Contributor
Solution

Re: CPU count on HP

ioscan for root can list the processors.
# /usr/sbin/ioscan -C processor

You can also write an application that calls pstat_getprocessor(2).
Rasheed Tamton
Honored Contributor

Re: CPU count on HP

Hi,

echo "processor_count/D" | adb -k /stand/vmunix /dev/kmem

/opt/ignite/bin/print_manifest|grep -i processor

ioscan -C processor

top will also list the processors (check the CPU columns).

Regards,
Rasheed Tamton.
Alpa Shah
Advisor

Re: CPU count on HP

Thanks a lot to you both.
This is what I was looking for.