I. Introduction to dmidecode
Dmidecode allows you to obtain hardware information in Linux. Dmidecode complies with the SMBIOS/DMI standard. The output information includes BIOS, system, motherboard, processor, memory, cache, and so on.
DMI is a Management system that helps collect computer system information. DMI information must be collected in strict compliance with SMBIOS specifications. System Management BIOS (SMBIOS) is a unified specification for the motherboard or System manufacturer to display product Management information in a standard format. SMBIOS and DMI are open technical standards drafted by the industry-leading organization Desktop Management Task Force (DMTF), where DMI design applies to any platform and operating system.
DMI acts as an interface between the management tool and the system layer. It has established a standard manageable system to make it easier for computer vendors and users to understand the system. The main component of DMI is the Management Information Format (MIF) database. This database contains all information about computer systems and accessories. DMI allows you to obtain the serial number, computer vendor, serial port information, and other system accessories.
Dmidecode: Obtain hardware information in Linux
Dmidecode output format is generally as follows:
Handle 0x0002, DMI type 2, 95 bytes.
Base Board Information
Manufacturer: IBM
Product Name: Node1 Processor Card
Version: Not Specified
Serial Number: Not Specified
The first three lines are called recode headers, including:
1. recode id (Handle): record identifier in the DMI table, which is unique. For example, Handle 0x0002 in the preceding example.
2. DMI type id: record type, for example, BIOS and Memory. The preceding example is type 2, that is, "Base Board Information ".
3. recode size: the size of the corresponding record in the DMI table. The preceding example is 95 bytes. (Excluding text information, all actual output content is larger than this size ). After the record header is the record value.
4. recoded values: the record value can be multiple rows. For example, the previous example shows the Manufacturer, Product Name, Version, and Serial Number of the motherboard.
Ii. Role of dmidecode
Dmidecode decodes the information in the DMI database and displays it in readable text. Because DMI information can be manually modified, the information in it is not necessarily accurate information of the system.
Iii. dmidecode command usage
Running dmidecode without option usually outputs all hardware information. Dmidecode has a very useful option-t, which can specify the type of output information. To obtain information about the processor, run the following command:
Dmidecode-t processor
Usage: dmidecode [OPTIONS]
Options are:
-D :( default:/dev/mem) reads information from the device file, and the output content is the same as the standard output without parameters.
-H: displays help information.
-S: only information of the specified DMI string is displayed. (String)
-T: displays only the information of a specified entry. (Type)
-U: displays undecoded original entries.
-- Dump-bin FILE: Dump the DMI data to a binary file.
-- From-dump FILE: Read the DMI data from a binary file.
-V: displays version information.
Iv. dmidecode parameter string and type list
(1) Valid string keywords are:
Bios-vendor
Bios-version
Bios-release-date
System-manufacturer
System-product-name
System-version
System-serial-number
System-uuid
Baseboard-manufacturer
Baseboard-product-name
Baseboard-version
Baseboard-serial-number
Baseboard-asset-tag
Chassis-manufacturer
Chassis-type
Chassis-version
Chassis-serial-number
Chassis-asset-tag
Processor-family
Processor-manufacturer
Processor-version
Processor-frequency
(2) Valid type keywords are:
Bios
System
Baseboard
Chassis
Processor
Memory
Cache
Connector
Slot
(3) list of all types
0 BIOS
1 System
2 Base Board
3. Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13. BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply
40 Additional Information
41 Onboard Device
This article permanently updates the link address: