Operating System - HP-UX
1833788 Members
2507 Online
110063 Solutions
New Discussion

Re: determining architecture...PA-Risc or Itanium

 
SOLVED
Go to solution
galenr
Advisor

determining architecture...PA-Risc or Itanium

Can anyone provide a quick clean command to view whether or not a system is pa-risc or itanium based ? I have an in house tool that needs to be tweaked contingent upon the architecture (PA or Itanium). in order to incorporate this tool in a script I will need a way to detrmine the architecture quick and easy without say.. cstm. Thanx in advance
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: determining architecture...PA-Risc or Itanium

Frankly, I look at the physical machine model number.

If it starts with rx, its itanium.

If it starts with rp or is one of the older D,R,K,N boxes,its pa-risc.

uname -m returns 9000/900 on a PA-RISC box. It returns something different on a Itanium server.

uname might be enough.

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
Steven E. Protter
Exalted Contributor

Re: determining architecture...PA-Risc or Itanium

Frankly, I look at the physical machine model number.

If it starts with rx, its itanium.

If it starts with rp or is one of the older D,R,K,N boxes,its pa-risc.


corrected text...
uname -m returns 9000/800 on a PA-RISC box. It returns something different on a Itanium server.

uname might be enough.

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
Victor BERRIDGE
Honored Contributor

Re: determining architecture...PA-Risc or Itanium

While replying another thread I realised that a command given by Cheryl Griffin:
# /usr/sam/lbin/samx -C /usr/sam/lib/C/mo.ui
displays also " CPU Version "
I dont have any Itanium so I dont know what it says in that case but on PA it say e.g.
PA 8600 CPU Module 3.1

All the best
Victor
H.Merijn Brand (procura
Honored Contributor

Re: determining architecture...PA-Risc or Itanium

Funny you ask just now, since I've just updated the Perl README.hpux to tell just what you ask. Some excerpts:

-- PA-RISC section
A complete list of models at the time the OS was built is in the file
/usr/sam/lib/mo/sched.models. The first column corresponds to the last
part of the output of the "model" command. The second column is the
PA-RISC version and the third column is the exact chip type used.
(Start browsing at the bottom to prevent confusion ;-)

# model
9000/800/L1000-44
# grep L1000-44 /usr/sam/lib/mo/sched.models
L1000-44 2.0 PA8500
--

-- Itanium section
To see all about your machine, type

# model
ia64 hp server rx2600
# /usr/contrib/bin/machinfo
--

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Gregory Fruth
Esteemed Contributor
Solution

Re: determining architecture...PA-Risc or Itanium

Methods which rely on the model name or
even "uname -m" might break the next time
HP decides to change its model nomenclature.
See the WARNINGS section of the man pages for
"model" and "uname".

The most reliable way to determine the
CPU type is to use the command
"getconf CPU_VERSION". Unfortunately,
it returns a number which has to be
decoded to make any sense out of it.
The values are given in
/usr/include/sys/unistd.h, e.g.:

528 for PA1.1
532 for PA2.0
768 for IA64 (aka Itanium, aka IPF)
etc.

So far, CPU_VERSION doesn't seem to
distinguish between different types
of Itanium chips.

HTH
galenr
Advisor

Re: determining architecture...PA-Risc or Itanium

Excellent info:
Thank You ALL
Greg Metcalfe
New Member

Re: determining architecture...PA-Risc or Itanium

#!/usr/bin/sh
MODEL=`model | awk -F/ '{print $3}'`
ARCH=`grep $MODEL /usr/sam/lib/mo/sched.models | awk '{print $2}'` echo $ARCH

# hostname;./arch
testbed
2.0

testbed is a 32/64 PA_RISC kernel. I've run it on a pure 64 kernel as well. What's interesting is that /usr/sam/lib/mo/sched.models on an Itanium contains only PA-RISC info, so this script is PA-RISC only. I'm attaching the file from an rx2600 running HPUX 11.23.

I wouldn't want to depend upon seeing 'rx' in the model string. I'm not root on any Itanium boxen, so this is all I can contribute.
We have enough youth. How about a fountain of smart?