- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- find number of cpus in server
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
01-27-2005 01:52 AM
01-27-2005 01:52 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 01:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 01:56 AM
01-27-2005 01:56 AM
Re: find number of cpus in server
Or xstm
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 01:56 AM
01-27-2005 01:56 AM
Re: find number of cpus in server
ioscan -fn will give you a lot of info. primary what is there on your system.
ioscan -fn |grep -i processor
will give you all the processors on your system.
ioscan -fn |grep -i processor |wc -l
will give you the count of proccessor.
Also look into cstm (part of support tool manager) which gets you more detailed info.
For eg. for cpu info.
echo 'selclass qualifier cpu;info;wait;infolog' |cstm > /tmp/cpuinfo.txt
more /tmp/cpuinfo.txt
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 02:00 AM
01-27-2005 02:00 AM
Re: find number of cpus in server
The cstm command Sanjay gave you is very good, if you have Ignite installed you could also use the print_manifest command.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 02:01 AM
01-27-2005 02:01 AM
Re: find number of cpus in server
if you want only to know how many cpu are there on server , use the top command.
it will show the cpu's ,per cpu usage,etc.
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 02:22 AM
01-27-2005 02:22 AM
Re: find number of cpus in server
Using sam --> performance monitor --> system properties will give more informations.
To use sysinfo then get the sysinfo script from here and get.
http://unix.derkeiler.com/Mailing-Lists/HP-UX-Admin/2004-11/0056.html
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 02:32 AM
01-27-2005 02:32 AM
Re: find number of cpus in server
#!/bin/ksh
#
# Taken from the HP/UniGraphics FAQ
# You must be ROOT to execute this since it uses adb to
# examine the running kernel
#
GetKernelSymbol()
{
echo "$1/D" | \
adb $hpux /dev/kmem | \
tr "\012" " " | \
read junk junk2 kval
}
hpux=/hp-ux
rev=$(uname -r | cut -d. -f2)
if ((rev > 9)); then hpux=/stand/vmunix ;fi
/bin/uname -a
GetKernelSymbol "processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_tick"
let speed=kval/10000
print CPU Speed: $speed MHz
if ((rev > 10)); then
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
else
GetKernelSymbol "physmem"
fi
let mb=kval*4/1024 # convert pages to MB
print RAM Size: $mb MB
GetKernelSymbol "bufpages"
let mb=kval*4/1024 # convert pages to MB
print bufpages: $mb MB
GetKernelSymbol "maxuprc"
print maxuprc: $kval
GetKernelSymbol "maxvgs"
print maxvgs: $kval
GetKernelSymbol "maxfiles"
print maxfiles: $kval
GetKernelSymbol "max_thread_proc"
print max_thread_proc: $kval
GetKernelSymbol "nfile"
print nfile: $kval
GetKernelSymbol "nflocks"
print nflock: $kval
GetKernelSymbol "nproc"
print nproc: $kval
GetKernelSymbol "ninode"
print ninode: $kval
GetKernelSymbol "vfd_cw"
print shmmax: $kval
GetKernelSymbol "shmmni"
print shmmni: $kval
GetKernelSymbol "dbc_max_pct"
print dbc_max_pct: $kval
Output like:
# hpmem
HP-UX sha1 B.11.11 U 9000/785 2012953216 unlimited-user license
CPU Count: 1
CPU Speed: 400 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 768 MB
bufpages: 192 MB
maxuprc: 200
maxvgs: 10
maxfiles: 60
max_thread_proc: 64
nfile: 8202
nflock: 800
nproc: 2048
ninode: 2248
shmmax: 1073741824
shmmni: 200
dbc_max_pct: 25
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 05:46 AM
01-27-2005 05:46 AM
Re: find number of cpus in server
If you are on an IA box (on 11.23), HP provides
a "machinfo" command that prints out the # of
CPUs and clock speed, details of processor arch and
vendor, formwire and platform info, memory and
OS info etc. Almost everyting you needed to know
at one place.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2005 05:48 AM
01-27-2005 05:48 AM
Re: find number of cpus in server
You can use the command
#ioscan -k |grep -i processor |wc -l
or you can also use cstm
cstm>map
cstm>sel dev xx(the cpu device number)
cstm>info
-- Updating Map --
Updating Map...
cstm>il
you can look for the cpu map there
Rgds
HGN