1830845 Members
2563 Online
110017 Solutions
New Discussion

Re: Cpu Model

 
Stefano Ferri
Frequent Advisor

Cpu Model

Hi,

I have a problem for retrieve the specific cpu model (like pa8900 etc etc) on partitionable server. I have tried by cstm, but the model do not appears. I need to retrieve it from a shell script and I can't use sam (that reports the correct cpu model. How?)

Can anyone help me?

Thanks,

Stefano
18 REPLIES 18
Oviwan
Honored Contributor

Re: Cpu Model

Hey

what about "machinfo"?

Regards
Stefano Ferri
Frequent Advisor

Re: Cpu Model

Hi Oviwan,

the machinfo command run only on integrity system (itanium2), I need cpu model for pa-risc architetture.

Thanks,

Stefano
James R. Ferguson
Acclaimed Contributor

Re: Cpu Model

Hi:

Oviwan: > what about "machinfo"?

'machinfo' applies only to Itanium processors.

Regards!

...JRF...
Keith Johnson
Valued Contributor

Re: Cpu Model

If you have Ignite loaded, try the /opt/ignite/bin/print_manifest command.

Look at the Model under System Hardware.
No matter where you go...there you are.
Stefano Ferri
Frequent Advisor

Re: Cpu Model

Hi Keith Johnson,

I have already tried the print_manifest command, but it reports the string model (ex 9000/800/rp4440). I need of cpu model as pa8900,pa8700 etc. etc.

Thanks,

Stefano
Pete Randall
Outstanding Contributor

Re: Cpu Model

It doesn't work in all cases, but try "getconf CPU_CHIP_TYPE".


Pete

Pete
Stefano Ferri
Frequent Advisor

Re: Cpu Model

Hi Randal,

The output is the following:

getconf CPU_CHIP_TYPE
613

Is It an ID that reference processor specific model?

Thanks,

Stefano
Pete Randall
Outstanding Contributor

Re: Cpu Model

Stefano,

Better yet, try this:

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

Pete
Pete Randall
Outstanding Contributor

Re: Cpu Model

Oops, make that:

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

$ echo $MODEL
PA8500

Pete
Stefano Ferri
Frequent Advisor

Re: Cpu Model

Randall,

I have tried this method yet, but it is compatible with few servers model, and in these files there isn't any partitionable server (like superdome), for example I looking for SD64000.

Thanks,

Stefano
Oviwan
Honored Contributor

Re: Cpu Model

Once someone has written a machinfo for pa-risc in C and posted the code in this forum but i can't find the thread anymore. maybe someone has add it to his favourite...
Gregory Fruth
Esteemed Contributor

Re: Cpu Model

Why do you need to retrieve the CPU model?

If you are writing an application which
depends on the instruction set architecture
being PA1.1 vs. PA2.0 vs. IA64, then use
getconf CPU_VERSION. The return value can
be decoded using (see
sysconf(2)).

getconf CPU_CHIP_TYPE seems to be for IA64
only. You could probably decode the value
if you had access to the IPF docs (see
sysconf(2)).javascript:postAnswerSubmit('submit');
Submit
Stefano Ferri
Frequent Advisor

Re: Cpu Model

Hi Gregory,

I need of this information for inventory reason. I must to collect the cpu detailed info,(speed,model etc etc), I have all information and I must to have the specific cpu model for pa-risc servers.

Thanks,

Stefano
Gregory Fruth
Esteemed Contributor

Re: Cpu Model

Evidently HP believes that user programs
have no business querying the CPU model,
because AFAICT they have provided no
documented way to get it. You would be
better off getting the info using SAM or
by looking at the original purchase
invoices.

However, if you simply MUST get the CPU
model programmatically, here are some
options you can try:

1) Open a support call with HP. Perhaps a
sympathetic engineer from the SAM team will
tell you how SAM gets the information.
My guess is that SAM is either using the
sched.models file (which can be in both
/usr/lib and in /opt/langtools/lib) or is
calling an API which is not normally
available to the user.

2) Use "expect" to start SAM in text (ASCII)
mode and retrieve the model number from there. I believe you can configure SAM so
that regular users can only use certain
areas of SAM.
Dennis Handly
Acclaimed Contributor

Re: Cpu Model

>Gregory: My guess is that SAM is either using the sched.models file (which can be in both /usr/lib and in /opt/langtools/lib)

This may be pretty useless since we stopped adding new models to the compiler's sched.models because we use system calls.
dipesh_2
Regular Advisor

Re: Cpu Model

'machinfo' applies only to Itanium processors.
If you have Ignite loaded, try the /opt/ignite/bin/print_manifest
#cstm
#selall
#map
#infolog --- will show you detailed information of all your components installed on system.

Regards!
deep
Stefano Ferri
Frequent Advisor

Re: Cpu Model

dipesh,

I cannot use cstm because on partitionable server don't display the cpu model... It work only on 'not partitionable server'.

Stefano
AwadheshPandey
Honored Contributor

Re: Cpu Model

Try this!!
#model
9000/800/A500-44
cat /usr/sam/lib/mo/sched.models|grep "A500-44"
in your case file location may be
/usr/lib/sched.models.

Cheers,

Awadhesh
It's kind of fun to do the impossible