integralstor / integralstor_gridcell

Gluster/ZFS based open source scale-out storage system
1 stars 3 forks source link

Need to capture motherboard serial number and display it #20

Closed fractalram closed 8 years ago

fractalram commented 9 years ago

This can be done by running dmidecode on the system. It gives an output like below : What we are interested in is in the section called Base Board Information and under that the Serial Number.

Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: Supermicro Product Name: A1SAi Version: 123456789 Serial Number: 123456789 UUID: Not Settable Wake-up Type: Power Switch SKU Number: 081315D9 Family: SMC X10

Handle 0x0002, DMI type 2, 15 bytes Base Board Information Manufacturer: Supermicro Product Name: A1SRi Version: 123456789 Serial Number: NM143S001182 Asset Tag: To be filled by O.E.M. Features: Board is a hosting board Board is replaceable Location In Chassis: To be filled by O.E.M. Chassis Handle: 0x0003 Type: Motherboard Contained Object Handles: 0

Handle 0x0003, DMI type 3, 25 bytes Chassis Information Manufacturer: To Be Filled By O.E.M. Type: Desktop Lock: Not Present Version: To Be Filled By O.E.M. Serial Number: To Be Filled By O.E.M. Asset Tag: To Be Filled By O.E.M. Boot-up State: Safe Power Supply State: Safe Thermal State: Safe Security Status: None