Operating System - HP-UX
1833775 Members
3234 Online
110063 Solutions
New Discussion

Re: Processor information on HP-UX

 
Srini_18
New Member

Processor information on HP-UX

Hello,

Is there a command I can run to retrieve the number of processors and type of processor on the system - using HP-UX 11?

Thanks.
13 REPLIES 13
James A. Donovan
Honored Contributor

Re: Processor information on HP-UX

If you've got a server, then just look at the last few lines of the /var/tombstones/ts99 file.

Otherwise use the cstm,mstm,xstm utilities.
Remember, wherever you go, there you are...
Scott Palmer_1
Trusted Contributor

Re: Processor information on HP-UX

Hello,

if you have ignite installed on your server the command /opt/ignite/bin/print_manifest will give you a wealth of information about your system. Including the number of processors, I am unsure of how to determine the type however. Hope this helps a bit

Regards
Scott Palmer
generic_1
Respected Contributor

Re: Processor information on HP-UX

Hello try a ioscan -fnC processor to find the number of processors. You can see the speed by running a report on the CPUs in cstm. Note if there are cpus installed on your system but in a deconfigured state you will need to bring down the system to see those. All of your cpus will run at the same speed or at the speed of the slowest processor.
Sanjay_6
Honored Contributor

Re: Processor information on HP-UX

Hi,

for no of processors,

ioscan -fnk |grep -i Processor |wc -l

Type of Processor,

First find "system model"

# model

Now grep for this model in /usr/lib/sched.models file.

grep "xyz" /usr/lib/sched.models

This will give you the type of processors on the system.

Hope this helps.

Regds
Rgomes
Valued Contributor

Re: Processor information on HP-UX

Hi,

Look at the cstm.txt file after running the following command as root:

#echo "map selall info;wait infolog" | cstm > csmt.txt


Regards,
Richard
H.Merijn Brand (procura
Honored Contributor

Re: Processor information on HP-UX

In fact this is a FAQ, and as such in the FAQ section of my site:

--8<---
How many CPU's does my system have?

a5:/wrk 105 > grep processor /var/adm/syslog/syslog.log
Nov 5 13:10:54 a5 vmunix: 160 processor
a5:/wrk 105 > ioscan -fnkC processor
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
processor 0 160 processor CLAIMED PROCESSOR Processor
a5:/wrk 106 > echo "selclass qualifier cpu;infolog" | /usr/sbin/cstm | grep "CPU Module"
PA 8600 CPU Module 3.1
a5:/wrk 107 > echo "sc product cpu;il" | /usr/sbin/cstm | grep 'CPU Module'
PA 8600 CPU Module 3.1
a5:/wrk 108 >

Or with Perl:

a5:/wrk 108 > perl -MUnix::Processors -le'print join"\t",$_->id,$_->state,$_->type,$_->clock for @{Unix::Processors->new()->processors}'
0 online HP PA-RISC 2.0 750
1 online HP PA-RISC 2.0 750
a5:/wrk 109 >
What is my CPU type?

d3:/wrk 105 > model
9000/800/D390
d3:/wrk 105 > grep -i d390 /opt/langtools/lib/sched.models
D390 2.0 PA8200
d3:/wrk 106 > grep -i d390 /usr/sam/lib/mo/sched.models
D390 2.0 PA8000
d3:/wrk 107 > echo "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm | grep "CPU Module"
PA 8200 CPU Module 5.1
d3:/wrk 108 >

Or with Perl:

a5:/wrk 108 > perl -MUnix::Processors -le'print join"\t",$_->id,$_->state,$_->type,$_->clock for @{Unix::Processors->new()->processors}'
0 online HP PA-RISC 2.0 750
1 online HP PA-RISC 2.0 750
a5:/wrk 109 >

Some give getconf MACHINE_TYPE as answer, but it won't work on HP-UX 10.20. model will.

The sched.models on the sam path is usually more up to date than the one in langtools
What is my CPU speed?

d3:/ 103 # echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
itick_per_usec:
itick_per_usec: 240
d3:/ 104 #

Or with Perl:

a5:/wrk 108 > perl -MUnix::Processors -le'print join"\t",$_->id,$_->state,$_->type,$_->clock for @{Unix::Processors->new()->processors}'
0 online HP PA-RISC 2.0 750
1 online HP PA-RISC 2.0 750
a5:/wrk 109 >
-->8---

My HP ITRC site pages can be found at

Singapore https://www.beepz.com/personal/merijn/
Rotterdam http://www.cmve.net/~merijn/
Seattle http://www.hpux.ws/merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Geoff Wild
Honored Contributor

Re: Processor information on HP-UX

Use this script - called hpmem - uses adb.

# hpmem
HP-UX pc0004 B.11.11 U 9000/800 2504392628 unlimited-user license
CPU Count: 6
CPU Speed: 750 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 10080 MB
bufpages: 806 MB
maxuprc: 800
maxvgs: 128
maxfiles: 2048
max_thread_proc: 256
nfile: 189100
nflock: 1200
nproc: 2560
ninode: 16384
shmmax: 1073741824
shmmni: 256
dbc_max_pct: 8

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sanjiv Sharma_1
Honored Contributor

Re: Processor information on HP-UX

Hello,

If you have online diagnostics installed on your system then stm will give you all the information need about your system.

You can get the number of processor, type, speed, etc..
Everything is possible
Bharat Katkar
Honored Contributor

Re: Processor information on HP-UX

Simpe way to do is use #top command to get information on no. of processors. Just see CPU field in the Output. It shows 0,1,2,... so on.
Then use #model command. The last two digits gives your the Speed of the Processor. e.g. if it is "44" then the processor speed is 440MHz

Hope this satisfies U.
You need to know a lot to actually know how little you know
Florian Heigl (new acc)
Honored Contributor

Re: Processor information on HP-UX

simply type 'dmesg', or just print_manifest (somewhere in /usr/contrib/...) for the full blown all-and-everything output.
cstm is the better choice for serial numbers and a good overview of drivers bound.
yesterday I stood at the edge. Today I'm one step ahead.
Michael Tully
Honored Contributor

Re: Processor information on HP-UX

As pointed out by our friend Merijn, this is a frequently asked question. This is one of my favourites:

# echo "selclass qualifier cpu;info;wait;infolog" | cstm

You can substitute cpu for memory and various other components and gives heaps of information. Number of CPU's, MHz rating and of course firmware revision.
Anyone for a Mutiny ?
uadm26
Super Advisor

Re: Processor information on HP-UX

Hi,

You can use the "sam" tool to see the information about the processors:
#sam
Performance Monitors --> SAM System Properties
Best regardes,
Joel
sinhass
Regular Advisor

Re: Processor information on HP-UX