什么是DMI
DMI(Desktop Management Interface
)就是帮助收集电脑系统信息的管理系统。
DMI充当了管理工具和系统层之间接口的角色。它建立了标准的可管理系统更加方便了电脑厂商和用户对系统的了解。DMI的主要组成部分是ManagementInformationFormat(MIF)数据库。这个数据库包括了所有有关电脑系统和配件的信息。通过DMI,用户可以获取序列号、电脑厂商、串口信息以及其它系统配件信息。
查看DMI信息
dmidecode命令查看DMI信息:
hollson@shs:~/Desktop$ sudo dmidecode -t
dmidecode: option requires an argument -- 't'
Type number or keyword expected
Valid type keywords are:
bios
system
baseboard
chassis
processor
memory
cache
connector
slot
# 指向具体类型,数字2代表第2项(从0开始)
hollson@shs:~/Desktop$ sudo dmidecode -t 2
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: TSINGHUA TONGFANG COMPUTER
Product Name: B460-N2(ED)
Version: 1.0
Serial Number: 2211280003107600687
Asset Tag:
Features:
Board is a hosting board
Board is replaceable
Location In Chassis:
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0