- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Number of CPU under HP-UX?
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-08-2003 02:31 AM
10-08-2003 02:31 AM
I didn't find it with getconf, top -d 1 ,etc..., so if somebody has an easy way to get this info...
Thanks in advance for your help.
Romaric.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 02:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 02:35 AM
10-08-2003 02:35 AM
Re: Number of CPU under HP-UX?
sar -Mu 1 1 | awk 'END {print NR-5}'
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 02:35 AM
10-08-2003 02:35 AM
Re: Number of CPU under HP-UX?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 02:37 AM
10-08-2003 02:37 AM
Re: Number of CPU under HP-UX?
I liked the sar one!
Cheers,
Romaric.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 02:38 AM
10-08-2003 02:38 AM
Re: Number of CPU under HP-UX?
CPU=$(ioscan | grep -i processor | wc -l)
echo "CPUS: $CPU"
Solution.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 02:39 AM
10-08-2003 02:39 AM
Re: Number of CPU under HP-UX?
#ioscan -fnC processor
But when u issue #top
it will automatically show on the top the CPU list , before the precesses statistics.
Here is my #top
Wed Oct 8 20:09:29 2003
Load averages: 0.02, 0.01, 0.01
93 processes: 84 sleeping, 9 running
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.04 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
1 0.00 0.0% 0.0% 0.4% 99.6% 0.0% 0.0% 0.0% 0.0%
--- ---- -2.2% 0.0% 0.0% 97.8-
avg 0.02 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
1.2% 0.0% 0.2% 98.6
Can you see under CPU coloumn the 0,1 i.e with a 2 CPU output of TOP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 02:40 AM
10-08-2003 02:40 AM
Re: Number of CPU under HP-UX?
ioscan -fk |grep -c processor
this should output the number of cpus.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 03:13 AM
10-08-2003 03:13 AM
Re: Number of CPU under HP-UX?
"glance" shows 4 "Active CPUs:"
"top" thinks so too.
What are the other 2 doing ?
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 03:17 AM
10-08-2003 03:17 AM
Re: Number of CPU under HP-UX?
which ioscan command are you using?
-Josh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 03:25 AM
10-08-2003 03:25 AM
Re: Number of CPU under HP-UX?
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
processor 0 33 processor CLAIMED PROCESSOR Processor
processor 1 37 processor CLAIMED PROCESSOR Processor
processor 2 97 processor CLAIMED PROCESSOR Processor
processor 3 101 processor CLAIMED PROCESSOR Processor
processor 4 105 processor CLAIMED PROCESSOR Processor
processor 5 109 processor CLAIMED PROCESSOR Processor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 03:26 AM
10-08-2003 03:26 AM
Re: Number of CPU under HP-UX?
What system are you running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 03:27 AM
10-08-2003 03:27 AM
Re: Number of CPU under HP-UX?
I am not quite sure, but your additional 2 CPUs in ioscan could be iCOD CPUs, which are there but deconfigured, i.e. inactive.
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 03:30 AM
10-08-2003 03:30 AM
Re: Number of CPU under HP-UX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 07:05 PM
10-08-2003 07:05 PM
Re: Number of CPU under HP-UX?
--
sar -Mu 1 1
HP-UX sedling B.11.11 U 9000/800 10/09/03
08:03:23 cpu %usr %sys %wio %idle
08:03:24 0 0 0 0 99
1 0 0 11 88
2 1 2 0 96
3 3 0 0 96
system 1 1 3 95
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 07:12 PM
10-08-2003 07:12 PM
Re: Number of CPU under HP-UX?
#echo "processor_count/D" | adb -k /stand/vmunix /dev/mem
#cat /var/adm/syslog/syslog.log|grep processor|wc -l