1833813 Members
2875 Online
110063 Solutions
New Discussion

Re: CPU Type on HP

 
Alpa Shah
Advisor

CPU Type on HP


I've an application which reports all system info in an XML file. I want to true up those values. Those info are CPUType, Hyperthreading capable, hostid, core count, logical core count.
Anyone know the commands to get all these info on HP-UX and AIX?

11 REPLIES 11
Jarle Bjorgeengen
Trusted Contributor

Re: CPU Type on HP

Search the forums for "favorite sysadmin scripts you always keep around" Some of them have methods of picking out cpu type , speed, count and so on
Pete Randall
Outstanding Contributor

Re: CPU Type on HP

This will give you the speed and model of the CPUs (at least for RISC):


HPUX=/stand/vmunix

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

#Note: for 11.23 RISC, use
MHZ=$(echo itick_per_tick/D \ # echo "itick_per_usec/d" \
| adb -k $HPUX /dev/kmem \ # | adb $HPUX /dev/kmem
| tail -1 \ #For Itanium, use machinfo
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"



Pete

Pete
Alpa Shah
Advisor

Re: CPU Type on HP

Following are the information my application returns into the XML file. I've to true up all those values but I don't have commands for that. I've already got the command for CPU count.

##########
cpuType="HP PA-RISC" physicalProcessorCount="2"
coreCount="0"
logicalCoreCount="2"
activeCoreCount="2" hyperThreadingCapable="false" osPatchLevel=""
##########

Can anyone help on this pls?
James R. Ferguson
Acclaimed Contributor

Re: CPU Type on HP

Hi:

Run 'machinfo' if this is an Itanium HP-UX server.

Regards!

...JRF...
Alpa Shah
Advisor

Re: CPU Type on HP

Thanks James !!
Got all info for Itanium.
Any idea for Hp PA-RISC?
PC_7
Frequent Advisor

Re: CPU Type on HP

Hi Alpa Shah,

For PA-RISC, knowledge Mine# KBRC00017315 mentions that you can run:

- Cpu Version:
# /usr/sbin/diag/contrib/pdcinfo -no_banner grep CPU | grep PA

- Number of Processors
# ioscan -kfC processor | grep ^processor | wc -l
or
# echo "processor_count/D" | adb -k /stand/vmunix /dev/mem

- Machine Identifier
# uname -i

- Clock Frequency
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem

- Serial Number
# getconf CS_MACHINE_SERIAL
or
# echo "sc product system;info;wait;il" | cstm | grep -i "system serial"

or
# echo "sel path system\ninfolog\nexit"|cstm|grep "System Serial" System

Hope this helps.

Regards
Bhushan Bumber
Frequent Advisor

Re: CPU Type on HP

For PA-RISC

use the command print_manifest for the informations
There is a solution to every problem.
Torsten.
Acclaimed Contributor

Re: CPU Type on HP

Hi,

for Interity systems run

/usr/contrib/bin/machinfo

Example:
$ /usr/contrib/bin/machinfo
CPU info:
1 Intel(R) Itanium 2 9000 series processor (1.59 GHz, 18 MB)
532 MT/s bus, CPU version C2
2 logical processors (2 per socket)

Memory: 4065 MB (3.97 GB)

Firmware info:
Firmware revision: 01.32
FP SWA driver revision: 1.18
IPMI is supported on this system.
BMC firmware revision: 5.07

Platform info:
Model: "ia64 hp server rx3600"

... (and more) ...

or even "machinfo -v" (11.31):

$ /usr/contrib/bin/machinfo -v
CPU info:
1 Intel(R) Itanium 2 9000 series processor (1.59 GHz, 18 MB)
532 MT/s bus, CPU version C2
2 logical processors (2 per socket)

Vendor identification: GenuineIntel
Processor version info: 0x0000000020000704
Family 32, model 0, stepping 7
Processor capabilities: 0x0000000000000005
Implements long branch
Implements 16-byte atomic operations
Bus features supported: 0xbdf0000020000000
Bus features enabled: 0x0000000000000000
L1 Instruction cache: 16 KB, 4-way
L1 Data cache: 16 KB, 4-way
L2 Instruction cache: 1 MB, 8-way
L2 Data cache: 256 KB, 8-way
L3 Unified cache: 9 MB, 9-way

Memory: 4065 MB (3.97 GB)
...
...

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!   
Alpa Shah
Advisor

Re: CPU Type on HP

Thanks a lot to all of you.
your answers really helped me.
PC_7
Frequent Advisor

Re: CPU Type on HP

Hi Alpa Shah,

Glad that the answers helped you.

Could you please assign points (http://forums1.itrc.hp.com/service/forums/helptips.do?#33) and then close the thread (http://forums1.itrc.hp.com/service/forums/helptips.do?#40) ?

Thanks.

Regards,
Pau Cen
Alpa Shah
Advisor

Re: CPU Type on HP

I got all answers I needed so closing the thread. Again thanks to all who helped me.