From: glenns@nms.otca.oz.au (Glenn Satchell - Uniq professional Services)
Newsgroups: comp.sys.sun.hardware
Subject: Re: How do I tell the model of a Sparc
Date: 21 Dec 92 02:45:20 GMT

jd@mars.nwc.navy.mil (John de la Garrigue) writes:

>In article 11309@sol.ctr.columbia.edu, yjj@neptune.ctr.columbia.edu (Yuan Jiang) writes:
>>I have a couple of remote sites which I can submit my calculation
>>jobs to.  I'd like to know whick is more powerful than the others
>>so that I always run the jobs on the fastest machine.  but how
>>do I know what model  or how powerful these remote computers are without
>>a chance to see their model plates.


>If you're running on Sun machines, you can use "dmesg" to get basic information
>about the system, such as cpu type, amount of core memory installed, type of
>tape and disk drives connected, etc.  I use a program called "sysinfo" that 
>also provides this information, and formats it in a more readable fashion.

Use the "hostid" command - the first two digits are a code for the cpu
type. To decode the cpu type look in /usr/include/mon/idprom.h. For
example on this system:

% hostid
5542560d
% more /usr/include/mon/idprom.h
...
/* 
 * All possible values of the id_machine field (so far): 
 */
#define IDM_SUN2_MULTI          1       /* Machine type for Multibus CPU brd */
#define IDM_SUN2_VME            2       /* Machine type for VME CPU board    */
#define IDM_SUN3_CARRERA        0x11    /* Carrera CPU  */
#define IDM_SUN3_M25            0x12    /* M25 CPU      */
#define IDM_SUN3_SIRIUS         0x13    /* Sirius CPU   */
#define IDM_SUN3_PRISM          0x14    /* Prism CPU    */
#define IDM_SUN3_F              0x17    /* Sun3F CPU    */
#define IDM_SUN3_E              0x18    /* Sun3E CPU    */
#define IDM_SUN4                0x21    /* Sparc CPU    */
#define IDM_SUN4_COBRA          0x22    /* Cobra CPU    */
#define IDM_SUN4_STINGRAY       0x23    /* Stingray CPU */
#define IDM_SUN4_SUNRAY         0x24    /* Sunray CPU   */
#define IDM_SUN3X_PEGASUS       0x41    /* Pegasus CPU  */
#define IDM_SUN3X_HYDRA         0x42    /* Hydra CPU    */
#define IDM_SUN4C               0x51    /* Campus CPU   */
#define IDM_SUN4C_60            0x51    /* Campus-1 CPU */
#define IDM_SUN4C_40            0x52    /* Reserve some names */
#define IDM_SUN4C_65            0x53    /* That we might do */
#define IDM_SUN4C_20            0x54    /* It might be bigger */
#define IDM_SUN4C_75            0x55    /* It might be smaller */
#define IDM_SUN4C_30            0x56    /* It might be faster */
#define IDM_SUN4C_50            0x57    /* It might be slower */
#define IDM_SUN4C_70            0x58    /* It might cost more */
#define IDM_SUN4C_80            0x59    /* It might cost less */
#define IDM_SUN4C_10            0x5a    /* It might sell well */
#define IDM_SUN4C_45            0x5b    /* And then it might not */
#define IDM_SUN4C_05            0x5c    /* It might be pink */
#define IDM_SUN4C_85            0x5d    /* It might be blue */
#define IDM_SUN4C_32            0x5e    /* I certainly don't know */
#define IDM_SUN4C_HIKE          0x5f    /* Do you? */

#define IDM_SUN4M_690           0x61    /* SPARCsystem 600 series */

Now 55 corresponds to IDM_SUN4C_75 (yes a sparcStation 2).

Hope you like the two jokes in the above file as well.

regards,

--
Glenn Satchell          ups!glenn@fourx.Aus.Sun.COM  |
Uniq Professional Services Pty Ltd  ACN 056 279 335  |  or  for  the   moment
PO Box 70, Paddington, NSW 2021, (Sydney) Australia  |  glenns@nms.otca.oz.au
Phone: +61-2-360-7434           Fax: +61-2-331-2572  |  Phone: +61-2-339-3843