- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: PA-RISC 1.1 or PA-Risc 2.0
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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-15-2002 01:57 AM
11-15-2002 01:57 AM
single cli appreciated to determine cpu architecture.
I tried stm , print_manifest and uname but got nothing human readable back.
Later,
Bill
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 01:55 AM
11-15-2002 01:55 AM
Re: PA-RISC 1.1 or PA-Risc 2.0
grep $(uname -m|sed 's,/, ,'|awk '{print $2}') /usr/sam/lib/mo/sched.models
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 02:07 AM
11-15-2002 02:07 AM
Re: PA-RISC 1.1 or PA-Risc 2.0
grep $(model | sed 's;.*/;;') /usr/sam/lib/mo/sched.models | awk '{print $3}'
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 02:11 AM
11-15-2002 02:11 AM
Solutionyou can get the cpu version with:
getconf _SC_CPU_VERSION
This will return in decimal.
To get the right information you have to format the version in hex and compare it in /usr/include/sys/unistd.h:
grep $(getconf _SC_CPU_VERSION | awk '{printf("0x%x",$0)}') /usr/include/sys/unistd.h
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 02:16 AM
11-15-2002 02:16 AM
Re: PA-RISC 1.1 or PA-Risc 2.0
#/usr/sam/lbin/samx -C /usr/sam/lib/C/mo.ui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 02:19 AM
11-15-2002 02:19 AM
Re: PA-RISC 1.1 or PA-Risc 2.0
For output
1--->True
0---->False
you can replace 1_1 with 2_0 for the 2.0 version arch machines
i.e
cpu_arch_is_2_0/D
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 02:25 AM
11-15-2002 02:25 AM
Re: PA-RISC 1.1 or PA-Risc 2.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 02:30 AM
11-15-2002 02:30 AM
Re: PA-RISC 1.1 or PA-Risc 2.0
Too late but I give it anyway ...
Regards.
#include
main()
{
switch(sysconf(_SC_CPU_VERSION))
{
case CPU_PA_RISC1_0 : printf("PA-RISC1.0\n") ; break ;
case CPU_PA_RISC1_1 : printf("PA-RISC1.1\n") ; break ;
case CPU_PA_RISC1_2 : printf("PA-RISC1.2\n") ; break ;
case CPU_PA_RISC2_0 : printf("PA-RISC2.0\n") ; break ;
default : printf("Too recent !!!\n") ;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 02:33 AM
11-15-2002 02:33 AM
Re: PA-RISC 1.1 or PA-Risc 2.0
download sysinfo, is a script for collect all information on a server and the result is very human.
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 02:36 AM
11-15-2002 02:36 AM
Re: PA-RISC 1.1 or PA-Risc 2.0
#x=`model|awk -F "/" '{print $3}'`;grep $x /usr/sam/lib/mo/sched.models
THanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 02:37 AM
11-15-2002 02:37 AM
Re: PA-RISC 1.1 or PA-Risc 2.0
i have the script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 02:39 AM
11-15-2002 02:39 AM
Re: PA-RISC 1.1 or PA-Risc 2.0
i have the script, sorry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 02:41 AM
11-15-2002 02:41 AM
Re: PA-RISC 1.1 or PA-Risc 2.0
sorry i have sysinfo