1833883 Members
1794 Online
110063 Solutions
New Discussion

Re: Getting cpu type

 
Umapathy S
Honored Contributor

Getting cpu type

All,
I am trying to collect some machine details.

1. For the model 9000/899/K570, how can I get the processor type. I use the script below for other machines.

CPUVER=`echo "cpu_version/X" | adb -k $Kernel /dev/kmem | grep cpu_version| awk '{ if (NF == 2) {print $2}}'`
CPUREV=`echo "cpu_revision_number/X" | adb -k $Kernel /dev/kmem | grep cpu_revision_number | awk ' { if (NF == 2) {print $2}}'`
CPU_TYPE=`grep 0x$CPUVER /usr/include/sys/unistd.h | awk '{print $7}'`
CPU_BIT=`getconf HW_CPU_SUPP_BITS`

echo "Processor Type : " $CPU_TYPE $CPUVER"."$CPUREV - $CPU_BIT"Bit"

Is this model is only 32 bit?

thanks,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
10 REPLIES 10
Joshua Scott
Honored Contributor

Re: Getting cpu type

No help on your main question, but I do know that the K570 has a 200MHz PA-RISC PA8200 CPU. All the PA8xxx are 64bit. It is possible for the PA8000 & PA8200 to run a 32-bit OS (10.20, or 11.0/11.i set to 32-bit mode at install).

HTH.

-Josh
What are the chances...
Patrick Wallek
Honored Contributor

Re: Getting cpu type

No, the K570 is 64-bit capable. Have a look at the following chard for details:
http://devrsrc1.external.hp.com/STK/serversupport.html

It is possible that there may be a firmware issue that would limit you to 32 bits. You might need to update firmware.
Umapathy S
Honored Contributor

Re: Getting cpu type

I will clarify more. It runs a 32 bit os. But , when I execute the above script it prints out junk values.
Arise Awake and Stop NOT till the goal is Reached!
Patrick Wallek
Honored Contributor

Re: Getting cpu type

What version of HP-UX are you running? What does the output look like when you run the script?
Umapathy S
Honored Contributor

Re: Getting cpu type

Patrick, I am not supposed to worry about the firmware. When I run the above script on that particular model, I get the output as

Processor Type : which add, shift-and-add been MC68020 MC68030 MC68040 PA-RISC1.0 PA-RISC1.1 PA-RISC1.2 PA-RISC2.0 value give
n . - Bit

which is a junk for me. How can I get the same output which I get in other models in this type of model.
Arise Awake and Stop NOT till the goal is Reached!
Umapathy S
Honored Contributor

Re: Getting cpu type

Its 10.20
Arise Awake and Stop NOT till the goal is Reached!
Patrick Wallek
Honored Contributor

Re: Getting cpu type

10.20 is your problem. 10.20 does not know anything about the HW_CPU_SUPP_BITS argument to getconf. 10.20 knows absolutely NOTHING about anything 64-bit.

I haven't tried the rest of your script, but I suspect most of your problems are because you are running it on 10.20. If you try it on an 11.X system, I bet you get the results you expect.
Umapathy S
Honored Contributor

Re: Getting cpu type

Patrick, I wrote this script after referring some of the forum scripts.
In 11* boxes it works just fine. I also need to collect the same info on 10.2 boxes also. Is there any other way?
Arise Awake and Stop NOT till the goal is Reached!
Patrick Wallek
Honored Contributor

Re: Getting cpu type

No, there is now way to use the HW_CPU_SUPP_BITS in 10.20. It just doesn't exist.

I'm not entirely sure about the rest of it either. I think you may be out of luck on 10.20 systems.
Hemanth Gurunath Basrur
Honored Contributor

Re: Getting cpu type

Hello Umapathy,

I found this Webpage, where it gives info on how you can determine cpu architecture programmatically.

http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2121,00.html

HTH.

Regards,
Hemanth