Linux下使用dmidecode查看服务器的详细的硬件配置

简介:

dmidecode可以查看服务器硬件的详细配置,下面是DMI的类型:

语法格式:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DB01:~  # dmidecode --help
 
Usage: dmidecode [OPTIONS]
 
Options are:
 
  -d, --dev-mem FILE     Read memory from device FILE (default:  /dev/mem )
 
  -h, --help             Display this help text and  exit
 
  -q, --quiet            Less verbose output
 
  -s, --string KEYWORD   Only display the value of the given DMI string
 
  -t, -- type  TYPE        Only display the entries of given  type
 
  -u, --dump             Do not decode the entries
 
  -V, --version          Display the version and  exit

 查看DMI的类型:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
DMI TYPES
        The SMBIOS specification defines the following DMI types:
        Type   Information
        ----------------------------------------
           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

查看BIOS信息:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
DB01:~  # dmidecode -t
dmidecode: option requires an argument --  't'
Type number or keyword expected
Valid  type  keywords are:
   bios
   system
   baseboard
   chassis
   processor
   memory
   cache
   connector
   slot
DB01:~  # dmidecode -t bios
# dmidecode 2.9
SMBIOS 2.5 present.
Handle 0x0000, DMI  type  0, 24 bytes
BIOS Information
         Vendor: HP
         Version: A15
         Release Date: 05 /02/2011
         Address: 0xF0000
         Runtime Size: 64 kB
         ROM Size: 4096 kB
         Characteristics:
                 PCI is supported
                 PNP is supported
                 BIOS is upgradeable
                 BIOS shadowing is allowed
                 ESCD support is available
                 Boot from CD is supported
                 Selectable boot is supported
                 EDD is supported
                 5.25" /360  KB floppy services are supported (int 13h)
                 5.25" /1 .2 MB floppy services are supported (int 13h)
                 3.5" /720  KB floppy services are supported (int 13h)
                 Print  screen  service is supported (int 5h)
                 8042 keyboard services are supported (int 9h)
                 Serial services are supported (int 14h)
                 Printer services are supported (int 17h)
                 CGA /mono  video services are supported (int 10h)
                 ACPI is supported
                 USB legacy is supported
                 BIOS boot specification is supported
                 Function key-initiated network boot is supported
                 Targeted content distribution is supported

查看系统信息:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DB01:~  # dmidecode -t system
# dmidecode 2.9
SMBIOS 2.5 present.
Handle 0x0100, DMI  type  1, 27 bytes
System Information
         Manufacturer: HP
         Product Name: ProLiant DL785 G5   
         Version: Not Specified
         Serial Number: SGH030XF4X      
         UUID: 414D3432-3341-5347-4830-333058463458
         Wake-up Type: Power Switch
         SKU Number: AM423A          
         Family: ProLiant
Handle 0x2000, DMI  type  32, 11 bytes
System Boot Information
         Status: No errors detected

查看CPU的信息:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
DYDMSDB01:~  # dmidecode -t processor
# dmidecode 2.9
SMBIOS 2.5 present.
Handle 0x0400, DMI  type  4, 40 bytes
Processor Information
         Socket Designation: Proc 1
         Type: Central Processor
         Family: Opteron
         Manufacturer: AMD
         ID: 42 0F 10 00 FF FB 8B 17
         Signature: Family 16, Model 4, Stepping 2
         Flags:
                 FPU (Floating-point unit on-chip)
                 VME (Virtual mode extension)
                 DE (Debugging extension)
                 PSE (Page size extension)
                 TSC (Time stamp counter)
                 MSR (Model specific registers)
                 PAE (Physical address extension)
                 MCE (Machine check exception)
                 CX8 (CMPXCHG8 instruction supported)
                 APIC (On-chip APIC hardware supported)
                 SEP (Fast system call)
                 MTRR (Memory  type  range registers)
                 PGE (Page global  enable )
                 MCA (Machine check architecture)
                 CMOV (Conditional move instruction supported)
                 PAT (Page attribute table)
                 PSE-36 (36-bit page size extension)
                 CLFSH (CLFLUSH instruction supported)
                 MMX (MMX technology supported)
                 FXSR (Fast floating-point save and restore)
                 SSE (Streaming SIMD extensions)
                 SSE2 (Streaming SIMD extensions 2)
                 HTT (Hyper-threading technology)
         Version: Not Specified
         Voltage: 1.4 V
         External Clock: Unknown
         Max Speed: 3000 MHz
         Current Speed: 2500 MHz
         Status: Populated, Enabled
         Upgrade: Other
         L1 Cache Handle: 0x0710
         L2 Cache Handle: 0x0720
         L3 Cache Handle: 0x0730
         Serial Number: Not Specified
         Asset Tag: Not Specified
         Part Number: Not Specified
         Core Count: 4
         Core Enabled: 4
         Thread Count: 4
         Characteristics:
                 64-bit capable
Handle 0x0401, DMI  type  4, 40 bytes
Processor Information
         Socket Designation: Proc 2
         Type: Central Processor
         Family: Opteron
         Manufacturer: AMD
         ID: 42 0F 10 00 FF FB 8B 17
         Signature: Family 16, Model 4, Stepping 2
         Flags:
                 FPU (Floating-point unit on-chip)
                 VME (Virtual mode extension)
                 DE (Debugging extension)
                 PSE (Page size extension)
                 TSC (Time stamp counter)
                 MSR (Model specific registers)
                 PAE (Physical address extension)
                 MCE (Machine check exception)
                 CX8 (CMPXCHG8 instruction supported)
                 APIC (On-chip APIC hardware supported)
                 SEP (Fast system call)
                 MTRR (Memory  type  range registers)
                 PGE (Page global  enable )
                 MCA (Machine check architecture)
                 CMOV (Conditional move instruction supported)
                 PAT (Page attribute table)
                 PSE-36 (36-bit page size extension)
                 CLFSH (CLFLUSH instruction supported)
                 MMX (MMX technology supported)
                 FXSR (Fast floating-point save and restore)
                 SSE (Streaming SIMD extensions)
                 SSE2 (Streaming SIMD extensions 2)
                 HTT (Hyper-threading technology)
         Version: Not Specified
         Voltage: 1.4 V
         External Clock: Unknown
         Max Speed: 3000 MHz
         Current Speed: 2500 MHz
         Status: Populated, Idle
         Upgrade: Other
         L1 Cache Handle: 0x0711
         L2 Cache Handle: 0x0721
         L3 Cache Handle: 0x0731
         Serial Number: Not Specified
         Asset Tag: Not Specified
         Part Number: Not Specified
         Core Count: 4
         Core Enabled: 4
         Thread Count: 4
         Characteristics:
                 64-bit capable

查看物理内存的信息:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
DB01:~  # dmidecode -t 16
# dmidecode 2.9
SMBIOS 2.5 present.
Handle 0x0000, DMI  type  0, 24 bytes
BIOS Information
         Vendor: HP
         Version: A15
         Release Date: 05 /02/2011
         Address: 0xF0000
         Runtime Size: 64 kB
         ROM Size: 4096 kB
         Characteristics:
                 PCI is supported
                 PNP is supported
                 BIOS is upgradeable
                 BIOS shadowing is allowed
                 ESCD support is available
                 Boot from CD is supported
                 Selectable boot is supported
                 EDD is supported
                 5.25" /360  KB floppy services are supported (int 13h)
                 5.25" /1 .2 MB floppy services are supported (int 13h)
                 3.5" /720  KB floppy services are supported (int 13h)
                 Print  screen  service is supported (int 5h)
                 8042 keyboard services are supported (int 9h)
                 Serial services are supported (int 14h)
                 Printer services are supported (int 17h)
                 CGA /mono  video services are supported (int 10h)
                 ACPI is supported
                 USB legacy is supported
                 BIOS boot specification is supported
                 Function key-initiated network boot is supported
                 Targeted content distribution is supported

其它硬件信息,也可以类似查看。这个命令结合dmesg去查看,收集的信息会比较全










本文转自 冰冻vs西瓜 51CTO博客,原文链接:http://blog.51cto.com/molewan/1674982,如需转载请自行联系原作者
目录
相关文章
|
1天前
|
Linux
如何将一个linux服务器挂载到另外一个linux服务器上
如何将一个linux服务器挂载到另外一个linux服务器上
13 1
|
1天前
|
Oracle Java 关系型数据库
Linux环境安装配置JDK11
Linux环境安装配置JDK11
16 0
|
1天前
|
Ubuntu Linux
Linux(Ubuntu)系统临时IP以及静态IP配置(关闭、启动网卡等操作)
请注意,以上步骤是在临时基础上进行配置的。如果要永久保存静态IP地址,通常还需要修改 `/etc/network/interfaces`文件,以便在系统重启后保持配置。同时,确保备份相关配置文件以防止出现问题。
12 1
|
2天前
|
监控 Linux 网络安全
Linux服务器如何查询连接服务器的IP
【4月更文挑战第15天】Linux服务器如何查询连接服务器的IP
9 1
|
3天前
|
监控 安全 Linux
Linux系统之安装ServerBee服务器监控工具
【4月更文挑战第22天】Linux系统之安装ServerBee服务器监控工具
41 2
|
3天前
|
Ubuntu Linux 测试技术
Linux(32)Rockchip RK3568 Ubuntu22.04上部署 Docker: 详细配置与功能测试(下)
Linux(32)Rockchip RK3568 Ubuntu22.04上部署 Docker: 详细配置与功能测试
35 1
|
3天前
|
运维 网络协议 Linux
Linux(28) Linux双网卡配置为连接到Linux主机的PC提供外网访问
Linux(28) Linux双网卡配置为连接到Linux主机的PC提供外网访问
31 1
|
4天前
|
Ubuntu 网络协议 Linux
Linux(20) Ubuntu 20.04 网络接口自动切换路由配置
Linux(20) Ubuntu 20.04 网络接口自动切换路由配置
27 0
|
4天前
|
Linux
Linux(9)Debain EC25 quectel-CM usbnet0开机自动联网配置
Linux(9)Debain EC25 quectel-CM usbnet0开机自动联网配置
15 0
|
7天前
|
网络协议 安全 Linux
IDEA通过内网穿透实现固定公网地址远程SSH连接本地Linux服务器
IDEA通过内网穿透实现固定公网地址远程SSH连接本地Linux服务器