dmidecode command in Linux with examples.

Hi Friends! Today we will learn about dmidecode command in Linux with examples, this command collects the data from the system and represents it in the human-readable format and also known as Desktop Management Interface table decoder.

Also, we can get the information about our system hardware components as well as the other useful information like a Serial Number, BIOS Version, Manufacturer, etc.

So, let’s start with the first “dmidecode command in Linux“.

# dmidecode 
Output:
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.
Table at 0x7E761000.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
	Vendor: LENOVO
	Version: 6UCN56WW(V4.11)
	Release Date: 06/26/2019
	Address: 0xE0000
	Runtime Size: 128 kB
	ROM Size: 6144 kB
	Characteristics:
		PCI is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		Boot from CD is supported
		Selectable boot is supported
		EDD is supported

I have highlighted the four part in above output in RED colour.

  1. Handle 0x0000: This is a unique identifier
  2. DMI type 0: It tells about the different elements of a system, in the above example the type is 0 means it will show the information about BIOS
  3. 24 bytes: This is the size of a record and the 4 bytes are reserved, 2 bytes for a handle, 1 byte for a type, and 1 byte for the size and rest size are by the record data.
  4. BIOS Information: This is known as Decoded values, this contains valuable information about the element in our system.
Let’s have a look at the types of DMI.
DMI TYPES
TypeInformation
0BIOS
1System
2Baseboard
3Chassis
4Processor
5Memory Controller
6Memory Module
7Cache
8Port Connector
9System Slots
10On Board Devices
11OEM Strings
12System Configuration Options
13BIOS Language
14Group Associations
15System Event Log
16Physical Memory Array
17Memory Device
1832-bit Memory Error
19Memory Array Mapped Address
20Memory Device Mapped Address
21Built-in Pointing Device
22Portable Battery
23System Reset
24Hardware Security
25System Power Controls
26Voltage Probe
27Cooling Device
28Temperature Probe
29Electrical Current Probe
30Out-of-band Remote Access
31Boot Integrity Services
32System Boot
3364-bit Memory Error
34Management Device
35Management Device Component
36Threshold Data Management Device
37Memory Channel
38IPMI Device
39Power Supply
40Additional Information
41Onboard Device Extended Information
42Management Controller Host Interface

So when we use the dmidecode command it shows all the output which we have seen in the tables.

-t option to show the types of elements that are present in the system.

This option has some keywords like bios, system, processor, memory, and many more like this.

Command:
# dmidecode -t memory

As you can see that we have type as a memory and it is showing the detail information about the memory.

You can also see the red highlighted part in the image output, so now instead of memory we will put DMI TYPE as 16

For the type also you can refer to the Dropdown list “Let’s have a look at the types of DMI.

We can use these above types to know the information for a particular component

Command: For Processor
# dmidecode -t 4
Command: To see more than one types
# dmidecode -t 5,6,16
-s option will show the output by the identified String.
Serial Number of the System: 
# dmidecode -s system-serial-number
For CPU Detail: 
# dmidecode -s processor-version
To Find CPU Family: 
# dmidecode -s processor-family
Baseboard Serial Number: 
# dmidecode -s baseboard-serial-number
To Find System you are Using 
# dmidecode -s system-version
How to know the manufacturer of your System  
# dmidecode -s system-manufacturer

So, there is a file “/sys/devices/virtual/dmi/id” in which the DMI data get collected and suppose we will use this command’s then it will show the output from this file.

Question Answer Session for dmidecode in Linux

How to get UUID of the

# dmidecode -s system-uuid

How to get serial Number

# dmidecode -s system-serial-number

How to check the information about BIOS

# dmidecode -t 0

Command to check the detail about System

# dmidecode -t system

How to check the detail about Processor

# dmidecode -t processor

How to check the detail of Memory

# dmidecode -t 16,17

dmidecode command cheat sheet
How to check uuid of the system

Command:
# dmidecode -s system-uuid
How to check Serial Number of the system

Command:
# dmidecode -s system-serial-number
How to check Processor Family of the system

Command:
# dmidecode -s processor-family
How to check Processor Version of the system

Command:
# dmidecode -s processor-version
How to check BIOS Information of the system

Command:
# dmidecode -t BIOS
How to check the Detail about System

Command:
# dmidecode -t system
How to check the Detail about the CPU 

Command:
# dmidecode -t processor
How to check the Detail about the Memory 

Command:
# dmidecode -t memory
0%

The dmidecode commands stands for ?

Correct! Wrong!

Which option to be used for DMI types?

Please select 2 correct answers

Correct! Wrong!

How to check the Serial Number?

Correct! Wrong!

# dmidecode -t 16,17 is this a correct Syntax?

Correct! Wrong!

Can we check BIOS information with dmidecode command?

Correct! Wrong!

dmidecode command Quiz, Let's check your grip?
Thanks for your valuable time!
To Learn more Basic command you can go to "LINUX BASIC COMMAND SECTION" and Spread the Knowledge Keep Supporting us! Follow us on our ID's: >> Instagram: @tastethelinux_official >>Facebook: https://fb.me/tastethelinuxofficial >>Twitter: @LinuxTaste

Share your Results:

dmidecode command, dmidecode serial number, dmidecode system-uuid, dmidecode Linux, dmidecode ram info, dmidecode network card,

Link for the Source Code for dmidecode command in Linux.

Thank you for reading this post keep supporting us

Give your valuable time