HPE 9000 and HPE e3000 Servers
cancel
Showing results for 
Search instead for 
Did you mean: 

identifying if its a PA8800 or a PA8900 H/W

 
prakasse
Advisor

identifying if its a PA8800 or a PA8900 H/W

Hi all,
I am trying to figure how to differentiate PA8800 from a PA8900. I have the output from test program that get me:

type = sysconf(_SC_CPU_CHIP_TYPE);
keybits = sysconf(_SC_CPU_KEYBITS1);
version = sysconf(_SC_CPU_VERSION);

from both types of processors. From the PA8800 machine, I get:

type = 644
keybits = 178
version = 532

and from the PA8900 machine, I get:

type = 650
keybits = 178
version = 532

I thought I could do a mapping if I did a:

model = type >> 5

and map that value to the model, but I get back the same value from both types. Since the keybits and versions are the same, there must be something that I am missing. Can you tell the part that I am missing to figure this out??

Thanks in advance,

Senthil
6 REPLIES 6
Steven Schweda
Honored Contributor

Re: identifying if its a PA8800 or a PA8900 H/W

> I thought I could do a mapping if I did a:
> model = type >> 5

Why did you think that?

> [...] but I get back the same value from
> both types.

Well, duh. 644 = 0x284, and 650 = 0x28A.
They differ in only the low four bits, so if
you shift off the low five bits, then they
probably will look the same.
Wim Rombauts
Honored Contributor

Re: identifying if its a PA8800 or a PA8900 H/W

And what if you just do "grep PA /var/tombstones/ts99" ?

On my systems, it returns lines like :

PA 8900 CPU module 3.2

or :

PA 8800 CPU module 3.1
TwoProc
Honored Contributor

Re: identifying if its a PA8800 or a PA8900 H/W

I did find a script (ux.pl) of Merijn's (perl script) that does much of what you're wanting, you could easily grep or cut out of there what you need:

http://mirrors.develooper.com/hpux/ux

$ ./ux.pl | cut -d" " -f8 | sed -e "s/\/.*//"
PA8600

That should work for you.
We are the people our parents warned us about --Jimmy Buffett
prakasse
Advisor

Re: identifying if its a PA8800 or a PA8900 H/W

Hi,
I have a couple issues related to this. That file appears to only exist on PA-RISC and not Itanium. Also, the contents/file formats can differ as I found by looking at the file on a couple of my machines. Since I have to support both architectures, I'd like a solution that works on both. To date, our current mechanism had worked until now. So I guess the question is can I reliably use the chip type to determine the mapping?? I believe that for Itanium, the model is bits 16-23 and the family is 24-31. So does a similar mapping exist for PA-RISC and if so, what is it?? What I want to know what bits I need to look at to uniquely map them myself given I am doing all of this programmatically for PA-RISC as I already which ones to use for Itanium (the model is bits 16-23 and the family is 24-31)?? Better yet, an RFE would be nice to provide a call return the actually cpu model regardless of architecture. But since something like that would be put off to a future release of HP-UX, I am looking for something now.

Thanks,
Senthil
Torsten.
Acclaimed Contributor

Re: identifying if its a PA8800 or a PA8900 H/W

I would consider to execute "machinfo" and grep the result:

#/usr/contrib/bin/machinfo
CPU info:
1 PA-RISC 8800 processor (800 MHz, 32 MB)
CPU version 4
2 logical processors (2 per socket)


This working for PA-RISC and Integrity hardware, but the result is different.

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!   
Roberto Arias
Valued Contributor

Re: identifying if its a PA8800 or a PA8900 H/W

Hi all :

the best way for thos is install cfg2html ( www.software.hp.com)and run it. The report of configuration of system is very complet
regards
The man is your friend