1753471 Members
4721 Online
108794 Solutions
New Discussion юеВ

Re: number of cpus

 
SOLVED
Go to solution
Mike Morgan
New Member

number of cpus

Is there a command I can run that will tell me the number of processors on my server? I do not have access to SAM or glance or many other "root" utilities.
7 REPLIES 7
Kofi ARTHIABAH
Honored Contributor
Solution

Re: number of cpus

try top or sar
nothing wrong with me that a few lines of code cannot fix!
Rick Garland
Honored Contributor

Re: number of cpus

top can be run as non-root and will display for you how many CPUs are working on the system.
Manju Kampli
Trusted Contributor

Re: number of cpus

in addition to the above two answers, you can also use "ioscan -fn |grep processor" command to see how many processor are on system
Never stop "LEARNING"
Park Si Hyun
New Member

Re: number of cpus

There are some method to find a number of cpus.It is like below.

1. If you can see a server LCD panel, you will find it.
2. If you are root user, you can user command 'dmesg'.
3. If you are not root user, you can user command '/usr/bin/top'
4. If you are root user and purchased a GlancePlus s/w, you can user 'glace'.


Whenever, Wherever, Whoever and Whatever I'll go.
Jerry Pinnell
New Member

Re: number of cpus

sar -M will show the number of CPUs and doesn't require root access:

11:09:46 cpu %usr %sys %wio %idle
11:09:51 0 13 6 20 62
1 7 17 24 52
2 34 4 22 40
3 6 13 18 63
4 97 2 0 0
5 15 14 25 46

Re: number of cpus

Typing:

# ioscan

will give to you the number of processor.
Tim Nelson
Honored Contributor

Re: number of cpus

sar -M 1 1 is the easiest.