1833788 Members
2613 Online
110063 Solutions
New Discussion

RISC Levels

 
SOLVED
Go to solution
KeithDaley
Advisor

RISC Levels

I normally check either the /opt/langtools/lib/sched.models or /usr/lib/sched.models files to check for the MODEL string so as to get the relevent RISC Level of the processors, but some of my servers do not have the model string within these files.

Is there another way of determining the RISC Level of a processor ??
7 REPLIES 7
Dan Hetzel
Honored Contributor

Re: RISC Levels

Hi Keith,

The command 'model' should report the right model. Is this not the case ? I've checked on all our systems, running 10.20 or 11.0 and it seems ok.

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Dan Hetzel
Honored Contributor

Re: RISC Levels

Hi Keith,

Sorry, but I misunderstood your question and replied too fast.

You're right, the string returned by model cannot be found in the sched.models file on the L2000.

I've checked with stm but didn't find any info about the risc level.

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Tommy Palo
Trusted Contributor

Re: RISC Levels

Get sysinfo from:
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/

It will show you the CPU type eg. PA-RISC_2.0

Keep it simple
Rainer_1
Honored Contributor
Solution

Re: RISC Levels

i checked sysinfo and contructed this

grep $(getconf _SC_CPU_VERSION |awk '{printf("0x%X\n",$0)}') /usr/include/sys/unistd.h
Rita C Workman
Honored Contributor

Re: RISC Levels

Here's another script for this too I found somewhere:

#!/usr/local/bin/tclsh

set cpu [format 0x%x [exec getconf CPU_VERSION]]
set fd [open /usr/include/sys/unistd.h r]
while { [gets $fd line] >= 0 } {
if { [regexp 0x2 $line] && [regexp RISC $line] } {
if { [lindex $line 3] == $cpu } {
puts [lindex $line 6]
}
}
}

regards,
CHRIS_ANORUO
Honored Contributor

Re: RISC Levels

If you have Online diagnostics installed on your system, check the file /var/tombstones/ts99, search for PA.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
KeithDaley
Advisor

Re: RISC Levels

Thanks to all of you that have responded.

I found RAINER's suggestion the best.

Thanks, Keith.