Как получить информацию о железе используя dmidecode

Узнаем информацию об аппаратной части сервера используя интерфейс DMI (Desktop Management Interface).

Dmidecode - утилита для Linux, позволяющая работать с DMI, которая выводит информацию об:

  • bios
  • system
  • baseboard
  • chassis
  • processor
  • memory
  • cache
  • connector
  • slot

Установим dmidecode.

Debian/Ubuntu
apt-get install dmidecode
RHEL/Centos
yum install dmidecode

dmidecode –type BIOS

# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
   Vendor: HP
        Version: P71
        Release Date: 12/14/2012
        Address: 0xF0000
        Runtime Size: 64 kB
        ROM Size: 8192 kB
        Characteristics:
                PCI is supported
                PNP 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
                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)
                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
                USB legacy is supported
                BIOS boot specification is supported
                Function key-initiated network boot is supported
                Targeted content distribution is supported
        Firmware Revision: 1.20

dmidecode –type baseboard

# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.5 present.

Handle 0x0003, DMI type 2, 16 bytes
Base Board Information
   Manufacturer: Intel Corporation
        Product Name: S5500WB
        Version: E48472-311
        Serial Number: AZWK103819381
        Asset Tag: ....................
        Features:
                Board is a hosting board
                Board is replaceable
        Location In Chassis: Not Specified
        Chassis Handle: 0x0004
        Type: Motherboard
        Contained Object Handles: 0

Handle 0x001B, DMI type 10, 6 bytes
On Board Device Information
        Type: Video
        Status: Enabled
        Description: ServerEngines Pilot II

Handle 0x001C, DMI type 10, 6 bytes
On Board Device Information
        Type: Ethernet
        Status: Enabled
        Description: Intel 82576EB Ethernet

Handle 0x001D, DMI type 10, 6 bytes
On Board Device Information
        Type: SATA Controller
        Status: Enabled
        Description: ICH10 Integrated SATA Controller

dmidecode –type processor

# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0400, DMI type 4, 42 bytes
Processor Information
   Socket Designation: Proc 1
        Type: Central Processor
        Family: Xeon
        Manufacturer: Intel
        ID: D7 06 02 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 45, Stepping 7
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (FXSAVE and FXSTOR instructions supported)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Multi-threading)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version:  Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
        Voltage: 1.4 V
        External Clock: 100 MHz
        Max Speed: 4800 MHz
        Current Speed: 2600 MHz
        Status: Populated, Enabled
        Upgrade: Socket LGA2011
        L1 Cache Handle: 0x0710
        L2 Cache Handle: 0x0720
        L3 Cache Handle: 0x0730
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
        Core Count: 8
        Core Enabled: 8
        Thread Count: 16
        Characteristics:
                64-bit capable

Handle 0x0401, DMI type 4, 42 bytes
Processor Information
        Socket Designation: Proc 2
        Type: Central Processor
        Family: Xeon
        Manufacturer: Intel
        ID: D7 06 02 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 45, Stepping 7
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (FXSAVE and FXSTOR instructions supported)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Multi-threading)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version:  Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
        Voltage: 1.4 V
        External Clock: 100 MHz
        Max Speed: 4800 MHz
        Current Speed: 2600 MHz
        Status: Populated, Idle
        Upgrade: Socket LGA2011
        L1 Cache Handle: 0x0716
        L2 Cache Handle: 0x0726
        L3 Cache Handle: 0x0736
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
        Core Count: 8
        Core Enabled: 8
        Thread Count: 16
        Characteristics:
                64-bit capable

dmidecode –type memory

# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x1000, DMI type 16, 23 bytes
Physical Memory Array
   Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: Single-bit ECC
        Maximum Capacity: 384 GB
        Error Information Handle: Not Provided
        Number Of Devices: 12

Handle 0x1001, DMI type 16, 23 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: Single-bit ECC
        Maximum Capacity: 384 GB
        Error Information Handle: Not Provided
        Number Of Devices: 12

Handle 0x1100, DMI type 17, 34 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
        Size: 8192 MB
        Form Factor: DIMM
        Set: None
        Locator: PROC  1 DIMM  1
        Bank Locator: Not Specified
        Type: DDR3
        Type Detail: Synchronous Registered (Buffered)
        Speed: 1333 MHz
        Manufacturer: UNKNOWN
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
        Rank: 2
        Configured Clock Speed: 1333 MHz

Handle 0x1101, DMI type 17, 34 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
        Size: 8192 MB
        Form Factor: DIMM
        Set: 1
        Locator: PROC  1 DIMM  2
        Bank Locator: Not Specified
        Type: DDR3
        Type Detail: Synchronous Registered (Buffered)
        Speed: 1333 MHz
        Manufacturer: UNKNOWN
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
        Rank: 2
        Configured Clock Speed: 1333 MHz

Handle 0x1102, DMI type 17, 34 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
        Size: No Module Installed
        Form Factor: DIMM
        Set: 2
        Locator: PROC  1 DIMM  3
        Bank Locator: Not Specified
        Type: DDR3
        Type Detail: Synchronous
        Speed: Unknown
        Manufacturer: UNKNOWN
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified
        Rank: Unknown
        Configured Clock Speed: Unknown
.........................
`

dmidecode –type connector

# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0801, DMI type 8, 9 bytes
Port Connector Information
   Internal Reference Designator: J801
        Internal Connector Type: Access Bus (USB)
        External Reference Designator: USB Port 1
        External Connector Type: Access Bus (USB)
        Port Type: USB

Handle 0x0802, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: J801
        Internal Connector Type: Access Bus (USB)
        External Reference Designator: USB Port 2
        External Connector Type: Access Bus (USB)
        Port Type: USB

Handle 0x0803, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: J801
        Internal Connector Type: Access Bus (USB)
        External Reference Designator: USB Port 3
        External Connector Type: Access Bus (USB)
        Port Type: USB

Handle 0x0804, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: J801
        Internal Connector Type: Access Bus (USB)
        External Reference Designator: USB Port 4
        External Connector Type: Access Bus (USB)
        Port Type: USB

Handle 0x0805, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: J33
        Internal Connector Type: Access Bus (USB)
        External Reference Designator: USB Port 5
        External Connector Type: Access Bus (USB)
        Port Type: USB

Handle 0x0806, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: J904
        Internal Connector Type: Access Bus (USB)
        External Reference Designator: USB Port 6
        External Connector Type: Access Bus (USB)
        Port Type: USB

Handle 0x0807, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: J904
        Internal Connector Type: Access Bus (USB)
        External Reference Designator: USB Port 7
        External Connector Type: Access Bus (USB)
        Port Type: USB

Handle 0x0808, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: J36
        Internal Connector Type: None
        External Reference Designator: Video Port
        External Connector Type: DB-15 female
        Port Type: Video Port

Handle 0x0809, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: J87
        Internal Connector Type: None
        External Reference Designator: COM Port
        External Connector Type: DB-9 male
        Port Type: Serial Port 16550A Compatible

Handle 0x080A, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: J39
        Internal Connector Type: None
        External Reference Designator: ILO NIC port
        External Connector Type: RJ-45
        Port Type: Network Port

Handle 0x080B, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: J904
        Internal Connector Type: None
        External Reference Designator: Front Video Port
        External Connector Type: Proprietary
        Port Type: Video Port