- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- getconf return values
Operating System - HP-UX
1752433
Members
5888
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2000 08:00 AM
тАО11-23-2000 08:00 AM
Hi,
When I issue getconf CPU_VERSION it returns on some machines value 528 and on others 532. I suspect it has something to do with CPU-architecture (RISC 1.1 -> 528, RISC 2.0 -> 532). Can someone confirm this? And, what is the meaning of the returned valus? I couldn?t find an explanation in man pages.
Eisse
When I issue getconf CPU_VERSION it returns on some machines value 528 and on others 532. I suspect it has something to do with CPU-architecture (RISC 1.1 -> 528, RISC 2.0 -> 532). Can someone confirm this? And, what is the meaning of the returned valus? I couldn?t find an explanation in man pages.
Eisse
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2000 08:12 AM
тАО11-23-2000 08:12 AM
Re: getconf return values
To determine the architecture version of the system,
execute the following command:
extract from Patch Name: PHSS_18609.text :
confirmed ? :)
"getconf CPU_VERSION"
This will return an integer which can be mapped
to the PA-RISC architecture version as follows:
528 PA 1.1
532 PA 2.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2000 08:12 AM
тАО11-23-2000 08:12 AM
Solution
From /usr/include/sys/unistd.h
# define CPU_HP_MC68020 0x20C /* Motorola MC68020 */
# define CPU_HP_MC68030 0x20D /* Motorola MC68030 */
# define CPU_HP_MC68040 0x20E /* Motorola MC68040 */
# define CPU_PA_RISC1_0 0x20B /* HP PA-RISC1.0 */
# define CPU_PA_RISC1_1 0x210 /* HP PA-RISC1.1 */
# define CPU_PA_RISC1_2 0x211 /* HP PA-RISC1.2 */
# define CPU_PA_RISC2_0 0x214 /* HP PA-RISC2.0 */
# define CPU_PA_RISC_MAX 0x2FF /* Maximum value for HP PA-RISC systems */
Therefore PA_RISC1_1 is 528 and CPU_PA_RISC2_0 is 532
# define CPU_HP_MC68020 0x20C /* Motorola MC68020 */
# define CPU_HP_MC68030 0x20D /* Motorola MC68030 */
# define CPU_HP_MC68040 0x20E /* Motorola MC68040 */
# define CPU_PA_RISC1_0 0x20B /* HP PA-RISC1.0 */
# define CPU_PA_RISC1_1 0x210 /* HP PA-RISC1.1 */
# define CPU_PA_RISC1_2 0x211 /* HP PA-RISC1.2 */
# define CPU_PA_RISC2_0 0x214 /* HP PA-RISC2.0 */
# define CPU_PA_RISC_MAX 0x2FF /* Maximum value for HP PA-RISC systems */
Therefore PA_RISC1_1 is 528 and CPU_PA_RISC2_0 is 532
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2000 08:18 AM
тАО11-23-2000 08:18 AM
Re: getconf return values
with
grep $(getconf _SC_CPU_VERSION |awk '{printf("0x%X\n",$0)}') /usr/include/sys/unistd.h
you can get it more comfortable
grep $(getconf _SC_CPU_VERSION |awk '{printf("0x%X\n",$0)}') /usr/include/sys/unistd.h
you can get it more comfortable
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP