一、语法
dmidecode
二、选项
-d:(default:/dev/mem)从设备文件读取信息,输出内容与不加参数标准输出相同。
-h:显示帮助信息。
-s:只显示指定DMI字符串的信息。(string)
-t:只显示指定条目的信息。(type)
-u:显示未解码的原始条目内容。
--dump-bin file:将DMI数据转储到一个二进制文件中。
--from-dump FILE:从一个二进制文件读取DMI数据。
-V:显示版本信息。
三、常用命令
dmidecode -t baseboard=dmidecode -t 2 (查看主板设备信息)
dmidecode -t 16 (查看内存信息)
dmidecode|grep -P -A5 “Memory Device” |grep Size(查看内存分布)
dmidecode -t 4 (查看CPU物理信息)
dmidecode -t 1 = dmidecode -t system (较为常用,查看系统硬件信息)
dmidecode -q (查看BIOS相关的硬件信息;包含的信息很多)
dmidecode |grep “Serial Number” (服务器有关的各种SN号)
四、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://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.e1idc.net