Number of CPU'S in UNIX box


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Number of CPU'S in UNIX box
# 1  
Old 11-12-2012
Number of CPU'S in UNIX box

Hi,

How to find number of CPU'S in unix box. And usage of the total no of CPU'S.

Last edited by DukeNuke2; 11-12-2012 at 02:09 AM..
# 2  
Old 11-12-2012
CPU information. (find by using google)

Code:
cat /proc/cpuinfo

Code:
nproc

Code:
lscpu

top gives you usage, but not pr CPU
# 3  
Old 11-12-2012
Quote:
Originally Posted by Jotne
top gives you usage, but not pr CPU
That's not really accurate, top can show number of CPUs and summary CPU usage for each one.

With most versions of top you can toogle the "1" key and see summary information for each CPU.

See the attached screenshot which shows summary information for 16 CPUs.
Number of CPU'S in UNIX box-screen-shot-2012-11-12-13947-pmpng
# 4  
Old 11-12-2012
And, with the "j" switch, you can see which process executes on which cpu.
# 5  
Old 11-12-2012
Quote:
Originally Posted by sam1226
How to find number of CPU'S in unix box. And usage of the total no of CPU'S.
There is no portable way. You should tell what version of Unix you are using.
# 6  
Old 11-12-2012
Thank you all .
Is there's any sample script to monitor cpu usage and number of cpu's, And capture the data for every minute. if the load is high it has to send alert meassage.
# 7  
Old 11-12-2012
Before anybody can really help you, you need to tell us what version of Unix you are using.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

2. UNIX for Dummies Questions & Answers

monitoring cpu and memory of the unix box

Hi all, Unix has the TOP and SAR command to monitor machine's performance. Can it be used in a script to alert if the cpu utilization is more than 80 or memory used is more than 90. Is SAR preferable than TOP? Please advise. (3 Replies)
Discussion started by: er_ashu
3 Replies

3. Shell Programming and Scripting

how to compare all files in one unix box has been to copied to another unix box

Hi our unix admin has copied all files from one unix box to new unix box. We just need to confirm that all the file systems are copied properly. How to validate. (9 Replies)
Discussion started by: sravanreddym
9 Replies

4. UNIX for Dummies Questions & Answers

I need an scp command from a unix box to a windows box.

scp file="myfile.txt" todir="user@somehost:(M:drive:/somepath/)"/ Not sure I need it to go to a specific drive on the windows box (1 Reply)
Discussion started by: xgringo
1 Replies

5. Shell Programming and Scripting

Moving files from Unix box to a windows box

Hi All, I need a little help .I want to transfer a file from unix box to a windows box,but the problem i'm facing is that in windows box FTP is not enabled and currently it is nearly impssible to change setting on windows box,i can not use the ftp method ,in my shell script to transfer the file.... (2 Replies)
Discussion started by: Preet
2 Replies

6. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

7. UNIX for Advanced & Expert Users

Unix and the maximum number of processes under a 386 box.

Hi ! I would like to know if Unix could launch more than 8192 processes , which is the maximum number of LDTs on a 386 box. Is this done by swapping some memory on the disk ? Thanks for your answers. (0 Replies)
Discussion started by: krhamidou
0 Replies

8. UNIX for Advanced & Expert Users

How to FTP a file generated at UNIX Box to NT Box

Hi all, I am generating a file on the Unix machine , now i want to FTP the same file to the NT machine. how can i do that and the application currently upon which i am working is a JAVA based application. I need your help. regards Ruchir (2 Replies)
Discussion started by: Ruchir
2 Replies

9. UNIX for Advanced & Expert Users

VPN client (windows Box),and Server (Unix Box)

If I want to access unix box via VPN tunnel,from windows box. What sould I configure on the windows client PC, and what should I enable on the Unix Server box ? I am using Solaris V10 intel platform, and I am using windows XP, and 2003 for client (0 Replies)
Discussion started by: zillah
0 Replies

10. UNIX for Advanced & Expert Users

Lost one cpu should the box crash

I've got a E6500 with 6 cpu's over 3 cpu boards. we lost one cpu should the box keel over ?? I wouldn't have seen this as a Single Point Of Failure Kie (2 Replies)
Discussion started by: kie
2 Replies
Login or Register to Ask a Question