Pages

Saturday, September 28, 2013

How to find motherboard model in Linux


There are many ways, using command line in LINUX, to see the motherboard model of the computer. 
You can use lshw or dmidecode. Read more on cli syntax from man commands.


Using lshw it reads reads detailed information on the hardware configuration of the computer.

The long list 
Returns few pages of detailed info  on the hardware configuration.
 sudo lshw  

The short list

Returns a short list of all hardware configurations.
 sudo lshw -short  
 /0             bus     M3N78-EMH HDMI  




Using dmidecode returns a table of the system's hardware components.

Based on man documentation :
"dmidecode is a tool for dumping a computer's DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system's hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision.  "



 The SMBIOS specification defines the following DMI types:


       Type   Information

       ────────────────────────────────────────────
          0   BIOS
          1   System
          2   Baseboard
          3   Chassis
          4   Processor
          5   Memory Controller
          6   Memory Module
          7   Cache
          8   Port Connector
          9   System Slots
         10   On Board Devices
         11   OEM Strings
         12   System Configuration Options
         13   BIOS Language
         14   Group Associations
         15   System Event Log
         16   Physical Memory Array
         17   Memory Device
         18   32-bit Memory Error
         19   Memory Array Mapped Address
         20   Memory Device Mapped Address
         21   Built-in Pointing Device
         22   Portable Battery
         23   System 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
         32   System 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
         41   Onboard Devices Extended Information
         42   Management Controller Host Interface

 Keywords can be used instead of type numbers with --type.  Each keyword is equivalent to a list of type numbers:

       Keyword     Types

       ──────────────────────────────
       bios        0, 13
       system      1, 12, 15, 23, 32
       baseboard   2, 10, 41
       chassis     3
       processor   4
       memory      5, 6, 16, 17
       cache       7
       connector   8
       slot        9



Using DMI types

$ sudo dmidecode -t 2
# dmidecode 2.11

SMBIOS 2.6 present.

Handle 0x0002, DMI type 2, 16 bytes
Base Board Information
Manufacturer: LENOVO
Product Name: Base Board Product Name
Version: Base Board Version
Serial Number: CBG3948033
Asset Tag: Base Board Asset Tag
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: Base Board Chassis Location
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0

Using keywords

$ sudo dmidecode -t baseboard
# dmidecode 2.11
SMBIOS 2.6 present.

Handle 0x0002, DMI type 2, 16 bytes
Base Board Information
Manufacturer: LENOVO
Product Name: Base Board Product Name
Version: Base Board Version
Serial Number: CBG3948033
Asset Tag: Base Board Asset Tag
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: Base Board Chassis Location
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0

Handle 0x0014, DMI type 41, 11 bytes
Onboard Device
Reference Designation: Hanksville Gbe Lan Connection
Type: Ethernet
Status: Enabled
Type Instance: 1
Bus Address: 0000:00:00.1