I've always thought the Serial number written outside on the server has nothing to do with the hostid, because if you change your eeprom chip, you'll have a new hostid.
I've had to replace bad eeprom chips in the past, does that mean that Sun or we've lost track of the server since what;s outside written on the server as the serial number is not the same as the new hostid installed.
I asked this very same question last year. Here is the response I received:
The hostid is not related to the system
>serial number on the outside of the box. >the serial number reported by the banner command is the
>NVRAM serial number, which is just the decimal
>representation of the hostid, less the first byte. Thus the hostid,
>NVRAM serial number, and ethernet address are all tied
>together, but none of them are related to the system serial
>number. As far as I know, the only thing that ties the hostid to
>the system serial number is the Customer Information Sheet -
>the paper that was in the pouch on the outside of the shipping
>carton when it came from Sun. The only other way to get the
>system serial number is to go look at the serial number label on
>the system.
>
>On some machines, such as the E250, 'prtconf -pv' reports a
>"system-board-serial#", which is the number off the bar code
>on the system board, complete with the Sun part number. For
>instance, I have an E250 with a 501-5440 motherboard, and
>system-board-serial# is set to 5015440nnnnnn, where
>nnnnnn is the board's serial number, also not related to the
>system serial number.
Some of the new Sun hardware has machine-readable serial numbers, but they generally are not (yet) easy to access. Most of them are available on the System Controller or from the ALOM (Advanced Lights-Out Management).
F12/15/20/25K , have a system controller and the info is available from SMS 1.4 and above. showplatform - p csn
SF3800-6900 have info in the SC - use "showplat - p mac", I think.
A few machines have the serial buried in the FRUID output from prtfru ; maybe v880/v480
E450 , E250, 420R , some Netra platforms have an OBP variable system-board-serial# , but it tends to be the system board serial , not chassis serial.
Something like 918H353C is chassis serial, something like 5015440054011 is board serial.
If someone is willing to go to the machine once to get the serial, there is a tool from Sun called "SNEEP" (Serial Number in EEPROM) which will make it easy to get and will keep serial (and other) data safe .
Then the *next* time you need it it will be easy to get.
You can download sneep from the Sun Download Center at http://www.sun.com/download/products.xml?id=4304155a
Sneep provides a simple interface, preserves the data even if the eeprom is erased, and even updates the serial number for you in the explorer configuration.
sneep can also store and preserve other information like equipment asset numbers, contracts numbers, serial numbers for attached storage, or whatever else you want to associate with the hardware.
If you've already made the effort (as some have) of putting the serial into the explorer (or CST) configuration, sneep will pick it up from there automatically. with no further effort on your part.
Sneep will be updated to pick upthe information from the hardware whenever possible, so that you can use the same mechanism to handle serial and other information on all your Sun systems.
Right now, it's manual unless it's already in the explorer or CST configuration.