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

How to Know PA-RISC or Itanium on my server

 
Basheer_2
Trusted Contributor

How to Know PA-RISC or Itanium on my server

Hello

rp7420,
uname -a
HP-UX erpdb01 B.11.23 U 9000/800 3718226868 unlimited-user license

file /stand/vmunix
/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)

Thanks
12 REPLIES 12
A. Clay Stephenson
Acclaimed Contributor

Re: How to Know PA-RISC or Itanium on my server

Yours is a PA-RISC box.
If it ain't broke, I can fix that.
Camel_1
Valued Contributor

Re: How to Know PA-RISC or Itanium on my server

I guess uname -a can tell you, if it is Itanium it will show ia64 instead of 9000/800.

James R. Ferguson
Acclaimed Contributor

Re: How to Know PA-RISC or Itanium on my server

Hi:

Servers with "rp" = PA-RISC.

Servers with "rx" = Itanium.

Regards!

...JRF...
Raj D.
Honored Contributor

Re: How to Know PA-RISC or Itanium on my server

Hi Basheer,

Try this ..

# echo "selclass qualifier cpu;infolog" | /usr/sbin/cstm

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Basheer_2
Trusted Contributor

Re: How to Know PA-RISC or Itanium on my server

Thanks all

James:
Is there any HP site that tells rp= PA-risc and rx=Itanium

Is there any cmd to find out risc or itanium
Raj D.
Honored Contributor

Re: How to Know PA-RISC or Itanium on my server

Hi Basheer,

This is the convention of the model :

rp= PA-RISC rx= Itanium.

Check this link for your model type:

http://www.hp.com/products1/servers/rackoptimized/rp7420/

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
A. Clay Stephenson
Acclaimed Contributor

Re: How to Know PA-RISC or Itanium on my server

Here's actually a better way to ask the box itself and it works just like the CPU_IS_PA_RISC macro in /usr/include/sys/unistd.h. In fact, it's a shell translation of that macro.

Use it like this:

typeset -i PA=0
PA=$(pa_risc.sh)
if [[ ${PA} -eq 1 ]]
then
echo "This is a PA-RISC box"
else
echo "It ain't"
fi

If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: How to Know PA-RISC or Itanium on my server

Hi (again):

One way is to do:

# getconf CPU_VERSION

Convert the returned decimal number to hexadecimal and look it up in:

/usr/include/sys/unistd.h

You will see defines like :

CPU_PA_RISC2_0 0x214

Thus 0x214 = 532

Thus if 'getconf' returned 532 I'd know that my box was a PA_RISC2, for instance.

Regards!

...JRF...

James R. Ferguson
Acclaimed Contributor

Re: How to Know PA-RISC or Itanium on my server

Hi (again):

You could compile this C program to keep around to:

# cat /tmp/whatkind.c

#include
#include
void main ()
{
if (CPU_IS_PA_RISC(sysconf(_SC_CPU_VERSION))) {
printf( "%s\n", "I am a PA-RISC box" );
} else {
printf( "%s\n", "I am an Itanium box" );
}
}

To compile:

cc /tmp/whatkind.c -o /tmp/whatkind

Regards!

...JRF...