Retrieving Serial Numbers for servers running Linux or Solaris

written by JS6591)

I have been trying to figure out how to retrieve serial numbers from servers running Linux or Solaris, but to date I haven’t been able to. Does anyone know to do this and would you be able to share this information?

(imported comment written by SystemAdmin)

I am not sure if this will work for Solaris, but it does work for Linux and Windows:

IF (name of operating system as lowercase starts with “win”) THEN (string values of selects “SerialNumber from Win32_BIOS” of wmi) ELSE (serial_number of system_information of dmi)

(imported comment written by JS6591)

Thank you, the relevance did work for both Windows and Linux. But unfortunately it did not work for Solaris servers. Would you or anyone know how to get a server serial number from the Solaris OS?

( written by NoahSalzman)

I’m certainly not a Solaris expert, but it would appear that Solaris doesn’t have a chassis serial number stored in the eeprom by default. It would appear you have to use SNEEP to enter it manually.

https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=SNEEP-2.7-G-F@CDS-CDS_SMI

http://wikis.sun.com/display/sneep/SNEEP+FAQ#SNEEPFAQ-findserial

Once you have stored the serial number then you would have to create an ActionScript to “extract” the serial number to a file, and then use Relevance to retrieve the value from the file.

(imported comment written by JS6591)

Thanks, I’ll give it a try.

(imported comment written by sneepy91)

noah

It would appear you have to use SNEEP to enter it manually.

https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=SNEEP-2.7-G-F@CDS-CDS_SMI

http://wikis.sun.com/display/sneep/SNEEP+FAQ#SNEEPFAQ-findserial

As the information on the linked pages indicates, there are many Solaris platforms for which sneep can find the serial number without entering it manually.

In particular, Sun x86 systems and many non-Sun x86 systems supply the serial using the SMBIOS or IPMI interfaces, which sneep knows about.

Sneep will check for the serial using the Solaris “smbios” and “ipmitool” commands.

Non-Sun systems may not follow the same rules that Sun uses to decide which kind of serial is reported in

any particular smbios/ipmitool output field .

e.g. there are a lot of combinations for system/blade/motherboard Product/Chassis serials .

If you are not on Sun hardware, your mileage with sneep may vary, but it tries to be smart about it.

The Feb 2010 release of Sneep 2.8 has some improvements for ipmi serial detection.

smbios serial detection is unchanged.