1753466 Members
4554 Online
108794 Solutions
New Discussion юеВ

Re: Cpu Model

 
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