'uname -p' can be a solution. Below is what 'uname -p' returns on 
various RS6000 architectures. It allows to select between power and 
powerpc architectures. Power2 and Power2+ need the 'no-asm' flag. Power3 
and Power4 do not.

Power2 architecture:            power
Power2+ architecture:           power
Power3 200Mhz architecture:     powerpc
Power3 375Mhz architecture:     powerpc
Power4 1000Mhz architecture:    powerpc

Nor lsdev and lscfg commands return usefull information for this purpose.

BUT

All tested RS6000 are runing AIX5.x operating system. 'oslevel' command 
returns
5.1.0.0 (for AIX 5.1)
or
5.2.0.0 (for AIX 5.2)

On olders AIX (AIX4.3.3) the flag -p is not supported for the uname 
commande.
oslevel returns:
4.3.3.0

I've found another solution with the 'lsattr' commande working on AIX 
4.3 and 5.x:

'lsattr -E -O -l proc0'

AIX 4.3.3
Power3 200Mhz architecture returns these 2 lines:
#state:type
enable:PowerPC_POWER3

AIX 5.1
Power2 architecture returns these 2 lines:
#state:type
enable:POWER2

AIX 5.1
Power2+ architecture returns these 2 lines:
#state:type
enable:POWER2

AIX 5.1
Power3 200Mhz architecture returns these 2 lines:
#frequency:state:type
200000000:enable:PowerPC_POWER3

AIX 5.1
Power3 375Mhz architecture returns these 2 lines:
#frequency:state:type
375000000:enable:PowerPC_POWER3

AIX 5.1
Power4 1000Mhz architecture returns these 2 lines:
#frequency:state:type
1000000000:enable:PowerPC_POWER4

Hope this could help you. Let me know if you need additionnal tests (but 
I've not a lot of 4.3 version of AIX!)

Patrick
-- 
===============================================================
|  Equipe M.O.S.T.         | http://most.hmg.inpg.fr          |
|  Patrick BEGOU           |       ------------               |
|  LEGI                    | mailto:[EMAIL PROTECTED] |
|  BP 53 X                 | Tel 04 76 82 51 35               |
|  38041 GRENOBLE CEDEX    | Fax 04 76 82 52 71               |
===============================================================

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to