Operating System - HP-UX
1753767 Members
5751 Online
108799 Solutions
New Discussion юеВ

Re: 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 13
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