1759245 Members
2730 Online
108882 Solutions
New Discussion

Number of cpu´s

 
SOLVED
Go to solution
Ralf Buchhold
Regular Advisor

Number of cpu´s

Hello
I need an command to find out the numer of cpu´s of an HPUX-system.
Any idea ?
Thanks
Ralf
17 REPLIES 17
RAC_1
Honored Contributor
Solution

Re: Number of cpu´s

ioscan -fnCprocessor

mpsched -s
There is no substitute to HARDWORK
MarkSyder
Honored Contributor

Re: Number of cpu´s

SAM -> Performance Monitors -> System Properties.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Orhan Biyiklioglu
Respected Contributor

Re: Number of cpu´s

On newer HP-UX systems like 11.23 machinfo command will provide detailed information about your machine such as cpu, memory, firmware and os details.


hth
Arunvijai_4
Honored Contributor

Re: Number of cpu´s

# grep processor /var/adm/syslog/syslog.log
Sep 21 00:45:18 myhpux vmunix: 128 processor
Sep 21 00:45:18 myhpux vmunix: 129 processor

# ioscan -fnkC processor

# ioscan -fnkC processor
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
processor 0 128 processor CLAIMED PROCESSOR Processor
processor 1 129 processor CLAIMED PROCESSOR Processor

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Andrew Rutter
Honored Contributor

Re: Number of cpu´s

hi ralf

either ioscan will list them or if you have STM installed then

# echo "selclass qualifier cpu;info;wait;infolog" | cstm

should do it

Andy
Joseph Loo
Honored Contributor

Re: Number of cpu´s

hi ralf,

try this:

# ioscan -fnC processor

or

# top
count the numbers from the CPU column

or

# sam
Performance Monitor -> System Properties -> see Active Processors

regards.
what you do not see does not mean you should not believe
Torsten.
Acclaimed Contributor

Re: Number of cpu´s

Hi Ralf,

since there could be a number of deactivated or ICAP CPUs, a simple ioscan or diagnostic output won't tell you about.

try

echo "sc product cpu;info;wait;il"|cstm

on a pa-risc system or

/usr/contrib/bin/machinfo

on itanium systems to get the number of installed cpus.
Look for "Processor state".

Also check "top".

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!   
Orhan Biyiklioglu
Respected Contributor

Re: Number of cpu´s

Also

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

NOTE /D is /d (lowercase) on itaniun systems
Muthukumar_5
Honored Contributor

Re: Number of cpu´s

Use the following methods:

a) top
b) ioscan -fnC processor
c) sam -> performance monitor -> system monitor -> processor
d) # echo "processor_count/D" | adb /stand/vmunix /dev/kmem

If you have machine with 11.23 then use machinfo.

Ignite-ux installed then, print_manifest

hth.
Easy to suggest when don't know about the problem!