- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Universal way to find out number of CPU's
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 08:33 PM
10-05-2004 08:33 PM
thanks,
bdutta
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 08:40 PM
10-05-2004 08:40 PM
Re: Universal way to find out number of CPU's
I don't have a server to test it (mine are running with all cpu's configured) but you could try with
# ioscan -fncprocessor
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
processor 0 160 processor CLAIMED PROCESSOR Processor
processor 1 166 processor CLAIMED PROCESSOR Processor
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 08:51 PM
10-05-2004 08:51 PM
Re: Universal way to find out number of CPU's
on my host "ioscan -fncprocessor", gives --
ioscan: illegal option -- c
ioscan: illegal option -- p
ioscan: illegal option -- r
ioscan: illegal option -- o
ioscan: illegal option -- c
ioscan: illegal option -- e
ioscan: illegal option -- s
ioscan: illegal option -- s
ioscan: illegal option -- o
ioscan: illegal option -- r
although uname -a returns the following:-
HP-UX ochpt17 B.11.11 U 9000/800 548301562 unlimited-user license
thanks,
bdutta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 08:55 PM
10-05-2004 08:55 PM
Re: Universal way to find out number of CPU's
Robert-Jan is right, with ioscan you can see number of CPUs, which work on your machine.
You can't see "hidden" CPU (not activated), e.g on rp34xx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 08:56 PM
10-05-2004 08:56 PM
Re: Universal way to find out number of CPU's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 08:57 PM
10-05-2004 08:57 PM
Solution>ioscan -fkn -C processor
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
processor 0 160 processor CLAIMED PROCESSOR Processor
processor 1 162 processor CLAIMED PROCESSOR Processor
processor 2 164 processor CLAIMED PROCESSOR Processor
processor 3 166 processor CLAIMED PROCESSOR Processor
issuing "ioscan -fkn -C processor|tail +3|wc -l" will give you the count...
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 09:07 PM
10-05-2004 09:07 PM
Re: Universal way to find out number of CPU's
One more option addition to the above all
If diagnostics is installed then
You can try stm also.
The information will give you the required
details.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 09:19 PM
10-05-2004 09:19 PM
Re: Universal way to find out number of CPU's
#ioscan -fnC processor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 09:29 PM
10-05-2004 09:29 PM
Re: Universal way to find out number of CPU's
see man mpsched
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2004 09:31 PM
10-05-2004 09:31 PM
Re: Universal way to find out number of CPU's
Yes ioscan should have been with a capital C
# ioscan -fnCprocessor
If you have stm installed on your systems you also try
# echo "selclass qualifier cpu;infolog" | /usr/sbin/cstm | grep "CPU Module"
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 01:04 AM
10-06-2004 01:04 AM
Re: Universal way to find out number of CPU's
icod_stat -a
will show active cpus, and
icod_stat -i
will show inactive ones.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 01:09 AM
10-06-2004 01:09 AM
Re: Universal way to find out number of CPU's
You can use
ioscan -fnC processor which will give you the details
Rgds
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 01:31 AM
10-06-2004 01:31 AM
Re: Universal way to find out number of CPU's
top also gives you number of cpu's
ioscan -fnC processor gives you cpu's
sam also gives you number of cpu's in system properties.
There are many ways like this to find number of CPU's
Hope this helps
Thanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 01:49 AM
10-06-2004 01:49 AM
Re: Universal way to find out number of CPU's
Hope this helps
Thanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 04:32 AM
10-06-2004 04:32 AM
Re: Universal way to find out number of CPU's
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 04:50 AM
10-06-2004 04:50 AM
Re: Universal way to find out number of CPU's
Thanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 05:37 AM
10-06-2004 05:37 AM
Re: Universal way to find out number of CPU's
#ioscan -fnkCprocessor | grep processor | wc -l
Also the top command could help you. type:
#top
and you will see the Cpu states with their number
regards
Shine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 05:51 AM
10-06-2004 05:51 AM
Re: Universal way to find out number of CPU's
icod_stat - display instant Capacity on Demand (iCOD) processor
status, usage information, and system information
Run it by itself, gives some systme info as well as:
Total processors: 6
Active processors: 5
Inactive processors that can be activated: 1
Inactive processors that cannot be activated: 0
Deconfigured processors: 0
Requested active processors: 5
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 06:24 AM
10-06-2004 06:24 AM
Re: Universal way to find out number of CPU's
I just checked a system with deconfigured CPUs & the STM suite will indeed show active & deconfigured CPUs as well as which CPU is the Monarch.
I was in xstm & selected System -> Tools -> Information -> Run
Version of OnLineDiag/STM was 11.11.14.14 & the system was an N4000-44
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 06:27 AM
10-06-2004 06:27 AM
Re: Universal way to find out number of CPU's
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 02:51 AM
11-01-2004 02:51 AM
Re: Universal way to find out number of CPU's
Thanks,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 02:37 PM
11-01-2004 02:37 PM
Re: Universal way to find out number of CPU's
top is the only command that will do this without root privileges
2) With output (to read from my applecation)
top can be run with -d 1 to provide one output screen. Unfortunately, top demands a valid terminal (it doesn't run in batch mode).
3) Universal (compatible for most Unix's).
Not possilble. The concept of multi-processor systems within Unix is implemented very differently, and as is true with all Unix systems, the system administration commands are very seldom compatible. You'll have to put in a lot of if-then-else code to handle each Unix system.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 05:28 AM
11-02-2004 05:28 AM
Re: Universal way to find out number of CPU's
way to get the number of CPUs. Each platform
will be different. On HP-UX you can use
pstat_getdynamic() to get the number of
active CPUs (pst_dynamic.proc_cnt). Perhaps
there's a field in pstat_getstatic() or
somesuch which gives the total number of CPUs.