How to install Dmidecode in OpenSUSE Leap 42.3

To use dmidecode in OpenSUSE Leap 42.3

dmidecode also refereed as the Desktop Management Interface, is a very useful tool for finding out information related to your system  hardware. dmidecode dumps your computer' s DMI (SMBIOS) table contents in a human-readable format, and it does not scan the system for this purpose. The information covered by dmidecode includes model name, serial number, BIOS version, asset tag and other details depending on the manufacturer. It is important to note that, the dmicecode should be run only as a root user. Installing dmidecode is as simple as using it, and this article covers the method to install dmidecode on OpenSUSE Leap 42.3

 

Using  dmidecode

If you want to view the BIOS information by using the dmidecode command, you shall simply run the following command.

linuxhelp:~ # dmidecode -t bios
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
    Vendor: Phoenix Technologies LTD
    Version: 6.00
    Release Date: 07/02/2015
    Address: 0xEA5E0
    Runtime Size: 88608 bytes
    ROM Size: 64 kB
    Characteristics:
        ISA is supported
        PCI is supported
        PC Card (PCMCIA) is supported
        PNP is supported
        APM is supported
        BIOS is upgradeable
        BIOS shadowing is allowed
        ESCD support is available
        Boot from CD is supported
        Selectable boot is supported
        EDD is supported
        Print screen service is supported (int 5h)
        8042 keyboard services are supported (int 9h)
        Serial services are supported (int 14h)
        Printer services are supported (int 17h)
        CGA/mono video services are supported (int 10h)
        ACPI is supported
        Smart battery is supported
        BIOS boot specification is supported
        Function key-initiated network boot is supported
        Targeted content distribution is supported
    BIOS Revision: 4.6
    Firmware Revision: 0.0

 

 

In order to view the system information, you shall simply use the dmidecode command with the option mentioned in the following command.

linuxhelp:~ # dmidecode -t system
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0001, DMI type 1, 27 bytes
System Information
    Manufacturer: VMware, Inc.
    Product Name: VMware Virtual Platform
    Version: None
    Serial Number: VMware-56 4d ff af 3a d4 be d7-fa 1e 5c e4 b6 79 b0 97
    UUID: AFFF4D56-D43A-D7BE-FA1E-5CE4B679B097
    Wake-up Type: Power Switch
    SKU Number: Not Specified
    Family: Not Specified

Handle 0x0024, DMI type 15, 29 bytes
System Event Log
    Area Length: 16 bytes
    Header Start Offset: 0x0000
    Header Length: 16 bytes
    Data Start Offset: 0x0010
    Access Method: General-purpose non-volatile data functions
    Access Address: 0x0000
    Status: Invalid, Full
    Change Token: 0x00000036
    Header Format: Type 1
    Supported Log Type Descriptors: 3
    Descriptor 1: POST error
    Data Format 1: POST results bitmap
    Descriptor 2: Single-bit ECC memory error
    Data Format 2: Multiple-event
    Descriptor 3: Multi-bit ECC memory error
    Data Format 3: Multiple-event

Handle 0x00E8, DMI type 23, 13 bytes
System Reset
    Status: Enabled
    Watchdog Timer: Present
    Boot Option: Do Not Reboot
    Boot Option On Limit: Do Not Reboot
    Reset Count: Unknown
    Reset Limit: Unknown
    Timer Interval: Unknown
    Timeout: Unknown

Handle 0x00EB, DMI type 32, 20 bytes
System Boot Information
    Status: No errors detected

 

You shall also view the baseboard information by using the following command along with the option mentioned in it.

linuxhelp:~ # dmidecode -t baseboard
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
    Manufacturer: Intel Corporation
    Product Name: 440BX Desktop Reference Platform
    Version: None
    Serial Number: None
    Asset Tag: Not Specified
    Features: None
    Location In Chassis: Not Specified
    Chassis Handle: 0x0000
    Type: Unknown
    Contained Object Handles: 0

Handle 0x0022, DMI type 10, 8 bytes
On Board Device 1 Information
    Type: Video
    Status: Disabled
    Description: VMware SVGA II
On Board Device 2 Information
    Type: Sound
    Status: Disabled
    Description: ES1371

 

 

You shall also view the chassis information from the following command.

linuxhelp:~ # dmidecode -t chassis
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0003, DMI type 3, 21 bytes
Chassis Information
    Manufacturer: No Enclosure
    Type: Other
    Lock: Not Present
    Version: N/A
    Serial Number: None
    Asset Tag: No Asset Tag
    Boot-up State: Safe
    Power Supply State: Safe
    Thermal State: Safe
    Security Status: None
    OEM Information: 0x00001234
    Height: Unspecified
    Number Of Power Cords: Unspecified
    Contained Elements: 0

 

In order to view the memory, you shall execute the following command.

linuxhelp:~ # dmidecode -t memory
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0005, DMI type 5, 46 bytes
Memory Controller Information
    Error Detecting Method: None
    Error Correcting Capabilities:
        None
    Supported Interleave: One-way Interleave
    Current Interleave: One-way Interleave
    Maximum Memory Module Size: 32768 MB
    Maximum Total Memory Size: 491520 MB
    Supported Speeds:
        70 ns
        60 ns
    Supported Memory Types:
        FPM
        EDO
        DIMM
        SDRAM
    Memory Module Voltage: 3.3 V
    Associated Memory Slots: 15
        0x0006
        0x0007
        0x0008
        0x0009
        0x000A
        0x000B
        0x000C
        0x000D
        0x000E
        0x000F
        0x0010
        0x0011
        0x0012
        0x0013
        0x0014
    Enabled Error Correcting Capabilities:
        None

Handle 0x0006, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: RAM socket #0
    Bank Connections: None
    Current Speed: Unknown
    Type: EDO DIMM
    Installed Size: 1024 MB (Single-bank Connection)
    Enabled Size: 1024 MB (Single-bank Connection)
    Error Status: OK

Handle 0x0007, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: RAM socket #1
    Bank Connections: None
    Current Speed: Unknown
    Type: EDO DIMM
    Installed Size: 512 MB (Single-bank Connection)
    Enabled Size: 512 MB (Single-bank Connection)
    Error Status: OK

Handle 0x0008, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: RAM socket #2
    Bank Connections: None
    Current Speed: Unknown
    Type: EDO DIMM
    Installed Size: 128 MB (Single-bank Connection)
    Enabled Size: 128 MB (Single-bank Connection)
    Error Status: OK

Handle 0x0009, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: RAM socket #3
    Bank Connections: None
    Current Speed: Unknown
    Type: DIMM
    Installed Size: Not Installed
    Enabled Size: Not Installed
    Error Status: OK

 

You can view the cache state of your system by running the following command.

linuxhelp:~ # dmidecode -t cache
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0015, DMI type 7, 19 bytes
Cache Information
    Socket Designation: L1
    Configuration: Enabled, Socketed, Level 1
    Operational Mode: Write Back
    Location: Internal
    Installed Size: 16 kB
    Maximum Size: 16 kB
    Supported SRAM Types:
        Burst
        Pipeline Burst
        Asynchronous
    Installed SRAM Type: Asynchronous
    Speed: Unknown
    Error Correction Type: Unknown
    System Type: Unknown
    Associativity: Unknown

Handle 0x0016, DMI type 7, 19 bytes
Cache Information
    Socket Designation: L2
    Configuration: Enabled, Socketed, Level 2
    Operational Mode: Write Back
    Location: External
    Installed Size: 0 kB
    Maximum Size: 24576 kB
    Supported SRAM Types:
        Burst
        Pipeline Burst
        Asynchronous
    Installed SRAM Type: Burst
    Speed: Unknown
    Error Correction Type: Unknown
    System Type: Unknown
    Associativity: Unknown

 

You shall also learn about your processor and the information related to it, by running the following command.

linuxhelp:~ # dmidecode -t processor
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0004, DMI type 4, 42 bytes
Processor Information
    Socket Designation: CPU #000
    Type: Central Processor
    Family: Unknown
    Manufacturer: GenuineIntel
    ID: A9 06 03 00 FF FB AB 0F
    Version:         Intel(R) Core(TM) i5-3330 CPU @ 3.00GHz
    Voltage: 3.3 V
    External Clock: Unknown
    Max Speed: 30000 MHz
    Current Speed: 3000 MHz
    Status: Populated, Enabled
    Upgrade: ZIF Socket
    L1 Cache Handle: 0x0015
    L2 Cache Handle: 0x0016
    L3 Cache Handle: Not Provided
    Serial Number: Not Specified
    Asset Tag: Not Specified
    Part Number: Not Specified
    Core Count: 1
    Core Enabled: 1
    Characteristics:
        64-bit capable
        Execute Protection

 

If you want to know about the connectors, you shall run the following command.

linuxhelp:~ # dmidecode -t connector
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0017, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J19
    Internal Connector Type: 9 Pin Dual Inline (pin 10 cut)
    External Reference Designator: COM 1
    External Connector Type: DB-9 male
    Port Type: Serial Port 16550A Compatible

Handle 0x0018, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J23
    Internal Connector Type: 25 Pin Dual Inline (pin 26 cut)
    External Reference Designator: Parallel
    External Connector Type: DB-25 female
    Port Type: Parallel Port ECP/EPP

Handle 0x0019, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J11
    Internal Connector Type: None
    External Reference Designator: Keyboard
    External Connector Type: Circular DIN-8 male
    Port Type: Keyboard Port

Handle 0x001A, DMI type 8, 9 bytes
Port Connector Information
    Internal Reference Designator: J12
    Internal Connector Type: None
    External Reference Designator: PS/2 Mouse
    External Connector Type: Circular DIN-8 male
    Port Type: Keyboard Port

 

You can also view the information about the slot by using the following command.

linuxhelp:~ # dmidecode -t slot
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x001B, DMI type 9, 17 bytes
System Slot Information
    Designation: ISA Slot J8
    Type: 16-bit ISA
    Current Usage: Unknown
    Length: Short
    Characteristics:
        5.0 V is provided
    Bus Address: 00ff:ff:1f.7

Handle 0x001C, DMI type 9, 17 bytes
System Slot Information
    Designation: ISA Slot J9
    Type: 16-bit ISA
    Current Usage: Unknown
    Length: Short
    Characteristics:
        5.0 V is provided
    Bus Address: 00ff:ff:1f.7

Handle 0x001D, DMI type 9, 17 bytes
System Slot Information
    Designation: ISA Slot J10
    Type: 16-bit ISA
    Current Usage: Unknown
    Length: Short
    Characteristics:
        5.0 V is provided
    Bus Address: 00ff:ff:1f.7

Handle 0x001E, DMI type 9, 17 bytes
System Slot Information
    Designation: PCI Slot J11
    Type: 32-bit PCI
    Current Usage: In Use
    Length: Long
    ID: 1
    Characteristics:
        5.0 V is provided
        3.3 V is provided
    Bus Address: 0000:00:0f.0

Handle 0x001F, DMI type 9, 17 bytes
System Slot Information
    Designation: PCI Slot J12
    Type: 32-bit PCI
    Current Usage: In Use
    Length: Long
    ID: 2
    Characteristics:
        5.0 V is provided
        3.3 V is provided
    Bus Address: 0000:00:10.0

Handle 0x0020, DMI type 9, 17 bytes
System Slot Information
    Designation: PCI Slot J13
    Type: 32-bit PCI
    Current Usage: In Use
    Length: Long
    ID: 3
    Characteristics:
        5.0 V is provided
        3.3 V is provided
    Bus Address: 0000:00:11.0

Handle 0x0021, DMI type 9, 17 bytes
System Slot Information
    Designation: PCI Slot J14
    Type: 32-bit PCI
    Current Usage: Available
    Length: Long
ID: 4
    Characteristics:
        5.0 V is provided
        3.3 V is provided
    Bus Address: 0000:00:12.0

 

linuxhelp:~ # dmidecode -t 6
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0005, DMI type 5, 46 bytes
Memory Controller Information
    Error Detecting Method: None
    Error Correcting Capabilities:
        None
    Supported Interleave: One-way Interleave
    Current Interleave: One-way Interleave
    Maximum Memory Module Size: 32768 MB
    Maximum Total Memory Size: 491520 MB
    Supported Speeds:
        70 ns
        60 ns
    Supported Memory Types:
        FPM
        EDO
        DIMM
        SDRAM
    Memory Module Voltage: 3.3 V
    Associated Memory Slots: 15
        0x0006
        0x0007
        0x0008
        0x0009
        0x000A
        0x000B
        0x000C
        0x000D
        0x000E
        0x000F
        0x0010
        0x0011
        0x0012
        0x0013
        0x0014
    Enabled Error Correcting Capabilities:
        None

Handle 0x0006, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: RAM socket #0
    Bank Connections: None
    Current Speed: Unknown
    Type: EDO DIMM
    Installed Size: 1024 MB (Single-bank Connection)
    Enabled Size: 1024 MB (Single-bank Connection)
    Error Status: OK

Handle 0x0007, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: RAM socket #1
    Bank Connections: None
    Current Speed: Unknown
    Type: EDO DIMM
    Installed Size: 512 MB (Single-bank Connection)
    Enabled Size: 512 MB (Single-bank Connection)
    Error Status: OK

Handle 0x0008, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: RAM socket #2
    Bank Connections: None
    Current Speed: Unknown
    Type: EDO DIMM
    Installed Size: 128 MB (Single-bank Connection)
    Enabled Size: 128 MB (Single-bank Connection)
    Error Status: OK

Handle 0x0009, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: RAM socket #3
    Bank Connections: None
    Current Speed: Unknown
    Type: DIMM
    Installed Size: Not Installed
    Enabled Size: Not Installed
    Error Status: OK

 

You can use the grep command along with dmidecode to view specific details as follows.

linuxhelp:~ # dmidecode | grep -i bios
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.
BIOS Information
        BIOS is upgradeable
        BIOS shadowing is allowed
        BIOS boot specification is supported
    BIOS Revision: 4.6

With this, the coverage on the usage of the dmidecode command comes to an end. 

FAQ
Q
is this command similar to lscpu command ?
A
yes, it Is similar to lscpu command .
Q
any other command to get full system info in linux?
A
1. /sbin/lspci -> h/w info 2. lspci -> chipset and pci bus info 3. dmesg -> sys info 4. dmesg | tail -> search all devices attached to the sys. 5. /proc/cpuinfo -> cpu info 6. /etc/issue ->
Q
is there any default method to get cpu info ?
A
use "cat /proc/cpuinfo
Q
I see the 'lshw' command which displays system info , but I try it shows command not found in fedora ?
A
install lshw using "dnf install lshw" [OR] "dnf install lshw-gui"
Q
is there any graphical command to get system info?
A
use the following command # lshw-gui