linux系统下使用dmidecode查看硬件设备信息
2013-12-30 16:19
681 查看
在linux系统环境下(CentOS 6.4和Ubuntu 12.04已确认),可以使用dmicode命令查看硬件设备的详细信息。
具体命令格式为:dmidecode -t typecode
其中typecode是设备类型代码,具体代码如下:
0 BIOS
1 System
2 Base Board
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
比如,
使用dmidecode -t 1 可以查看主板信息(制造商、型号、序列号等等)
使用dmidecode -t 4 可以查看CPU信息(CPU数目、型号、大小、频率等等)
使用dmidecode -t 17 可以查看内存信息(插槽数目、内存类型、大小、频率等等)
不过,貌似没法查看硬盘的信息。
硬盘的信息可以通过如下命令查看:
dmesg | grep sda 得到的信息比较少,只有总大小和block大小。
cat /proc/scsi/scsi 可以得到scsi控制器相关的信息
具体命令格式为:dmidecode -t typecode
其中typecode是设备类型代码,具体代码如下:
0 BIOS
1 System
2 Base Board
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
比如,
使用dmidecode -t 1 可以查看主板信息(制造商、型号、序列号等等)
使用dmidecode -t 4 可以查看CPU信息(CPU数目、型号、大小、频率等等)
使用dmidecode -t 17 可以查看内存信息(插槽数目、内存类型、大小、频率等等)
不过,貌似没法查看硬盘的信息。
硬盘的信息可以通过如下命令查看:
dmesg | grep sda 得到的信息比较少,只有总大小和block大小。
cat /proc/scsi/scsi 可以得到scsi控制器相关的信息
相关文章推荐
- linxu 系统 安装 使用Dmidecode命令,查看服务器硬件信息
- linux常用查看硬件设备和系统信息命令
- linxu 系统 安装 使用Dmidecode命令,查看服务器硬件信息
- 使用dmidecode命令查看linux系统的内存速度,制造商等信息
- linux系统查看硬件设备信息的多种方法
- 使用lshw工具查看linux的系统硬件信息
- linux 如何查看硬盘大小,内存大小等系统信息及硬件信息
- dmidecode查看linux硬件信息
- 常用Linux查看设备,系统信息命令
- Linux_查看系统或硬件信息
- linux查看硬件和系统信息的相关命令简介
- 查看Linux系统是否使用RAID阵列信息
- Linux 查看系统硬件信息(实例详解)
- Linux查看硬件信息以及驱动设备的命令
- Linux系统下查看USB设备名及使用USB设备
- 如何在Linux上使用命令行查看硬件信息
- Linux查看硬件信息以及驱动设备的命令
- linux常用查看硬件设备信息命令
- Linux 使用IPMI tool查看系统相关信息
- linux查看硬件和系统信息命令(转)