How to: Get the information of your Computer's Hardware components using Dmidecode command

Dmideocde is a wonderful utility to get detailed information about your system’s hardware components. It extracts the information from the computer’s Desktop Management Interface(DMI) and displays in a human readable format. Please note that, it doesn’t probe the devices in order to gather the information, it just reads it from some data structures.

If you run dmidecode without any option, it will display everything. Using a few of its options you can easily filter out the output. Lets take a simple example.

Suppose you want to retrieve information about the L1 & L2 caches present in your system. Using the --type or -t option, you can specify the type.

[root]# dmidecode -t cache
# dmidecode 2.9
SMBIOS 2.4 present.

Handle 0x0006, DMI type 7, 19 bytes
Cache Information
    Socket Designation: 
    Configuration: Enabled, Socketed, Level 1
    Operational Mode: Write Back
    Location: Internal
    Installed Size: 32 KB
    Maximum Size: 32 KB
    Supported SRAM Types: Unknown
    Installed SRAM Type: Unknown
    Speed: Unknown
    Error Correction Type: Unknown
    System Type: Unknown
    Associativity: Unknown

Handle 0x0007, DMI type 7, 19 bytes
Cache Information
    Socket Designation: 
    Configuration: Enabled, Socketed, Level 2
    Operational Mode: Write Back
    Location: Internal
    Installed Size: 2048 KB
    Maximum Size: 4096 KB
    Supported SRAM Types: Unknown
    Installed SRAM Type: Burst
    Speed: Unknown
    Error Correction Type: Unknown
    System Type: Unknown
    Associativity: Unknown

Other members of the type list are: bios, system, baseboard, chassis, processor, memory, cache, connector, slot.

Similary, if you want to find the value of a specifc DMI string, then mention the keyword with the --string or -s option. Say, you want to find the name of the processor manufacturer. Use the following command.

[root]# dmidecode -s processor-manufacturer
Intel

You can find other keywords in the manpage of dmidecode.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <p> <br>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.