dmidecode

    dmidecode命令 可以让你在Linux系统下获取有关硬件方面的信息。dmidecode的作用是将DMI数据库中的信息解码,以可读的文本方式显示。由于DMI信息可以人为修改,因此里面的信息不一定是系统准确的信息。dmidecode遵循SMBIOS/DMI标准,其输出的信息包括BIOS、系统、主板、处理器、内存、缓存等等。

    DMI(Desktop Management Interface,DMI)就是帮助收集电脑系统信息的管理系统,DMI信息的收集必须在严格遵照SMBIOS规范的前提下进行。SMBIOS(System Management BIOS)是主板或系统制造者以标准格式显示产品管理信息所需遵循的统一规范。SMBIOS和DMI是由行业指导机构Desktop Management Task Force(DMTF)起草的开放性的技术标准,其中DMI设计适用于任何的平台和操作系统。

    DMI充当了管理工具和系统层之间接口的角色。它建立了标准的可管理系统更加方便了电脑厂商和用户对系统的了解。DMI的主要组成部分是Management Information Format(MIF)数据库。这个数据库包括了所有有关电脑系统和配件的信息。通过DMI,用户可以获取序列号、电脑厂商、串口信息以及其它系统配件信息。

    1. -h:显示帮助信息。
    2. -s:只显示指定DMI字符串的信息。(string)
    3. -t:只显示指定条目的信息。(type)
    4. -u:显示未解码的原始条目内容。
    5. --dump-bin file:将DMI数据转储到一个二进制文件中。
    6. --from-dump FILE:从一个二进制文件读取DMI数据。
    7. -V:显示版本信息。

    (1)Valid string keywords are:

    • bios-vendor
    • bios-version
    • bios-release-date
    • system-manufacturer
    • system-product-name
    • system-version
    • system-serial-number
    • system-uuid
    • baseboard-manufacturer
    • baseboard-product-name
    • baseboard-version
    • baseboard-serial-number
    • baseboard-asset-tag
    • chassis-manufacturer
    • chassis-type
    • chassis-version
    • chassis-serial-number
    • chassis-asset-tag
    • processor-family
    • processor-manufacturer
    • processor-version
    • processor-frequency

    (2)Valid type keywords are:

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

    (3)type全部编码列表:

    • BIOS
    • System
    • Base Board
    • Chassis
    • Processor
    • Memory Controller
    • Memory Module
    • Cache
    • Port Connector
    • System Slots
    • On Board Devices
    • OEM Strings
    • System Configuration Options
    • Group Associations
    • System Event Log
    • Physical Memory Array
    • Memory Device
    • 32-bit Memory Error
    • Memory Array Mapped Address
    • Memory Device Mapped Address
    • Built-in Pointing Device
    • Portable Battery
    • System Reset
    • Hardware Security
    • System Power Controls
    • Voltage Probe
    • Cooling Device
    • Temperature Probe
    • Electrical Current Probe
    • Out-of-band Remote Access
    • Boot Integrity Services
    • System Boot
    • 64-bit Memory Error
    • Management Device
    • Management Device Component
    • Management Device Threshold Data
    • Memory Channel
    • IPMI Device
    • Power Supply
    • Additional Information
    • Onboard Device
    1. [root@localhost ~]# dmidecode -t processor
    2. # dmidecode 2.11
    3. SMBIOS 2.5 present.
    4. Handle 0x0001, DMI type 4, 40 bytes
    5. Processor Information
    6. Socket Designation: Node 1 Socket 1
    7. Type: Central Processor
    8. Family: Xeon MP
    9. Manufacturer: Intel(R) Corporation
    10. id: C2 06 02 00 FF FB EB BF
    11. Signature: Type 0, Family 6, Model 44, Stepping 2
    12. Flags:
    13. FPU (Floating-point unit on-chip)
    14. VME (Virtual mode extension)
    15. DE (Debugging extension)
    16. PSE (Page size extension)
    17. TSC (time stamp counter)
    18. MSR (Model specific registers)
    19. PAE (Physical address extension)
    20. MCE (Machine check exception)
    21. CX8 (CMPXCHG8 instruction supported)
    22. APIC (On-chip APIC hardware supported)
    23. MTRR (Memory type range registers)
    24. PGE (Page global enable)
    25. MCA (Machine check architecture)
    26. CMOV (Conditional move instruction supported)
    27. PSE-36 (36-bit page size extension)
    28. CLFSH (CLFLUSH instruction supported)
    29. DS (Debug store)
    30. ACPI (ACPI supported)
    31. MMX (MMX technology supported)
    32. FXSR (FXSAVE and FXSTOR instructions supported)
    33. SSE (Streaming SIMD extensions)
    34. SSE2 (Streaming SIMD extensions 2)
    35. ss (Self-snoop)
    36. HTT (Multi-threading)
    37. TM (Thermal monitor supported)
    38. PBE (Pending break enabled)
    39. Version: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
    40. Voltage: 1.2 V
    41. External Clock: 5866 MHz
    42. Max Speed: 4400 MHz
    43. Current Speed: 2400 MHz
    44. Status: Populated, Enabled
    45. Upgrade: ZIF Socket
    46. L1 Cache Handle: 0x0002
    47. L2 Cache Handle: 0x0003
    48. L3 Cache Handle: 0x0004
    49. Serial Number: Not Specified
    50. Asset Tag: Not Specified
    51. Part Number: Not Specified
    52. Core Enabled: 4
    53. Thread Count: 8
    54. Characteristics:
    55. 64-bit capable
    56. Handle 0x0055, DMI type 4, 40 bytes
    57. Processor Information
    58. Socket Designation: Node 1 Socket 2
    59. Type: Central Processor
    60. Family: Xeon MP
    61. Manufacturer: Not Specified
    62. ID: 00 00 00 00 00 00 00 00
    63. Signature: Type 0, Family 0, Model 0, Stepping 0
    64. Flags: None
    65. Version: Not Specified
    66. Voltage: 1.2 V
    67. External Clock: 5866 MHz
    68. Max Speed: 4400 MHz
    69. Current Speed: Unknown
    70. Status: Unpopulated
    71. Upgrade: ZIF Socket
    72. L1 Cache Handle: Not Provided
    73. L2 Cache Handle: Not Provided
    74. L3 Cache Handle: Not Provided
    75. Serial Number: Not Specified
    76. Asset Tag: Not Specified
    77. Part Number: Not Specified
    78. Characteristics: None

    查看内存的插槽数,已经使用多少插槽。每条内存多大,已使用内存多大

    查看内存支持的最大内存容量

    1. dmidecode|grep -P 'Maximum\s+Capacity'

    查看内存的频率