dmidecode—在 Linux 系统下获取有关硬件方面的信息

DMI,即Desktop Management Interface,Linux下获取相关硬件的信息。其输出的信息包括 BIOS、系统、主板、处理器、内存、缓存等等, 既可以得到当前的配置,也可以得到系统支持的最大配置,比如说支持的最大内存数等

名称

dmidecode

用法

dmidecode [OPTIONS]

选项

-q  //只显示必要的信息

-t  //通常我只想查看某类型,比如CPU,内存或者磁盘的信息而不是全部的。这可以使用-t(--type TYPE)来指定信息类型

使用实例

显示bios和processor

dmidecode -t bios,processor
dmidecode -t 0,4 

服务器到底能扩展到多大的内存?

dmidecode -t 16

查看Memory

dmidecode -t 17

附录(Type)

        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

参考

http://www.ha97.com/4120.html

http://www.nongnu.org/dmidecode/

JackSun

JackSun

I'm a coder.

You may also like...

No Responses

  1. 醉春 says:

    行,有意义,我顶 谢谢您了

Leave a Reply

Your email address will not be published.