新聞中心
dmidecode允許你在Linux系統(tǒng)下獲取有關(guān)硬件方面的信息。dmidecode遵循SMBIOS/DMI標(biāo)準(zhǔn),其輸出的信息包括BIOS、系統(tǒng)、主板、處理器、內(nèi)存、緩存等等。

在新河等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強發(fā)展的系統(tǒng)性、市場前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站建設(shè)、網(wǎng)站建設(shè) 網(wǎng)站設(shè)計制作按需搭建網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),成都品牌網(wǎng)站建設(shè),成都營銷網(wǎng)站建設(shè),外貿(mào)網(wǎng)站建設(shè),新河網(wǎng)站建設(shè)費用合理。
理解dmidecode輸出的信息
運行dmidecode命令之后,屏幕會輸出大量記錄,可以使用less分頁查看,每個記錄有4個不同的值:
-
Handle: 標(biāo)識符號
-
DMI type: DMI類型,下圖中類型為0,指的是BIOS信息。
-
占用的大小: 指的是這條記錄占用的大小
-
解碼值: 關(guān)于記錄類型的信息。下圖中,顯示BIOS的廠商名、版本號、發(fā)布日期等信息。
運行如下命令:
[root@localhost ~]# dmidecode | less
dmidecode命令中DMI類型列表
SMBIOS規(guī)范定義了以下DMI類型:
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
輸出時可以使用關(guān)鍵字來代替數(shù)字形式的類型。需要添加–type參數(shù)。
Keyword Types
──────────────────────────────
bios 0, 13
system 1, 12, 15, 23, 32
baseboard 2, 10, 41
chassis 3
processor 4
memory 5, 6, 16, 17
cache 7
connector 8
slot 9
使用類型id和關(guān)鍵字顯示硬件信息
顯示bios的信息:
[root@localhost ~]# dmidecode -t bios
或者
[root@localhost ~]# dmidecode -t 0,13
輸出主板信息
[root@localhost ~]# dmidecode -t baseboard
顯示安裝的物理內(nèi)存
顯示有關(guān)已安裝物理內(nèi)存(RAM)的信息,請運行以下命令:
[~] # dmidecode -t 17
顯示我的物理機安裝了兩條DDR3的內(nèi)存,每根內(nèi)存條的容量為4GB等信息。
使用下面類型查看機器支持最大物理內(nèi)存是多少:
[~] # dmidecode -t 16
顯示cpu相關(guān)的信息
[~] # dmidecode -t processor
本文名稱:Linuxdmidecode命令使用實例
文章來源:http://fisionsoft.com.cn/article/ccdscdd.html


咨詢
建站咨詢
