Operating System - HP-UX
1753453 Members
6550 Online
108794 Solutions
New Discussion

how to know the CPU model of my machine

 
Salvador Reyna
Advisor

how to know the CPU model of my machine

Hello,

I'm trying to get my CPU model, but I don't know if there are any command like "model" or something else. I need to obtain the CPU model like "PA8600".

Could anybody help me, please?

Thanks a lot

 

P.S. This thread has been moved from HP-UX Technical Documentation to HP-UX > sysadmin. -HP Forum Moderator

10 REPLIES 10
Robert-Jan Goossens_1
Honored Contributor

Re: how to know the CPU model of my machine

Hi,

From Merijn's FAQ's

# perl -MUnix::Processors -le'print join"\t",$_->id,$_->state,$_->type,$_->clock for @{Unix::Processors->new()->processors}'

# echo "selclass qualifier cpu;infolog" | /usr/sbin/cstm | grep "CPU Module"

http://mirrors.develooper.com/hpux/faq.html

Regards,
Robert-Jan
Pete Randall
Outstanding Contributor

Re: how to know the CPU model of my machine

Salvador,

Try this script:

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
Salvador Reyna
Advisor

Re: how to know the CPU model of my machine

Thanks Pete, but,... this only show me Mhz.
This is the result:
"machine has 6 750 Mhz processor(s)"

But,.. what is the CPU model ?
Alex Lavrov.
Honored Contributor

Re: how to know the CPU model of my machine

Yea, it's because your box is not listedd in the models of SAM. I have the same thing.

What's the output of "model" on your computer?

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Salvador Reyna
Advisor

Re: how to know the CPU model of my machine

I cannot obtain the CPU version of my host. Well... it's not real, I can obtain it entering in SAM, accesing to Performance monitor, system properties.

but,... why I cannot to display it in command line ??
Colin Topliss
Esteemed Contributor

Re: how to know the CPU model of my machine

Have you tried using Support Tools Manager?

Try this:
root:> cstm
cstm:> map

Look for the entry for the CPU, eg:

299 14/16 CPU (880) Information Successful

then:

cstm:> select path 14/16
cstm:> map
cstm:> infolog

You'll get the log output - scan down for your CPU info (it will look something like this):

1 0/1 PDC 22.1
CPU(0A) PA8800 3.1
CPU(0B) PA8800 3.1
CPU(1A) PA8800 3.1
CPU(1B) PA8800 3.1
CPU(2A) PA8800 3.1
CPU(2B) PA8800 3.1
CPU(3A) PA8800 3.1
CPU(3B) PA8800 3.1
CC 1.0
SBA 1.0

So, I have some PA8800 CPUs here.

BE CAREFUL with cstm! Don't mess with it too much.

Regards

Colin.
MarkSyder
Honored Contributor

Re: how to know the CPU model of my machine

SAM -> Performance monitors -> system properties. Processor is the first tab.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Colin Topliss
Esteemed Contributor

Re: how to know the CPU model of my machine

.....or even better:

Create a file. Put in it the following (where the path = the hardware path to your CPU - you can get that from ioscan -fnC processor):

map
select path 14/16
map
infolog
Done
quit
OK


Then do:
cstm -f

Col.
Salvador Reyna
Advisor

Re: how to know the CPU model of my machine

Not appear, Collin.

But, doesn't matter. I can access to the data by SAM

THANKS A LOT