Visit Our UNIX and Linux User Community


How to find how many CPU installed in the servers


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to find how many CPU installed in the servers
# 1  
Old 11-02-2007
Network How to find how many CPU installed in the servers

We are using HP unix how to find out how many number of CPU's in the system.
# 2  
Old 11-02-2007
Have your tried mpstat ? which works in unix not sure about HP unix
# 3  
Old 11-03-2007
CPU & Memory How to find how many CPU installed in the servers

We tried but its not working.We tried parstatus too.But its not working.

uname -a
HP-UX hydcpub B.11.23 U ia64 0688858991 unlimited-user license.
# 4  
Old 11-03-2007
One way:
ioscan -C processor

But please don't post technical questions in "Post Here to Contact Site Administrators and Moderators". Like the description says: "Make Suggestions About Forums, Features, or Content here. Discuss Rules and Guidelines. Get Forum Support Here. (Registered Users Only)" and that is not what you're trying to do. The HP-UX experts will general check the HP-UX forum and you probably would have gotten a quicker answer there.
# 5  
Old 11-03-2007
what about ' top '

it displays the CPU utilization for all the CPU's
# 6  
Old 11-13-2007
I got the same from "machinfo"
# 7  
Old 11-13-2007
machinfo on IA64

glance and top will tell you

ioscan | grep -i processor
# ioscan -fn | grep -i proc
processor 0 33 processor CLAIMED PROCESSOR Processor
processor 1 37 processor CLAIMED PROCESSOR Processor
processor 2 97 processor CLAIMED PROCESSOR Processor



This will work on 11i PA-RISC:

:
# Name:
# cpumem
#
# Purpose:
# List the CPU & memory particulars of a HP-UX 11i v1 server.
#
#@(#)cpumem.sh PR

nodename=$(uname -n)
model=$(model)
ncpu=$(echo processor_count/D |adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2}')
mhz=$(echo itick_per_tick/D |adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2/10000 " MHz"}')
mb=$(echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2/256 " MB"}')

echo "$nodename $model ${ncpu} $mhz $mb"


# cpumem
ldgpdb01 9000/800/L3000-7x 3 750 MHz 12288 MB


(And no, I don't know why this box has three CPUs!)
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #830
Difficulty: Medium
JSON-RPC is a remote procedure call (RPC) protocol built on JSON, as a replacement for XML-RPC or SOAP.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Required cpu , memory, df output in mail for multiple servers

I have prepared script which will collect cpu, memory and df out out for multiple server and send in one mail, but my script only run in one server, and when I send to mail, it shows in text format. it should be show actual format. if any one can help , that would be very grateful. script... (1 Reply)
Discussion started by: yash_message
1 Replies

2. UNIX for Beginners Questions & Answers

Bash find version of an installed application but if none is found set variable to App Not Installed

Hello Forum, I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so: APP=application --version But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies

3. Shell Programming and Scripting

How to Find List of MQ and Websphere certificates that are installed on Linux and UNIX servers?

Dear All, I am planning to find the list of certificates(WEBshpere/MQ) on a servers. My certificates are either stored in (.jks) / (.pem)/ (.cer) . But some of the certificates are stored without these file formats. I tried using find command but unless I give the file name its difficult for... (4 Replies)
Discussion started by: sidh_arth85
4 Replies

4. UNIX for Dummies Questions & Answers

CPU and Memory Statistics Collection Across Many Servers

Hello geeks once again, many thanks for help in times past, you guys are awesome! But am here again, but now this is way heavy for me. Find below for my challenge: *** I need to collect CPU & RAM stats across 26 servers. *** I don't have the luxury of deploying an NMS, if I had it would... (3 Replies)
Discussion started by: infinitydon
3 Replies

5. Red Hat

yum is not installed on all servers. Why?

Hi, I've found that YUM is not installed on all RHEL 4, 5, 6 servers in this client site. What could be the particular reasons designing systems like this? wget is installed. Thank you in advance! (12 Replies)
Discussion started by: aixlover
12 Replies

6. AIX

Monitor Physical CPU usage on multiple servers

Hello, Looking for some help. I am trying to gather data at each server showing when the physical CPU is being used the most based on a weekly timeframe. I know this data can be seen through NMON but with multiple servers in our environment it could take a real long time. is there a easier... (4 Replies)
Discussion started by: audis$
4 Replies

7. Shell Programming and Scripting

Script to check if SQLLDR has been installed on Unix/Aix servers

How can i check if sqlldr has been installed on my AIX/UNIX mechine? Is there any unix script to check this one out.... (0 Replies)
Discussion started by: msrahman
0 Replies

8. UNIX for Advanced & Expert Users

Script to access multiple linux servers to get system details such as CPU usage

Hi Is there any shell script that accesses multiple linux servers to get details such as CPU usage, RAM used etc. The access of the servers must be parallel not serial in the sense it must ping all the servers at a time to get information.The script has to be triggered from a host system and get... (7 Replies)
Discussion started by: mssrivatsa
7 Replies

9. UNIX for Dummies Questions & Answers

How to find about NICs installed

Hi; Is there a way to determine for sure how many NIC ports installed on my Linux box? I tried to run "lspci" but not sure about the results, it's not clear. Below are the results when i run both "ifconfig" & "lspci" on my Linux box i hope someone can help me finding the actual numbers of... (1 Reply)
Discussion started by: Katkota
1 Replies

10. UNIX for Dummies Questions & Answers

trying to find out where oracle is installed

Hi I am logged into a remote linux machine, i want to find out where the oracle software is installed..basically, i want to see the following files... oracle_home/rdbms/admin/sql.bsq oracle_home/rdbms/admin/catalog.sql i am taken to home directory...do i need to export something here?... (3 Replies)
Discussion started by: soujanya_srk
3 Replies

Featured Tech Videos