Operating System - HP-UX
1831928 Members
3744 Online
110031 Solutions
New Discussion

How to determine PA-RISC version?

 
SOLVED
Go to solution
GPS
Advisor

How to determine PA-RISC version?

I am downloading open source software which has following three options.

======================================
HP-UX 11.11 (PA-RISC 1.1 and 2.0)
HP-UX 11.11 (PA-RISC 2.0, 64-bit)
HP-UX 11.23 (IA64, 64-bit)
======================================

By using "swlist", I know my system OS is HP11, but I am not sure what PA-RISC version for my system.

What command or tool can figure out PA-RISC version 1.0 or 2.0?

10 REPLIES 10
Deoncia Grayson_1
Honored Contributor

Re: How to determine PA-RISC version?

basically you need to find out if your os is 32 bits or 64 bits, the command you will use is

getconf KERNEL_BITS

this will let you know which version you will need
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
James R. Ferguson
Acclaimed Contributor

Re: How to determine PA-RISC version?

Hi:

To show the PA-RISC version, do this:

# grep $(printf "0x%x" $(getconf _SC_CPU_VERSION)) /usr/include/sys/unistd.h

Regards!

...JRF...

Steven E. Protter
Exalted Contributor

Re: How to determine PA-RISC version?

Shalom,

I match output from the system to a chart at http://docs.hp.com or newer server still sold at http://www.hp.com servers link.

There are a few charts floating around with PA-RISC version, constantly moving around to new links.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sivakumar TS
Honored Contributor

Re: How to determine PA-RISC version?


Hi GPS,

Here is the LIST

PA-RISC Version Names and Numbers for HP 9000 Models

--> http://web.gat.com/docview/pa-risc.html

With Regards,

Siva.
Nothing is Impossible !
Arunvijai_4
Honored Contributor
Solution

Re: How to determine PA-RISC version?

Hello,

A programmatical way to find the PA-RISC Version,

/* Routine that will determine the version of PA-RISC
* on which it runs, plus O/S Version and I/O type to
* decide if Server or Workstation class system.

* Calling sysconf with flag _SC_IO_TYPE now returns
* three possible values : IO_TYPE_WSIO, IO_TYPE_SIO
* and IO_TYPE_CDIO (Converged I/O), so that method
* of determining if server or workstation is no
* longer valid.

* To build:
* $ cc -o infomk2 infomk2.c
* To run:
* $ ./infomk2

* Author: Jon Dewis, CPFP April 1997.
* Amended May 1997.
*/

#include
#include
#include
#include

main()
{
struct utsname uts;

printf("\n\n");
switch ( sysconf(_SC_CPU_VERSION) )
{
case CPU_PA_RISC1_0:
printf("PA-RISC Version : 1.0\n");
break;
case CPU_PA_RISC1_1:
printf("PA-RISC Version : 1.1\n");
break;
case CPU_PA_RISC1_2:
printf("PA-RISC Version : 1.2\n");
break;
case CPU_PA_RISC2_0:
printf("PA-RISC Version : 2.0\n");
break;
default:
printf("Unknown Architecture\n");
break;
}
printf("\n");
if ( uname(&uts) == -1 )
printf("Error in uname call\n"), exit(1);

printf ("System name : %s\n", uts.sysname);
printf ("Node name : %s\n", uts.nodename);
printf ("Version : %s\n", uts.version);
printf ("Release : %s\n", uts.release);
printf ("Machine : %s\n", uts.machine);
printf ("Idnumber : %s\n", uts.idnumber);

if ( strstr(uts.machine,"/7") == (char *) NULL)
{
if (strstr(uts.machine, "/8") == (char *) NULL)
printf(
"Unknown Machine type: %s\n",
uts.machine);
else
printf("This is a Server\n");
}
else
printf("This is a Workstation\n");

}

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

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: How to determine PA-RISC version?

Simply do this:

# file /stand/vmunix

will give that.

--
Muthu

Easy to suggest when don't know about the problem!
Ajitkumar Rane
Trusted Contributor

Re: How to determine PA-RISC version?

GPS,

You can find the required information by executing SAM -> Perfromance monitors -> System Properties.


Rgds,

Ajit
Amidsts difficulties lie opportunities
Bharat Katkar
Honored Contributor

Re: How to determine PA-RISC version?

Well, as muthu suggested "file /stand/vmunix" is the simplest of doing it.

I would like to suggest one more. :)

Use print manifest, it will clearly mention you the OS mode, whether it is 32 or 64 bit.

# /opt/ignite/bin/print_manifest > /myfile
# cat /myfile

Look for the system hardware information, for e.g. one of my system shows as:

System Hardware

Model: 9000/800/A500-44
Main Memory: 3072 MB
Processors: 2
OS mode: 64 bit
LAN hardware ID: 0x00306E03091C
LAN hardware ID: 0x001083187C0D
LAN hardware ID: 0x001083187C2D
LAN hardware ID: 0x00108318DC23
LAN hardware ID: 0x000000000000
LAN hardware ID: 0x000000000000
LAN hardware ID: 0x000000000000
LAN hardware ID: 0x000000000000
Software ID: 565740558
Keyboard Language: Not_Applicable


Hope that helps,
Regards,


You need to know a lot to actually know how little you know
James R. Ferguson
Acclaimed Contributor

Re: How to determine PA-RISC version?

Hi (again):

Simply doing a 'file' on /stand/vmunix is not useful for older machines. For example, an old K200 running 10.20 would return:

# file /stand/vmunix
/stand/vmunix: s800 executable -not stripped

Yet:

# grep $(printf "0x%x" $(getconf _SC_CPU_VERSION)) /usr/include/sys/unistd.h

returns:

# define CPU_PA_RISC1_1 0x210 /* HP PA-RISC1.1 */

Regards!

...JRF...
Sundar_7
Honored Contributor

Re: How to determine PA-RISC version?

There is one more way to find out from the model script

# model
9000/800/A500-7X
#
# grep A500-7X /usr/sam/lib/mo/sched.models


The second field is the PA-RISC version.
Learn What to do ,How to do and more importantly When to do ?