🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun.hardware
Article #3230

Re: UNIX command to display Sun serial number??????

#3230
From: Mike Sage
Date: Thu, 23 Jan 1997 00:00
49 lines
2996 bytes
In article <5c29rd$2no@godzilla.zeta.org.au>, craig@zeta.org.au (Craig
Dewick) wrote:

> In <vilainE4CHE1.IyA@netcom.com> vilain@netcom.com (Michael Vilain) writes:
> 
> >  The serial number is not possible to obtain via any
> >software probe of the hardware either in the PROM prompt or from the running
> >OS.  The _is_ a hostid, which is used by SUN and others who use the FLEXlm
> >license software which can be obtained using the 'hostid' command.  It's
> >stored in the EEPROM on the motherboard along with the ethernet address.
> 
> The Host-ID is comprised of the machine type (8 bits), followed by the hex
> equivalent (24 bits) of the serial number. So, if you can find out the
> host-id, then determining the serial number is trivial. 
> 
> For example, my personal machine at home is a Sparc LC (aka Classic). 
> Typing 'hostid' produces:
> 
> 80022858
> 
> The most significant byte (0x80) is the machine type, and the other 3 
> bytes are the hex equivalent of the serial number, so the base-10 value 
> of the serial number is 141400.

Your method does not work on any of the Suns that I have tried it on.  In
the case of one of our SPARCstation 5 Suns, "hostid" returns 80770895. 
The low 24 bits of that is hex 770895, which is decimal 7800981.  However,
the Serial Number printed on the back of the CPU box is 532F0945.

In the second example (another SPARCstation 5),"hostid" returns 807709d8. 
The low 24 bits of that is hex 7709d8, which is decimal 7801304.  However,
the Serial Number printed on the back of the CPU box is 532F09B1.

In the third example (an ULTRA 1),"hostid" returns 8080a9d5.  The low 24
bits of that is hex 80a9d5, which is decimal 8432085.  However, the Serial
Number printed on the back of the CPU box is 639F1F29.

In the fourth example (a SPARCstation LX),"hostid" returns 8031dc0f.  The
low 24 bits of that is hex 31dc0f, which is decimal 3267599.  However, the
Serial Number printed on the back of the CPU box is 350E1234.

In the fifth example (another SPARCstation LX),"hostid" returns 8031aae6. 
The low 24 bits of that is hex 31aae6, which is decimal 3255014.  However,
the Serial Number printed on the back of the CPU box is 35031258.

-- 
Mike Sage
mike.sage@lmco.com
Technical Details
Message-ID: <mike.sage-2301971432260001@129.197.18.119>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <mike.sage-2001971733350001@129.197.18.119> <vilainE4CHE1.IyA@netcom.com> <5c29rd$2no@godzilla.zeta.org.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f4671,5afa48ce341b8efc
X-Google-Attributes: gidf4671,public
X-Google-Thread: f6653,5afa48ce341b8efc
X-Google-Attributes: gidf6653,public
X-Google-Thread: 10d053,7ddd2fad90fe0b29
X-Google-Attributes: gid10d053,public
From: mike.sage@lmco.com (Mike Sage)
Subject: Re: UNIX command to display Sun serial number??????
Date: 1997/01/23
Message-ID: <mike.sage-2301971432260001@129.197.18.119>
X-Deja-AN: 211810621
references: <mike.sage-2001971733350001@129.197.18.119> <vilainE4CHE1.IyA@netcom.com> <5c29rd$2no@godzilla.zeta.org.au>
organization: Lockheed Martin, Sunnyvale, California
newsgroups: comp.sys.sun.hardware,comp.sys.sun.misc,aus.computers.sun