« Back to Cheat sheets

dmidecode cheat sheet

The dmidecode command is a DMI table decoder and makes the available information human readable. The related specification SMBIOS defines the available DMI types.

Basics

Dmidecode can query a several pieces of information. One of the methods to query is using the hardware type. This uses the --type followed by a number or keyword.

When using dmidecode, root privileges are usualy required to read the information.

Types and keywords

TypeKeywordInformation
0biosBIOS
1systemSystem
2baseboardBaseboard
3chassisChassis
4processorProcessor
5memoryMemory Controller
6memoryMemory Module
7cacheCache
8connectorPort Connector
9slotSystem Slots
10baseboardOn Board Devices
11-OEM Strings
12systemSystem Configuration Options
13biosBIOS Language
14-Group Associations
15systemSystem Event Log
16memoryPhysical Memory Array
17memoryMemory Device
18-32-bit Memory Error
19-Memory Array Mapped Address
20-Memory Device Mapped Address
21-Built-in Pointing Device
22-Portable Battery
23systemSystem 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
32systemSystem 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
41baseboardOnboard Devices Extended Information
42-Management Controller Host Interface

Strings

Besides the types, it is also possible to provide a keyword to the --string option. This will reveal very specific details about the system, typically a single item.

  • baseboard-asset-tag
  • baseboard-manufacturer
  • baseboard-product-name
  • baseboard-serial-number
  • baseboard-version
  • bios-release-date
  • bios-revision
  • bios-vendor
  • bios-version
  • chassis-asset-tag
  • chassis-manufacturer
  • chassis-serial-number
  • chassis-type
  • chassis-version
  • firmware-revision
  • processor-family
  • processor-frequency
  • processor-manufacturer
  • processor-version
  • system-family
  • system-manufacturer
  • system-product-name
  • system-version
  • system-serial-number
  • system-sku-number
  • system-uuid

BIOS

The information about the BIOS can be displayed with --typebios, which includes several types.

# dmidecode --type bios
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.

Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
	Vendor: Intel Corp.
	Version: PXXXXX.0000.111.1234
	Release Date: 01/24/2024
	Address: 0xF0000
	Runtime Size: 64 kB
	ROM Size: 0 MB
	Characteristics:
		PCI is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		Boot from CD is supported
		Selectable boot is supported
		BIOS ROM is socketed
		EDD is supported
		Japanese floppy for NEC 9800 1.2 MB is supported (int 13h)
		Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
		5.25"/360 kB floppy services are supported (int 13h)
		5.25"/1.2 MB floppy services are supported (int 13h)
		3.5"/720 kB floppy services are supported (int 13h)
		3.5"/2.88 MB floppy services are supported (int 13h)
		Print screen service is supported (int 5h)
		Serial services are supported (int 14h)
		Printer services are supported (int 17h)
		CGA/mono video services are supported (int 10h)
		ACPI is supported
		USB legacy is supported
		BIOS boot specification is supported
		Targeted content distribution is supported
		UEFI is supported
	BIOS Revision: 7.23
	Firmware Revision: 12.23

Handle 0x0031, DMI type 13, 22 bytes
BIOS Language Information
	Language Description Format: Long
	Installable Languages: 1
		en|US|iso8859-1
	Currently Installed Language: en|US|iso8859-1

Handle 0x0058, DMI type 13, 22 bytes
BIOS Language Information
	Language Description Format: Abbreviated
	Installable Languages: 1
		enUS
	Currently Installed Language: enUS

BIOS version

The version of the BIOS can be retrieved using --stringbios-version and will only return its value. Great for automation purposes.

dmidecode --string bios-version

Memory

Show all memory information can be done using the memory keyword.

dmidecode --type memory

Memory modules

To list only the memory modules, define the numeric type.

dmidecode --type 17

Relevant articles using dmidecode command

The following articles include an example on how to use dmidecode and might be worth further exploring.

Liked this cheat sheet? There are more!

Feedback

Small picture of Michael Boelen

This article has been written by our Linux security expert Michael Boelen. With focus on creating high-quality articles and relevant examples, he wants to improve the field of Linux security. No more web full of copy-pasted blog posts.

Discovered outdated information or have a question? Share your thoughts. Thanks for your contribution!

Mastodon icon