Codex

DMIDECODE

Section: Maintenance Commands (8)

Updated: March 2012

Index?action=index Return to Main Contents


NAME

dmidecode - DMI table decoder

SYNOPSIS

dmidecode [OPTIONS]

DESCRIPTION

dmidecode is a tool for dumping a computer's DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system's hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. Thanks to this table, you can retrieve this information without having to probe for the actual hardware. While this is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable.

The DMI table doesn't only describe what the system is currently made of, it also can report the possible evolutions (such as the fastest supported CPU or the maximal amount of memory supported).

SMBIOS stands for System Management BIOS, while DMI stands for Desktop Management Interface. Both standards are tightly related and developed by the DMTF (Desktop Management Task Force).

As you run it, dmidecode will try to locate the DMI table. If it succeeds, it will then parse this table and display a list of records like this one:

Handle 0x0002, DMI type 2, 8 bytes. Base Board Information

        Manufacturer: Intel

        Product Name: C440GX+

        Version: 727281-001

        Serial Number: INCY92700942

Each record has:

A handle. This is a unique identifier, which allows records to reference each other. For example, processor records usually reference cache memory records using their handles.:
A type. The SMBIOS specification defines different types of elements a computer can be made of. In this example, the type is 2, which means that the record contains "Base Board Information".:
A size. Each record has a 4-byte header (2 for the handle, 1 for the type, 1 for the size), the rest is used by the record data. This value doesn't take text strings into account (these are placed at the end of the record), so the actual length of the record may be (and is often) greater than the displayed value.:
Decoded values. The information presented of course depends on the type of record. Here, we learn about the board's manufacturer, model, version and serial number.:

OPTIONS

-d, --dev-mem FILE
Read memory from device FILE (default: /dev/mem):
-q, --quiet
Be less verbose. Unknown, inactive and OEM-specific entries are not displayed. Meta-data and handle references are hidden.:
-s, --string KEYWORD
Only display the value of the DMI string identified by KEYWORD. KEYWORD must be a keyword from the following list: 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. Each keyword corresponds to a given DMI type and a given offset within this entry type. Not all strings may be meaningful or even defined on all systems. Some keywords may return more than one result on some systems (e.g. processor-version on a multi-processor system). If KEYWORD is not provided or not valid, a list of all valid keywords is printed and dmidecode exits with an error. This option cannot be used more than once.:
-t, --type TYPE
Only display the entries of type TYPE. TYPE can be either a DMI type number, or a comma-separated list of type numbers, or a keyword from the following list: bios, system, baseboard, chassis, processor, memory, cache, connector, slot. Refer to the DMI TYPES section below for details. If this option is used more than once, the set of displayed entries will be the union of all the given types. If TYPE is not provided or not valid, a list of all valid keywords is printed and dmidecode exits with an error.:
-u, --dump
Do not decode the entries, dump their contents as hexadecimal instead. Note that this is still a text output, no binary data will be thrown upon you. The strings attached to each entry are displayed as both hexadecimal and ASCII. This option is mainly useful for debugging.:
--dump-bin FILE
Do not decode the entries, instead dump the DMI data to a file in binary form. The generated file is suitable to pass to --from-dump later.:
--from-dump FILE
Read the DMI data from a binary file previously generated using --dump-bin.:
-h, --help
Display usage information and exit:
-V, --version
Display the version and exit:

Options --string, --type and --dump-bin determine the output format and are mutually exclusive.

Please note in case of dmidecode is run on a system with BIOS that boasts new SMBIOS specification, which is not supported by the tool yet, it will print out relevant message in addition to requested data on the very top of the output. Thus informs the output data is not reliable.

DMI TYPES

The SMBIOS specification defines the following DMI types:

<TABLE> <TR VALIGN="top| <TD ALIGN="right|Type</TD> <TD>Information

</TD> </TR> <TR VALIGN="top| <TD>


</TD> <TD>


</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|1</TD> <TD>System

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|2</TD> <TD>Baseboard

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|3</TD> <TD>Chassis

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|4</TD> <TD>Processor

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|5</TD> <TD>Memory Controller

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|6</TD> <TD>Memory Module

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|7</TD> <TD>Cache

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|8</TD> <TD>Port Connector

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|9</TD> <TD>System Slots

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|10</TD> <TD>On Board Devices

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|11</TD> <TD>OEM Strings

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|12</TD> <TD>System Configuration Options

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|13</TD> <TD>BIOS Language

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|14</TD> <TD>Group Associations

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|15</TD> <TD>System Event Log

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|16</TD> <TD>Physical Memory Array

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|17</TD> <TD>Memory Device

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|18</TD> <TD>32-bit Memory Error

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|19</TD> <TD>Memory Array Mapped Address

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|20</TD> <TD>Memory Device Mapped Address

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|21</TD> <TD>Built-in Pointing Device

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|22</TD> <TD>Portable Battery

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|23</TD> <TD>System Reset

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|24</TD> <TD>Hardware Security

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|25</TD> <TD>System Power Controls

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|26</TD> <TD>Voltage Probe

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|27</TD> <TD>Cooling Device

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|28</TD> <TD>Temperature Probe

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|29</TD> <TD>Electrical Current Probe

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|30</TD> <TD>Out-of-band Remote Access

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|31</TD> <TD>Boot Integrity Services

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|32</TD> <TD>System Boot

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|33</TD> <TD>64-bit Memory Error

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|34</TD> <TD>Management Device

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|35</TD> <TD>Management Device Component

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|36</TD> <TD>Management Device Threshold Data

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|37</TD> <TD>Memory Channel

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|38</TD> <TD>IPMI Device

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|39</TD> <TD>Power Supply

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|40</TD> <TD>Additional Information

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|41</TD> <TD>Onboard Devices Extended Information

</TD> </TR> <TR VALIGN="top| <TD ALIGN="right|42</TD> <TD>Management Controller Host Interface

</TD> </TR> </TABLE>

Additionally, type 126 is used for disabled entries and type 127 is an end-of-table marker. Types 128 to 255 are for OEM-specific data. dmidecode will display these entries by default, but it can only decode them when the vendors have contributed documentation or code for them.

Keywords can be used instead of type numbers with --type. Each keyword is equivalent to a list of type numbers:

<TABLE> <TR VALIGN="top| <TD>Keyword</TD> <TD>Types

</TD> </TR> <TR VALIGN="top| <TD>


</TD> <TD>


</TD> </TR> <TR VALIGN="top| <TD>system</TD> <TD>1, 12, 15, 23, 32

</TD> </TR> <TR VALIGN="top| <TD>baseboard</TD> <TD>2, 10, 41

</TD> </TR> <TR VALIGN="top| <TD>chassis</TD> <TD>3

</TD> </TR> <TR VALIGN="top| <TD>processor</TD> <TD>4

</TD> </TR> <TR VALIGN="top| <TD>memory</TD> <TD>5, 6, 16, 17

</TD> </TR> <TR VALIGN="top| <TD>cache</TD> <TD>7

</TD> </TR> <TR VALIGN="top| <TD>connector</TD> <TD>8

</TD> </TR> <TR VALIGN="top| <TD>slot</TD> <TD>9

</TD> </TR> </TABLE>

Keywords are matched case-insensitively. The following command lines are equivalent:

dmidecode --type 0 --type 13:
dmidecode --type 0,13:
dmidecode --type bios:
dmidecode --type BIOS:

BINARY DUMP FILE FORMAT

The binary dump files generated by --dump-bin and read using --from-dump are formatted as follows:

The SMBIOS or DMI entry point is located at offset 0x00. It is crafted to hard-code the table address at offset 0x20.:
The DMI table is located at offset 0x20.:

FILES

/dev/mem

BUGS

More often than not, information contained in the DMI tables is inaccurate, incomplete or simply wrong.

AUTHORS

Alan Cox, Jean Delvare

SEE ALSO

biosdecode?(8), mem?(4), ownership?(8), vpddecode?(8)


Index

NAME

SYNOPSIS

DESCRIPTION

OPTIONS

DMI TYPES

BINARY DUMP FILE FORMAT

FILES

BUGS

AUTHORS

SEE ALSO