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天前
|
运维 监控 安全
2023年最详细的:本地Linux服务器安装宝塔面板,并内网穿透实现公网远程登录
2023年最详细的:本地Linux服务器安装宝塔面板,并内网穿透实现公网远程登录
|
1天前
|
Unix Shell Linux
在 Linux 上把 Vim 配置为默认编辑器
在 Linux 上把 Vim 配置为默认编辑器
|
2天前
|
存储 Web App开发 Ubuntu
整理16款适用于较旧低配置电脑的最佳Linux发行版
在本指南中,趣云笔记(https://www.ecscoupon.com/)介绍了一些最好的Linux发行版,你可以将它们安装在旧PC上并为其注入新的活力。
16 0
|
2天前
|
Linux 数据安全/隐私保护
Linux 读写权限的配置
Linux 读写权限的配置
8 0
|
3天前
|
Linux 网络安全 数据库
linux centos系统搭建samba文件服务器 NetBIOS解析 (超详细)
linux centos系统搭建samba文件服务器 NetBIOS解析 (超详细)
|
3天前
|
域名解析 存储 缓存
Linux中搭建DNS 域名解析服务器(详细版)
Linux中搭建DNS 域名解析服务器(详细版)
|
3天前
|
安全 Linux 网络安全
Linux _ apache服务器部署 不同域名—访问不同网站(多网站)
Linux _ apache服务器部署 不同域名—访问不同网站(多网站)
|
弹性计算 运维 监控
ECS使用与Linux环境搭建
本文主要记录ECS使用中,安全组配置,Linux下生成环境搭建等。
ECS使用与Linux环境搭建
|
8天前
|
存储 弹性计算 固态存储
阿里云服务器CPU内存配置详细指南,如何选择合适云服务器配置?
阿里云服务器配置选择涉及CPU、内存、公网带宽和磁盘。个人开发者或中小企业推荐使用轻量应用服务器或ECS经济型e实例,如2核2G3M配置,适合低流量网站。企业用户则应选择企业级独享型ECS,如通用算力型u1、计算型c7或通用型g7,至少2核4G配置,公网带宽建议5M,系统盘可选SSD或ESSD云盘。选择时考虑实际应用需求和性能稳定性。
109 6
|
10天前
|
域名解析 弹性计算 Linux
阿里云购买云服务器、注册域名、备案及绑定图文教程参考
本文为大家介绍了2024年购买阿里云服务器和注册域名,绑定以及备案的教程,适合需要在阿里云购买云服务器、注册域名并备案的用户参考,新手用户可通过此文您了解在从购买云服务器到完成备案的流程。
阿里云购买云服务器、注册域名、备案及绑定图文教程参考