|
Packit Service |
cf0db6 |
.TH DMIDECODE 8 "January 2019" "dmidecode"
|
|
Packit Service |
e18529 |
.SH NAME
|
|
Packit Service |
e18529 |
dmidecode \- \s-1DMI\s0 table decoder
|
|
Packit Service |
e18529 |
.SH SYNOPSIS
|
|
Packit Service |
e18529 |
.B dmidecode
|
|
Packit Service |
e18529 |
.RB [ OPTIONS ]
|
|
Packit Service |
622062 |
|
|
Packit Service |
e18529 |
.SH DESCRIPTION
|
|
Packit Service |
e18529 |
.B dmidecode
|
|
Packit Service |
e18529 |
is a tool for dumping a computer's \s-1DMI\s0 (some say \s-1SMBIOS\s0) table
|
|
Packit Service |
e18529 |
contents in a human-readable format. This table contains a description of the
|
|
Packit Service |
e18529 |
system's hardware components, as well as other useful pieces of information
|
|
Packit Service |
e18529 |
such as serial numbers and \s-1BIOS\s0 revision. Thanks to this table, you can
|
|
Packit Service |
e18529 |
retrieve this information without having to probe for the actual hardware.
|
|
Packit Service |
e18529 |
While this is a good point in terms of report speed and safeness, this also
|
|
Packit Service |
e18529 |
makes the presented information possibly unreliable.
|
|
Packit Service |
e18529 |
|
|
Packit Service |
e18529 |
The \s-1DMI\s0 table doesn't only describe what the system is currently made
|
|
Packit Service |
e18529 |
of, it also can report the possible evolutions (such as the fastest supported
|
|
Packit Service |
e18529 |
\s-1CPU\s0 or the maximal amount of memory supported).
|
|
Packit Service |
e18529 |
|
|
Packit Service |
e18529 |
\s-1SMBIOS\s0 stands for System Management \s-1BIOS\s0, while \s-1DMI\s0
|
|
Packit Service |
e18529 |
stands for Desktop Management Interface. Both standards are tightly related
|
|
Packit Service |
e18529 |
and developed by the \s-1DMTF\s0 (Desktop Management Task Force).
|
|
Packit Service |
e18529 |
|
|
Packit Service |
e18529 |
As you run it,
|
|
Packit Service |
e18529 |
.B dmidecode
|
|
Packit Service |
e18529 |
will try to locate the \s-1DMI\s0 table. It will first try to read the DMI table
|
|
Packit Service |
e18529 |
from sysfs, and next try reading directly from memory if sysfs access failed.
|
|
Packit Service |
e18529 |
If
|
|
Packit Service |
e18529 |
.B dmidecode
|
|
Packit Service |
e18529 |
succeeds in locating a valid DMI table, it will then parse this table
|
|
Packit Service |
e18529 |
and display a list of records like this one:
|
|
Packit Service |
e18529 |
|
|
Packit Service |
e18529 |
Handle 0x0002, DMI type 2, 8 bytes.
|
|
Packit Service |
e18529 |
Base Board Information
|
|
Packit Service |
e18529 |
Manufacturer: Intel
|
|
Packit Service |
e18529 |
Product Name: C440GX+
|
|
Packit Service |
e18529 |
Version: 727281-001
|
|
Packit Service |
e18529 |
Serial Number: INCY92700942
|
|
Packit Service |
e18529 |
|
|
Packit Service |
e18529 |
Each record has:
|
|
Packit Service |
e18529 |
.IP \(bu "\w'\(bu'u+1n"
|
|
Packit Service |
e18529 |
A handle. This is a unique identifier, which allows records to
|
|
Packit Service |
e18529 |
reference each other. For example, processor records usually reference
|
|
Packit Service |
e18529 |
cache memory records using their handles.
|
|
Packit Service |
e18529 |
.IP \(bu
|
|
Packit Service |
e18529 |
A type. The \s-1SMBIOS\s0 specification defines different types of elements
|
|
Packit Service |
e18529 |
a computer can be made of. In this example, the type is 2, which
|
|
Packit Service |
e18529 |
means that the record contains "Base Board Information".
|
|
Packit Service |
e18529 |
.IP \(bu
|
|
Packit Service |
e18529 |
A size. Each record has a 4-byte header (2 for the handle, 1 for the type,
|
|
Packit Service |
e18529 |
1 for the size), the rest is used by the record data. This value doesn't
|
|
Packit Service |
e18529 |
take text strings into account (these are placed at the end of the record),
|
|
Packit Service |
e18529 |
so the actual length of the record may be (and is often) greater than the
|
|
Packit Service |
e18529 |
displayed value.
|
|
Packit Service |
e18529 |
.IP \(bu
|
|
Packit Service |
e18529 |
Decoded values. The information presented of course depends on the type
|
|
Packit Service |
e18529 |
of record. Here, we learn about the board's manufacturer, model, version
|
|
Packit Service |
e18529 |
and serial number.
|
|
Packit Service |
622062 |
|
|
Packit Service |
e18529 |
.SH OPTIONS
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR "-d" ", " "--dev-mem FILE"
|
|
Packit Service |
e18529 |
Read memory from device \fBFILE\fR (default: \fB/dev/mem\fR)
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR "-q" ", " "--quiet"
|
|
Packit Service |
e18529 |
Be less verbose. Unknown, inactive and \s-1OEM\s0-specific entries are not
|
|
Packit Service |
e18529 |
displayed. Meta-data and handle references are hidden.
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR "-s" ", " "--string KEYWORD"
|
|
Packit Service |
e18529 |
Only display the value of the \s-1DMI\s0 string identified by \fBKEYWORD\fR.
|
|
Packit Service |
e18529 |
\fBKEYWORD\fR must be a keyword from the following list: \fBbios-vendor\fR,
|
|
Packit Service |
e18529 |
\fBbios-version\fR, \fBbios-release-date\fR,
|
|
Packit Service |
e18529 |
\fBsystem-manufacturer\fR, \fBsystem-product-name\fR,
|
|
Packit Service |
e18529 |
\fBsystem-version\fR, \fBsystem-serial-number\fR,
|
|
Packit Service |
e18529 |
\fBsystem-uuid\fR, \fBsystem-family\fR,
|
|
Packit Service |
e18529 |
\fBbaseboard-manufacturer\fR, \fBbaseboard-product-name\fR,
|
|
Packit Service |
e18529 |
\fBbaseboard-version\fR, \fBbaseboard-serial-number\fR,
|
|
Packit Service |
e18529 |
\fBbaseboard-asset-tag\fR, \fBchassis-manufacturer\fR,
|
|
Packit Service |
e18529 |
\fBchassis-type\fR,
|
|
Packit Service |
e18529 |
\fBchassis-version\fR, \fBchassis-serial-number\fR,
|
|
Packit Service |
e18529 |
\fBchassis-asset-tag\fR, \fBprocessor-family\fR,
|
|
Packit Service |
e18529 |
\fBprocessor-manufacturer\fR,
|
|
Packit Service |
e18529 |
\fBprocessor-version\fR, \fBprocessor-frequency\fR.
|
|
Packit Service |
e18529 |
Each keyword corresponds to a given \s-1DMI\s0 type and a given offset
|
|
Packit Service |
e18529 |
within this entry type.
|
|
Packit Service |
e18529 |
Not all strings may be meaningful or even defined on all systems. Some
|
|
Packit Service |
e18529 |
keywords may return more than one result on some systems (e.g.
|
|
Packit Service |
e18529 |
\fBprocessor-version\fR on a multi-processor system).
|
|
Packit Service |
e18529 |
If \fBKEYWORD\fR is not provided or not valid, a list of all valid
|
|
Packit Service |
e18529 |
keywords is printed and
|
|
Packit Service |
e18529 |
.B dmidecode
|
|
Packit Service |
e18529 |
exits with an error.
|
|
Packit Service |
e18529 |
This option cannot be used more than once.
|
|
Packit Service |
e18529 |
|
|
Packit Service |
e18529 |
Note: on Linux, most of these strings can alternatively be read directly
|
|
Packit Service |
e18529 |
from
|
|
Packit Service |
e18529 |
.BR sysfs ,
|
|
Packit Service |
e18529 |
typically from files under
|
|
Packit Service |
e18529 |
.IR /sys/devices/virtual/dmi/id .
|
|
Packit Service |
e18529 |
Most of these files are even readable by regular users.
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR "-t" ", " "--type TYPE"
|
|
Packit Service |
e18529 |
Only display the entries of type \fBTYPE\fR. \fBTYPE\fR can be either a
|
|
Packit Service |
e18529 |
\s-1DMI\s0 type number, or a comma-separated list of type numbers, or a
|
|
Packit Service |
e18529 |
keyword from the following list: \fBbios\fR, \fBsystem\fR,
|
|
Packit Service |
e18529 |
\fBbaseboard\fR, \fBchassis\fR, \fBprocessor\fR, \fBmemory\fR,
|
|
Packit Service |
e18529 |
\fBcache\fR, \fBconnector\fR, \fBslot\fR. Refer to the DMI TYPES section
|
|
Packit Service |
e18529 |
below for details.
|
|
Packit Service |
e18529 |
If this option is used more than once, the set of displayed entries will be
|
|
Packit Service |
e18529 |
the union of all the given types.
|
|
Packit Service |
e18529 |
If \fBTYPE\fR is not provided or not valid, a list of all valid keywords
|
|
Packit Service |
e18529 |
is printed and
|
|
Packit Service |
e18529 |
.B dmidecode
|
|
Packit Service |
e18529 |
exits with an error.
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR "-H" ", " "--handle HANDLE"
|
|
Packit Service |
e18529 |
Only display the entry whose handle matches \fBHANDLE\fR. \fBHANDLE\fR
|
|
Packit Service |
e18529 |
is a 16-bit integer.
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR "-u" ", " "--dump"
|
|
Packit Service |
e18529 |
Do not decode the entries, dump their contents as hexadecimal instead.
|
|
Packit Service |
e18529 |
Note that this is still a text output, no binary data will be thrown upon
|
|
Packit Service |
e18529 |
you. The strings attached to each entry are displayed as both
|
|
Packit Service |
e18529 |
hexadecimal and \s-1ASCII\s0. This option is mainly useful for debugging.
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR " " " " "--dump-bin FILE"
|
|
Packit Service |
e18529 |
Do not decode the entries, instead dump the DMI data to a file in binary
|
|
Packit Service |
e18529 |
form. The generated file is suitable to pass to \fB--from-dump\fR
|
|
Packit Service |
e18529 |
later.
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR " " " " "--from-dump FILE"
|
|
Packit Service |
e18529 |
Read the DMI data from a binary file previously generated using
|
|
Packit Service |
e18529 |
\fB--dump-bin\fR.
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR " " " " "--no-sysfs"
|
|
Packit Service |
e18529 |
Do not attempt to read DMI data from sysfs files. This is mainly useful for
|
|
Packit Service |
e18529 |
debugging.
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR " " " " "--oem-string N"
|
|
Packit Service |
e18529 |
Only display the value of the \s-1OEM\s0 string number \fBN\fR. The first
|
|
Packit Service |
e18529 |
\s-1OEM\s0 string has number 1. With special value "count", return the
|
|
Packit Service |
e18529 |
number of OEM strings instead.
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR "-h" ", " "--help"
|
|
Packit Service |
e18529 |
Display usage information and exit
|
|
Packit Service |
e18529 |
.TP
|
|
Packit Service |
e18529 |
.BR "-V" ", " "--version"
|
|
Packit Service |
e18529 |
Display the version and exit
|
|
Packit Service |
e18529 |
.P
|
|
Packit Service |
e18529 |
Options --string, --type, --dump-bin and --oem-string
|
|
Packit Service |
e18529 |
determine the output format and are mutually exclusive.
|
|
Packit Service |
e18529 |
.P
|
|
Packit Service |
e18529 |
Please note in case of
|
|
Packit Service |
e18529 |
.B dmidecode
|
|
Packit Service |
e18529 |
is run on a system with BIOS that boasts new SMBIOS specification, which
|
|
Packit Service |
e18529 |
is not supported by the tool yet, it will print out relevant message in
|
|
Packit Service |
e18529 |
addition to requested data on the very top of the output. Thus informs the
|
|
Packit Service |
e18529 |
output data is not reliable.
|
|
Packit Service |
622062 |
|
|
Packit Service |
e18529 |
.SH "DMI TYPES"
|
|
Packit Service |
e18529 |
The \s-1SMBIOS\s0 specification defines the following \s-1DMI\s0 types:
|
|
Packit Service |
622062 |
|
|
Packit Service |
e18529 |
.TS
|
|
Packit Service |
e18529 |
r l
|
|
Packit Service |
e18529 |
__
|
|
Packit Service |
e18529 |
r l.
|
|
Packit Service |
e18529 |
Type Information
|
|
Packit Service |
e18529 |
0 BIOS
|
|
Packit Service |
e18529 |
1 System
|
|
Packit Service |
e18529 |
2 Baseboard
|
|
Packit Service |
e18529 |
3 Chassis
|
|
Packit Service |
e18529 |
4 Processor
|
|
Packit Service |
e18529 |
5 Memory Controller
|
|
Packit Service |
e18529 |
6 Memory Module
|
|
Packit Service |
e18529 |
7 Cache
|
|
Packit Service |
e18529 |
8 Port Connector
|
|
Packit Service |
e18529 |
9 System Slots
|
|
Packit Service |
e18529 |
10 On Board Devices
|
|
Packit Service |
e18529 |
11 OEM Strings
|
|
Packit Service |
e18529 |
12 System Configuration Options
|
|
Packit Service |
e18529 |
13 BIOS Language
|
|
Packit Service |
e18529 |
14 Group Associations
|
|
Packit Service |
e18529 |
15 System Event Log
|
|
Packit Service |
e18529 |
16 Physical Memory Array
|
|
Packit Service |
e18529 |
17 Memory Device
|
|
Packit Service |
e18529 |
18 32-bit Memory Error
|
|
Packit Service |
e18529 |
19 Memory Array Mapped Address
|
|
Packit Service |
e18529 |
20 Memory Device Mapped Address
|
|
Packit Service |
e18529 |
21 Built-in Pointing Device
|
|
Packit Service |
e18529 |
22 Portable Battery
|
|
Packit Service |
e18529 |
23 System Reset
|
|
Packit Service |
e18529 |
24 Hardware Security
|
|
Packit Service |
e18529 |
25 System Power Controls
|
|
Packit Service |
e18529 |
26 Voltage Probe
|
|
Packit Service |
e18529 |
27 Cooling Device
|
|
Packit Service |
e18529 |
28 Temperature Probe
|
|
Packit Service |
e18529 |
29 Electrical Current Probe
|
|
Packit Service |
e18529 |
30 Out-of-band Remote Access
|
|
Packit Service |
e18529 |
31 Boot Integrity Services
|
|
Packit Service |
e18529 |
32 System Boot
|
|
Packit Service |
e18529 |
33 64-bit Memory Error
|
|
Packit Service |
e18529 |
34 Management Device
|
|
Packit Service |
e18529 |
35 Management Device Component
|
|
Packit Service |
e18529 |
36 Management Device Threshold Data
|
|
Packit Service |
e18529 |
37 Memory Channel
|
|
Packit Service |
e18529 |
38 IPMI Device
|
|
Packit Service |
e18529 |
39 Power Supply
|
|
Packit Service |
e18529 |
40 Additional Information
|
|
Packit Service |
e18529 |
41 Onboard Devices Extended Information
|
|
Packit Service |
e18529 |
42 Management Controller Host Interface
|
|
Packit Service |
e18529 |
.TE
|
|
Packit Service |
e18529 |
|
|
Packit Service |
e18529 |
Additionally, type 126 is used for disabled entries and type 127 is an
|
|
Packit Service |
e18529 |
end-of-table marker. Types 128 to 255 are for \s-1OEM\s0-specific data.
|
|
Packit Service |
e18529 |
.B dmidecode
|
|
Packit Service |
e18529 |
will display these entries by default, but it can only decode them
|
|
Packit Service |
e18529 |
when the vendors have contributed documentation or code for them.
|
|
Packit Service |
e18529 |
|
|
Packit Service |
e18529 |
Keywords can be used instead of type numbers with \fB--type\fR.
|
|
Packit Service |
e18529 |
Each keyword is equivalent to a list of type numbers:
|
|
Packit Service |
e18529 |
|
|
Packit Service |
e18529 |
.TS
|
|
Packit Service |
e18529 |
l l
|
|
Packit Service |
e18529 |
__
|
|
Packit Service |
e18529 |
l l.
|
|
Packit Service |
e18529 |
Keyword Types
|
|
Packit Service |
e18529 |
bios 0, 13
|
|
Packit Service |
e18529 |
system 1, 12, 15, 23, 32
|
|
Packit Service |
e18529 |
baseboard 2, 10, 41
|
|
Packit Service |
e18529 |
chassis 3
|
|
Packit Service |
e18529 |
processor 4
|
|
Packit Service |
e18529 |
memory 5, 6, 16, 17
|
|
Packit Service |
e18529 |
cache 7
|
|
Packit Service |
e18529 |
connector 8
|
|
Packit Service |
e18529 |
slot 9
|
|
Packit Service |
e18529 |
.TE
|
|
Packit Service |
e18529 |
|
|
Packit Service |
e18529 |
Keywords are matched case-insensitively. The following command lines are equivalent:
|
|
Packit Service |
e18529 |
.IP \(bu "\w'\(bu'u+1n"
|
|
Packit Service |
e18529 |
dmidecode --type 0 --type 13
|
|
Packit Service |
e18529 |
.IP \(bu
|
|
Packit Service |
e18529 |
dmidecode --type 0,13
|
|
Packit Service |
e18529 |
.IP \(bu
|
|
Packit Service |
e18529 |
dmidecode --type bios
|
|
Packit Service |
e18529 |
.IP \(bu
|
|
Packit Service |
e18529 |
dmidecode --type BIOS
|
|
Packit Service |
622062 |
|
|
Packit Service |
e18529 |
.SH BINARY DUMP FILE FORMAT
|
|
Packit Service |
e18529 |
The binary dump files generated by --dump-bin and read using --from-dump
|
|
Packit Service |
e18529 |
are formatted as follows:
|
|
Packit Service |
e18529 |
.IP \(bu "\w'\(bu'u+1n"
|
|
Packit Service |
e18529 |
The SMBIOS or DMI entry point is located at offset 0x00.
|
|
Packit Service |
e18529 |
It is crafted to hard-code the table address at offset 0x20.
|
|
Packit Service |
e18529 |
.IP \(bu "\w'\(bu'u+1n"
|
|
Packit Service |
e18529 |
The DMI table is located at offset 0x20.
|
|
Packit Service |
622062 |
|
|
Packit Service |
e18529 |
.SH FILES
|
|
Packit Service |
e18529 |
.I /dev/mem
|
|
Packit Service |
cf0db6 |
.br
|
|
Packit Service |
cf0db6 |
.I /sys/firmware/dmi/tables/smbios_entry_point
|
|
Packit Service |
cf0db6 |
(Linux only)
|
|
Packit Service |
cf0db6 |
.br
|
|
Packit Service |
cf0db6 |
.I /sys/firmware/dmi/tables/DMI
|
|
Packit Service |
cf0db6 |
(Linux only)
|
|
Packit Service |
e18529 |
.SH BUGS
|
|
Packit Service |
e18529 |
More often than not, information contained in the \s-1DMI\s0 tables is inaccurate,
|
|
Packit Service |
e18529 |
incomplete or simply wrong.
|
|
Packit Service |
e18529 |
.SH AUTHORS
|
|
Packit Service |
e18529 |
Alan Cox, Jean Delvare
|
|
Packit Service |
e18529 |
.SH "SEE ALSO"
|
|
Packit Service |
e18529 |
.BR biosdecode (8),
|
|
Packit Service |
e18529 |
.BR mem (4),
|
|
Packit Service |
e18529 |
.BR ownership (8),
|
|
Packit Service |
e18529 |
.BR vpddecode (8)
|