如下图,最后2个板子的序列号是取不到的。
所以:
- 怎么了?
- 如何在linux上通过C语言获取基板序列号?
谢谢!
dmidecode --type baseboard
板 1:
SMBIOS 2.7 present.
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: TBD
Product Name: TBD
Version: TBD
Serial Number: 4535NP0023
Asset Tag:
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: TBD
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles:
板 2:
SMBIOS 2.4 present.
Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: P55-UD3L
Version: x.x
Serial Number: SMBIOS 2.4 present.
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: Intel Corporation
Product Name: 440BX Desktop Reference Platform
Version: None
Serial Number: None
Asset Tag: Not Specified
Features: None
Location In Chassis: Not Specified
Chassis Handle: 0x0000
Type: Unknown
Contained Object Handles: 0
板 3:
SMBIOS 2.4 present.
Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: P55-UD3L
Version: x.x
Serial Number: