Operating System - HP-UX
1834145 Members
2089 Online
110064 Solutions
New Discussion

checking processors details

 
SOLVED
Go to solution
itai weisman
Super Advisor

checking processors details

hello,
i'm looking for commands to check proccesors details (number of processor, speed etc) in hpux 11 and 11i systems.
i'd like to get more then one way to apply this task.
thanks
Itai
15 REPLIES 15
KapilRaj
Honored Contributor

Re: checking processors details

ioscan
dmesg

Regds,

Kaps
Nothing is impossible
curt larson_1
Honored Contributor

Re: checking processors details

if you have diagnostics loaded you can a lot of that using cstm

not sure of the syntax at the moment but it is something like

cstm "selclass cpu;info;infolog"

i'll have to boot up a system to get you exact syntax
curt larson_1
Honored Contributor

Re: checking processors details

looks like you need to do this

echo "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm

can do the same for other things by specifing another qualifier, such as

selclass qualifier memory for memory
selclass qualifier all for lots of stuff
selclass qualifier disk, etc
curt larson_1
Honored Contributor

Re: checking processors details

a few other ways

#echo "processor_count/D" | adb -k /stand/vmunix /dev/mem

ioscan -fnC processor | grep -c processor

sar -Mu 1 1 | awk 'END {print NR-5}'

and

echo "itick_per_tick/D" | adb -k /stand/vmunix /dev/kem | tr "\012" " " | awk '{print $3}'
#divide by 10000 to get cpu speed in MHz

echo "processor_count/D" | adb -k /stand/vmunix /dev/kem | tr "\012" " " | awk '{print $3}'

echo "memory_installed_in_machine/D" | adb -k /stand/vmunix /dev/kem | tr "\012" " " | awk '{print $3}'

itai weisman
Super Advisor

Re: checking processors details

hey, thanks a lot,
where can i read about ctsm?
Bharat Katkar
Honored Contributor
Solution

Re: checking processors details

Sridhar Bhaskarla
Honored Contributor

Re: checking processors details

Hi Itai,

You can get complete information on Diagnostics from this URL.

http://docs.hp.com/hpux/diag/index.html

You may also want to try SysInfo, cfg2html to get good summary of your system. See if you have /opt/ignite/bin/print_manifest. If so, run it and see if it gives you the required information.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Rory R Hammond
Trusted Contributor

Re: checking processors details

Addeding couple:

root:# ioscan -fnC processor
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
processor 0 160 processor CLAIMED PROCESSOR Processor
processor 1 166 processor CLAIMED PROCESSOR Processor


root:ecom2# model
9000/800/L2000-44

/usr/local/bin
root:# uname -m
9000/800
There are a 100 ways to do things and 97 of them are right
Geoff Wild
Honored Contributor

Re: checking processors details

Here's a good little script called hpmem - uses adb and requires root:

# hpmem
HP-UX pc0003 B.11.11 U 9000/800 2504392627 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.
itai weisman
Super Advisor

Re: checking processors details

where is this script, i can't find it?
H.Merijn Brand (procura
Honored Contributor

Re: checking processors details

My script (attached) most recent version always available on my site ( http://mirrors.develooper.com/hpux/#FAQ ) does this:

a5:/ 101 # ux
a5 HP-UX 11.00/64 U 9000/800/A500-7X/64 PA8700/750(2) pa-2.0 2048 Mb
a5:/ 102 #

And it contains all the knowledge you need to know. The FAQ link has much more info

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Muthukumar_5
Honored Contributor

Re: checking processors details

hai,

We can get the processor count and binding status with the mpsched -s and mpsched -q command executions.

We can get the CPU bits and model with uname -i and getconf (CPU_CHIP_TYPE,HW_CPU_SUPP_BITS)

We can use machinfo command to get all machine informations with the CPU informations.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Shine_5
Frequent Advisor

Re: checking processors details

Hello Itai,

For no of processor #top

Other commands
#ioscan
#dmesg

for finding the whether OS is 32 or 64 bit

#getconf KERNEL_BITS

Thanks and regards
Shine
Geoff Wild
Honored Contributor

Re: checking processors details

Itai,

Did you get the hpmem script? It was attached to my post above.

Here's another command as well that tells you the PA CPU Model...:

/usr/sbin/diag/contrib/pdcinfo -no_banner


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.
itai weisman
Super Advisor

Re: checking processors details

yes i got it, thanks a lot,
i didn't have the chance to check it yet.