Re: HP-UX command need to display processor information (10944 Views)
Reply
Frequent Advisor
Andre Thompson_1
Posts: 62
Registered: ‎03-31-2004
Message 1 of 11 (10,944 Views)
Accepted Solution

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
Valued Contributor
mirco_1
Posts: 81
Registered: ‎04-04-2005
Message 2 of 11 (10,944 Views)

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.
Honored Contributor
Rick Garland
Posts: 4,470
Registered: ‎06-25-1997
Message 3 of 11 (10,944 Views)

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
Frequent Advisor
Andre Thompson_1
Posts: 62
Registered: ‎03-31-2004
Message 4 of 11 (10,944 Views)

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
Valued Contributor
mirco_1
Posts: 81
Registered: ‎04-04-2005
Message 5 of 11 (10,944 Views)

Re: HP-UX command need to display processor information

hy,

try this:

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

DM.
Honored Contributor
Rick Garland
Posts: 4,470
Registered: ‎06-25-1997
Message 6 of 11 (10,944 Views)

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
Frequent Advisor
singvey
Posts: 78
Registered: ‎07-27-2005
Message 7 of 11 (10,944 Views)

Re: HP-UX command need to display processor information

you can try
/opt/ignite/sbin/print_manifest
Acclaimed Contributor
Torsten.
Posts: 23,451
Registered: ‎10-02-2001
Message 8 of 11 (10,944 Views)

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!   
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 9 of 11 (10,944 Views)

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
Honored Contributor
Muthukumar_5
Posts: 4,030
Registered: ‎06-09-2004
Message 10 of 11 (10,944 Views)

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!
Frequent Advisor
Andre Thompson_1
Posts: 62
Registered: ‎03-31-2004
Message 11 of 11 (10,944 Views)

Re: HP-UX command need to display processor information

Thanks for your help everyone.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.