System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to distinguish whether a server is IA or PA-RISC architecture

 
James.Z
Regular Advisor

how to distinguish whether a server is IA or PA-RISC architecture

dear all,

is there any command or method to distinguish whether a HP-UX server is PA-RISC or Itanium architecture.

thanks
13 REPLIES
R.K. #
Honored Contributor

Re: how to distinguish whether a server is IA or PA-RISC architecture

Hi James,

# model
9000/800/L3000-7x

9000 refers to PA-Risc


# model
ia64 hp server rx2620

ia refers to Itanium
Don't fix what ain't broke
R.K. #
Honored Contributor

Re: how to distinguish whether a server is IA or PA-RISC architecture

Another hint..
If you are getting disk names with s1, s2, s3 in the end then it will be an Itanium server.

# lvlnboot -v
Boot: lvol1 on: /dev/dsk/c3t2d0s2
Root: lvol3 on: /dev/dsk/c3t2d0s2
Swap: lvol2 on: /dev/dsk/c3t2d0s2
Dump: lvol2 on: /dev/dsk/c3t2d0s2, 0


#ioscan -funC disk
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c3t2d0 /dev/dsk/c3t2d0s2 /dev/rdsk/c3t2d0 /dev/rdsk/c3t2d0s2
/dev/dsk/c3t2d0s1 /dev/dsk/c3t2d0s3 /dev/rdsk/c3t2d0s1 /dev/rdsk/c3t2d0s3

Don't fix what ain't broke
James.Z
Regular Advisor

Re: how to distinguish whether a server is IA or PA-RISC architecture

i have a shell script, in this script, i need to estimate whether the server is a PA-Risc or IA,
it executes different tasks for different architecture.

so i only need to use command 'model' to match ia64, if match, it's a Itanium, if not match, it a Pa-risc. am'i right?
Steven Schweda
Honored Contributor

Re: how to distinguish whether a server is IA or PA-RISC architecture

Or "uname -m".

man uname

http://docs.hp.com/en/B2355-60130/uname.1.html

"[...] On Itanium(R)-based systems, this
option always displays ia64. [....]"
SoorajCleris
Honored Contributor

Re: how to distinguish whether a server is IA or PA-RISC architecture

Hi,

I have seen some rare cases like model string changed manually to something else.

But still, I think model will be the best option.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Dennis Handly
Acclaimed Contributor

Re: how to distinguish whether a server is IA or PA-RISC architecture

>Sooraj: I think model will be the best option.

It is far easier to parse the output of Steven's "uname -m" than the zillions of model strings.
if [ $(uname -m) = ia64 ]; then
James.Z
Regular Advisor

Re: how to distinguish whether a server is IA or PA-RISC architecture

thanks

i'll choose the easiest one :).
Javed Khan_1
Valued Contributor

Re: how to distinguish whether a server is IA or PA-RISC architecture

Hi,

run model command , if model number starts with RP**** then it's PA-RISC if model number starts with RX**** or BL**** then it's IA

Javed
Never Give Up
R.K. #
Honored Contributor

Re: how to distinguish whether a server is IA or PA-RISC architecture

@Javed

# model
9000/800/L3000-7x

I guess older hardware might not give rp****
:)
Don't fix what ain't broke
Javed Khan_1
Valued Contributor

Re: how to distinguish whether a server is IA or PA-RISC architecture

Hi,

if i am correct L3000-7X is nothing but RP5470

Javed
Never Give Up
R.K. #
Honored Contributor

Re: how to distinguish whether a server is IA or PA-RISC architecture


>>> if i am correct L3000-7X is nothing but RP5470
Yes


>>> if model number starts with RP**** then it's PA-RISC
NOT in every case


As can be seen:
# model
9000/800/L3000-7x
Though the server L3000 (RP5470) is pa-risc but still "model" command does NOT say RP**** (in writing).


>>> i have a shell script, in this script, i need to estimate whether the server is a PA-Risc or IA
And when comes to scripting we should try to use a command which gives output as GENERAL as possible. "model" command starts with 9000 (this means it is pa-risc). This, I think is more general and better for scripting purpose.
Don't fix what ain't broke
R.K. #
Honored Contributor

Re: how to distinguish whether a server is IA or PA-RISC architecture

And so do "uname -m".
Don't fix what ain't broke
Ashis Kumar Lenka
Occasional Contributor

Re: how to distinguish whether a server is IA or PA-RISC architecture

All the above options are correct. We can use any one of them to identify type of model