Linux Command-based dmidecode and linuxdmidecode
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.
- Dmidecode Introduction
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 output format is generally as follows:
Handle 0 × 0002 DMI type 2, 8 bytes Base Board Information Manufacturer: Intel Product Name: C440GX + Version: 727281-0001 Serial Number: INCY92700942
The first three lines are called recoce headers, including:
Recode id (handle): record identifier in the DMI table, which is unique, for example, Handle 0 × 0002 in the preceding example.
Dmi type id: indicates the record type, such as BIOS and Memory. The preceding example is type 2, that is, "Base Board Information"
Recode size: the size of the corresponding record in the DMI table. In the preceding example, It is 8 bytes. (excluding text information, the actual output content is larger than this size .) After the record header is the record value
Decoded values: the record value can be multiple rows. For example, the previous example shows the manufacturer (manufacturer), model, version, and serial Number of the motherboard.
-
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.
-
Install Dmidecode
Dmidecode can be found in mainstream Linux distributions. You only need to install it through the Package Manager of the released version, for example:
apt-get install dmidecode
Or use the official package for installation:
Dmidecode source package: http://download.savannah.GNU.org/releases/dmidecode/
- Dmidecode command usage
Running dmidecode without option usually outputs all hardware information. Dmidecode has a very useful option-t, which can output relevant information according to the specified type. If you want to obtain information about the processor, You can execute
Dmidecode-t processor
Output:
SMBIOS 2.6 present.
Handle 0x0004, DMI type 4, 40 bytes
Processor Information
Socket Designation: CPU 1
Type: Central Processor
Family: Xeon
Manufacturer: Intel
ID: A5 06 01 00 FF FB EB BF
Signature: Type 0, Family 6, Model 26, Stepping 5
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
Usage: dmidecode [OPTIONS] Options are:-d, -- dev-mem FILE Read memory from device FILE (default:/dev/mem) Read information from the device FILE, the output content is the same as the standard output without parameters-h, -- help Display this help text and exit displays help information-q, -- quiet Less verbose output displays Less simplified information-s, -- string KEYWORD Only display the value of the given DMI string Only displays the information of the specified DMI string-t, -- type TYPE Only display the entries of given type. Only the information of the specified entry is displayed-u, -- dump Do not decode the entries display undecoded original entry content -- dump-bin FILE Dump the DMI data to a binary file -- from-dump FILE Read the DMI data from a binary file -V, -- version Display the version and exit: displays the version information.
- Dmidecode parameter string and type list
(1) Valid string keywords are:
bios-vendorbios-versionbios-release-datesystem-manufacturersystem-product-namesystem-versionsystem-serial-numbersystem-uuidbaseboard-manufacturerbaseboard-product-namebaseboard-versionbaseboard-serial-numberbaseboard-asset-tagchassis-manufacturerchassis-typechassis-versionchassis-serial-numberchassis-asset-tagprocessor-familyprocessor-manufacturerprocessor-versionprocessor-frequency
(2) Valid type keywords are:
biossystembaseboardchassisprocessormemoryCacheconnectorslot
(3) list of all types
0 BIOS1 System2 Base Board3 Chassis4 Processor5 Memory Controller6 Memory Module7 Cache8 Port Connector9 System Slots10 On Board Devices11 OEM Strings12 System Configuration Options13 BIOS Language14 Group Associations15 System Event Log16 Physical Memory Array17 Memory Device18 32-bit Memory Error19 Memory Array Mapped Address20 Memory Device Mapped Address21 Built-in Pointing Device22 Portable Battery23 System Reset24 Hardware Security25 System Power Controls26 Voltage Probe27 Cooling Device28 Temperature Probe29 Electrical Current Probe30 Out-of-band Remote Access31 Boot Integrity Services32 System Boot33 64-bit Memory Error34 Management Device35 Management Device Component36 Management Device Threshold Data37 Memory Channel38 IPMI Device39 Power Supply40 Additional Information41 Onboard Device
Example:
View the server model: dmidecode | grep 'product name' view the Serial Number of the motherboard: dmidecode | grep 'serial number' view the system serial number: dmidecode-s system-Serial-Number view the memory information: dmidecode-t memory view OEM information: dmidecode-t 11
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.