Here's the original question:
>
> Does anyone know how to get the clock speed of a SunOS system (not Solaris)
> running on a sparc 2?
>
> Thanks,
> Martin Meadows
> Indianapolis
Thanks to :
Imre Kolos
Mark Hargrave
Warren Vanichuk
Tom Schmidt
carl@bl.echidna.id.au
Thomas Knox
And here are the answers summarized:
******************************************************************************
> The SS2 systems should have a 40MHz clock speed...
>The output of "/usr/etc/devinfo -pv" can be used to find
>the processor speed, but you have to convert the hex data that it
>gives you. My "memconf" utility will do this for you. You can use
>"memconf -v" to report the memory installed in the system, and the
>"-v" option makes the output more verbose, which will include the
>CPU speed. However, it will not detect if a Weitek clock-doubled
>CPU is installed in your SS2.
> You can download memconf from my web site at
>http://netnow.micron.net/~tschmidt/unix.html
>
******************************************************************************
#!/bin/sh
cpuhz=`devinfo -vp | grep freq | head -1 | awk '{print $2}'`
cpuhz=`printf "%u" $cpuhz`
cpumhz=`expr $cpuhz / 1000000`
printf "%.2f MHz\n"
******************************************************************************
It'll be listed in the old Sun hardware FAQ, but I can tell you it's
a 40Mhz CPU and 20 Mhz SBus
Unless you have a Weitek PowerUp chip (unlikely) in which case
it'll be 80Mhz CPU
******************************************************************************
Reboot, hit Stop-A, and read the processor display at the top of the screen.
******************************************************************************
sysinfo | grep 'CPU'
should give you the information you need.
The man page for sysinfo is sysinfo(1).
******************************************************************************
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:06 CDT