uTank-木头
每一个你不满意的现在,都有一个你没有努力的曾经。

dmidecode命令主要是通过DMI获取主机的硬件详细信息。其输出的信息包括BIOS、系统、主板、处理器、内存、缓存等非常重要信息。

什么是DMI?DMI (Desktop Management Interface, DMI)的主要组成部分是Management InformationFormat (MIF)数据库,这个数据库包括了所有有关电脑系统和配件的信息。

常用用法如下(需要root权限):

 $ dmidecode                          # 打印所有硬件信息
 $ dmidecode -q                       # 打印所有硬件信息,比较简洁
 $ dmidecode -h                       # 获取帮助
 $ dmidecode | grep 'Product Name'    # 以过滤的方式来查看指定的硬件信息
 $ dmidecode --type bios        # 查看BIOS相关的硬件信息
 $ dmidecode --type system      # 查看系统相关的硬件信息
 $ dmidecode --type baseboard   # 查看主板相关的硬件信息
 $ dmidecode --type chassis     # 查看机箱相关的硬件信息
 $ dmidecode --type processor   # 查看处理器相关的硬件信息
 $ dmidecode --type memory      # 查看内存相关的硬件信息

查看具体细项信息(需要root权限)

 $ dmidecode -t 1   #查看system基本信息,-t等价于--type
 $ dmidecode -t 15  #查看system Event信息
 $ dmidecode -t 23  #查看system Reset信息
 $ dmidecode -t 32  #查看system Boot信息
 $ dmidecode -t 1,15,23,32  #查看system所有信息,等价于dmidecode -t system

dmidecode支持的数字参数如下:

       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://t.zoukankan.com/badboy200800-p-12294029.html

 

posted on 2022-10-09 16:48  uTank  阅读(1245)  评论(0编辑  收藏  举报