Operating System - HP-UX
1752679 Members
5750 Online
108789 Solutions
New Discussion юеВ

Re: HP-UX command need to display processor information

 
SOLVED
Go to solution
Andre Thompson_1
Frequent Advisor

HP-UX command need to display processor information

Hi Everyone

Is there an HP-UX command to display processor information e.g.:

No. of processors.
For each processor:
Processor Type
Speed

etc.

- Andre
10 REPLIES 10
mirco_1
Valued Contributor

Re: HP-UX command need to display processor information

hy,

speed :
# echo itick_per_usec/D | adb -k /stand/vmunix dev/mem

or
the last 2 number is the speed es: 44 >> 440Mh
# model

the number of processor :
# ioscan -fnk|grep proc

or with stm or at the similar mode to the processor speed
DM.
Rick Garland
Honored Contributor
Solution

Re: HP-UX command need to display processor information

Checkingvia cstm

performed on N4000-55 running HPUX 11.00
echo "selclass type proc;info;wait;infolog" | cstm

This will provide lots of info, firmware, errors, etc.

This will get the number of;
ncpu=$(ioscan -k|grep processor|wc -l)

To obtain on a ia64 bsystem
/usr/contrib/bin/machinfo

Also look into top (# of procs) & SAM
Andre Thompson_1
Frequent Advisor

Re: HP-UX command need to display processor information

Hi Mirco

The command for finding the speed did not work. However the number of processor commdn worked.

Hi Rick

This was very detailed. Thanks. interting though is that the processor speed showed up as N/A

I am using HP-UX 11.23 on a Rp3440

-Andre
mirco_1
Valued Contributor

Re: HP-UX command need to display processor information

hy,

try this:

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

DM.
Rick Garland
Honored Contributor

Re: HP-UX command need to display processor information

Not sure about /usr/contrib/bin/machinfo on HPUX 11.23 on PA-RISC. Does exist on HPUX 11.23 ia64 system.

There is SAM
# sam --> Performance Monitors --> System Properties

Will display the speed
singvey
Frequent Advisor

Re: HP-UX command need to display processor information

you can try
/opt/ignite/sbin/print_manifest
Torsten.
Acclaimed Contributor

Re: HP-UX command need to display processor information

Hi Andre,

you may use

/usr/contrib/bin/machinfo

for Itanium based systems.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Pete Randall
Outstanding Contributor

Re: HP-UX command need to display processor information

CPU

HPUX=/stand/vmunix

MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')

MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"


Pete

Pete
Muthukumar_5
Honored Contributor

Re: HP-UX command need to display processor information

Several ways as,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889

1. sam -> performance monitor -> processor
2. print_manifest (if ignite-ux installed)
3. machinfo (11.23 HP versions)
4. ioscan -fnC processor
5. echo "processor_count/D" | adb /stand/vmunix /dev/kmem
6. top command to get cpu count

hth.
Easy to suggest when don't know about the problem!