{"id":210,"date":"2011-02-23T17:04:32","date_gmt":"2011-02-23T09:04:32","guid":{"rendered":"http:\/\/www.ipcpu.com\/?p=210"},"modified":"2011-02-23T17:04:32","modified_gmt":"2011-02-23T09:04:32","slug":"linux-dmicode","status":"publish","type":"post","link":"https:\/\/c.ipcpu.com\/2011\/02\/linux-dmicode\/","title":{"rendered":"Linux\u5b66\u4e60\u7b14\u8bb0\u4e4bdmicode\u547d\u4ee4"},"content":{"rendered":"

dmidecode\u53ef\u4ee5\u8bfb\u51fa\u673a\u5668\u7684DMI(Desktop Management Interface)\u4fe1\u606f\u3002
\n\u8fd9\u4e9b\u4fe1\u606f\u5305\u62ec\u4e86\u786c\u4ef6\u4ee5\u53caBIOS\u3001\u7cfb\u7edf\u3001\u4e3b\u677f\u3001\u5904\u7406\u5668\u3001\u5185\u5b58\u3001\u7f13\u5b58\u7b49\u7b49\u3002
\ndmidecode\u5728\u5f88\u591aLinux\u4e0a\u662f\u9ed8\u8ba4\u5b89\u88c5\u7684\uff0c\u6bd4\u5982centos\u7b49\u3002
\n\u4f7f\u7528\u65b9\u6cd5\uff1a
\n#dmidecode
\n#dmidecode -t 1
\n\u4e0b\u9762\u662f\u7f51\u53cb\u603b\u7ed3\u7684\u4e00\u4e9b\u5e38\u7528\u65b9\u6cd5\uff0c\u5199\u5728\u524d\u9762\u65b9\u4fbf\u67e5\u627e\u3002
\n#\u67e5\u770b\u670d\u52a1\u5668\u578b\u53f7\uff1a
\ndmidecode |grep -A8 \"System Information\" |grep \"Product Name\"|sed 's\/^[ \\t]*\/\/'
\n#\u67e5\u770b\u786c\u4ef6\u7f16\u53f7\uff1a
\ndmidecode |grep -A8 \"System Information\" |grep \"Serial Number\" |sed 's\/^[ \\t]*\/\/'
\n#\u73b0\u6709\u5185\u5bb9\u6570\u91cf\u548c\u5bb9\u91cf\uff1a
\ndmidecode |grep -A16 \"Memory Device\" |grep \"Size\" |sed 's\/^[ \\t]*\/\/'
\n#\u6700\u5927\u652f\u6301\u5185\u5b58\u5bb9\u91cf\uff1a
\ndmidecode |grep \"Maximum Capacity\"\u00a0 |sed 's\/^[ \\t]*\/\/'
\n\u6ce8\u610fgrep -A\u7684\u7528\u6cd5
\n-A NUM, \u2013after-context=NUM
\n\u6253\u5370\u51fa\u7d27\u968f\u5339\u914d\u7684\u884c\u4e4b\u540e\u7684\u4e0b\u6587 NUM \u884c\u3002\u5728\u76f8\u90bb\u7684\u5339\u914d\u7ec4\u4e4b\u95f4\u5c06\u4f1a\u6253\u5370\u5185\u5bb9\u662f \u2014 \u7684\u4e00\u884c\u3002
\n\u4e0b\u9762\u4e3e\u51e0\u4e2a\u4f8b\u5b50\uff0c\u7531\u4e8e\u9ed8\u8ba4\u8f93\u51fa\u7684\u5185\u5bb9\u592a\u591a\uff0c\u8fd9\u91cc\u53ea\u6311\u51e0\u4e2a\u7c7b\u578b\u3002
\n#dmidecode -t 4
\nHandle 0x0400, DMI type 4, 40 bytes
\nProcessor Information
\nSocket Designation: CPU1
\nType: Central Processor
\nFamily: Xeon
\nManufacturer: Intel
\nID: 7A 06 01 00 FF FB EB BF
\nSignature: Type 0, Family 6, Model 23, Stepping 10
\nFlags:
\nFPU (Floating-point unit on-chip)
\nVME (Virtual mode extension)
\nDE (Debugging extension)
\nPSE (Page size extension)
\nTSC (Time stamp counter)
\nMSR (Model specific registers)
\nPAE (Physical address extension)
\nMCE (Machine check exception)
\nCX8 (CMPXCHG8 instruction supported)
\nAPIC (On-chip APIC hardware supported)
\nSEP (Fast system call)
\nMTRR (Memory type range registers)
\nPGE (Page global enable)
\nMCA (Machine check architecture)
\nCMOV (Conditional move instruction supported)
\nPAT (Page attribute table)
\nPSE-36 (36-bit page size extension)
\nCLFSH (CLFLUSH instruction supported)
\nDS (Debug store)
\nACPI (ACPI supported)
\nMMX (MMX technology supported)
\nFXSR (Fast floating-point save and restore)
\nSSE (Streaming SIMD extensions)
\nSSE2 (Streaming SIMD extensions 2)
\nSS (Self-snoop)
\nHTT (Hyper-threading technology)
\nTM (Thermal monitor supported)
\nPBE (Pending break enabled)
\nVersion: Intel(R) Xeon(R) CPU\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 E5420\u00a0 @ 2.50GHz
\nVoltage: 1.4 V
\nExternal Clock: 1333 MHz
\nMax Speed: 3600 MHz
\nCurrent Speed: 2500 MHz
\nStatus: Populated, Enabled
\nUpgrade: Socket LGA771
\nL1 Cache Handle: 0x0700
\nL2 Cache Handle: 0x0701
\nL3 Cache Handle: 0x0702
\nSerial Number: Not Specified
\nAsset Tag: Not Specified
\nPart Number: Not Specified
\nCore Count: 4 ###4\u4e2a\u6838
\nCore Enabled: 4
\nThread Count: 4
\nCharacteristics:
\n64-bit capable
\n\u6b64\u5904\u53ef\u4ee5\u67e5\u770bCPU\u4fe1\u606f
\n\u8fd9\u91cc\u7684\u4fe1\u606f\u4e0d\u80fd\u4f5c\u4e3a\u5224\u65adCPU\u6838\u5fc3\u6570\u3001\u4ee5\u53ca\u662f\u5426\u652f\u630164\u7684\u4f9d\u636e\uff0c\u76f8\u5173\u4fe1\u606f\u8bf7\u67e5\u770b\u672c\u7ad9\u5176\u4ed6\u6587\u7ae0\u3002
\n#dmidecode -t 1
\nHandle 0x0100, DMI type 1, 27 bytes
\nSystem Information
\nManufacturer: Dell Inc.
\nProduct Name: PowerEdge R710
\nVersion: Not Specified
\nSerial Number: G[\u6b64\u5904\u4fdd\u5bc6]
\nUUID: 44454C4C-[\u6b64\u5904\u4fdd\u5bc6]
\nWake-up Type: Power Switch
\nSKU Number: Not Specified
\nFamily: Not Specified
\n\u6b64\u5904\u4fe1\u606f\u6709\u673a\u5668\u578b\u53f7\u3001Serial Number \u5e8f\u5217\u53f7\u3001UUID\u7b49
\n#dmidecode -t 8
\nHandle 0x0808, DMI type 8, 9 bytes
\nPort Connector Information
\nInternal Reference Designator: USB Port
\nInternal Connector Type: Access Bus (USB)
\nExternal Reference Designator: Not Specified
\nExternal Connector Type: None
\nPort Type: USB
\nHandle 0x0809, DMI type 8, 9 bytes
\nPort Connector Information
\nInternal Reference Designator: Not Specified
\nInternal Connector Type: None
\nExternal Reference Designator: Not Specified
\nExternal Connector Type: RJ-45
\nPort Type: Network Port
\n\u6b64\u5904\u53ef\u4ee5\u67e5\u770b\u63a5\u53e3\u4fe1\u606f
\n#dmidecode -t 16
\nHandle 0x1000, DMI type 16, 15 bytes
\nPhysical Memory Array
\nLocation: System Board Or Motherboard
\nUse: System Memory
\nError Correction Type: Multi-bit ECC
\nMaximum Capacity: 65280 MB
\nError Information Handle: Not Provided
\nNumber Of Devices: 8
\n\u6b64\u5904\u53ef\u4ee5\u67e5\u770b\u4e3b\u677f\u652f\u6301\u6700\u5927\u5185\u5b58
\n#dmidecode -t 17
\nHandle 0x0035, DMI type 17, 27 bytes
\nMemory Device
\nArray Handle: 0x0031
\nError Information Handle: No Error
\nTotal Width: 72 bits
\nData Width: 64 bits
\nSize: 1024 MB
\nForm Factor: DIMM
\nSet: 2
\nLocator: DIMM2B
\nBank Locator: BANK2
\nType: DDR
\nType Detail: Synchronous
\nSpeed: 266 MHz (3.8 ns)
\nManufacturer:
\nSerial Number:
\nAsset Tag:
\nPart Number:
\n\u6b64\u5904\u53ef\u4ee5\u67e5\u770b\u5185\u5b58\u6761\u4fe1\u606f
\n\u9644\uff1admidecode\u7684\u7c7b\u578b\u4ee3\u7801\uff1a
\nType Information
\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014-
\n0 BIOS
\n1 System
\n2 Base Board
\n3 Chassis
\n4 Processor
\n5 Memory Controller
\n6 Memory Module
\n7 Cache
\n8 Port Connector
\n9 System Slots
\n10 On Board Devices
\n11 OEM Strings
\n12 System Configuration Options
\n13 BIOS Language
\n14 Group Associations
\n15 System Event Log
\n16 Physical Memory Array
\n17 Memory Device
\n18 32-bit Memory Error
\n19 Memory Array Mapped Address
\n20 Memory Device Mapped Address
\n21 Built-in Pointing Device
\n22 Portable Battery
\n23 System Reset
\n24 Hardware Security
\n25 System Power Controls
\n26 Voltage Probe
\n27 Cooling Device
\n28 Temperature Probe
\n29 Electrical Current Probe
\n30 Out-of-band Remote Access
\n31 Boot Integrity Services
\n32 System Boot
\n33 64-bit Memory Error
\n34 Management Device
\n35 Management Device Component
\n36 Management Device Threshold Data
\n37 Memory Channel
\n38 IPMI Device
\n39 Power Supply
\n40 Additional Information
\n41 Onboard Device
\n\u53c2\u8003\u8d44\u6599\uff1a
\nhttp:\/\/bbs.linuxtone.org\/thread-7560-1-1.html
\nhttp:\/\/linuxtoy.org\/archives\/dmidecode.html
\nhttp:\/\/huanxiangwu.com\/449\/linux-dmidecode<\/p>\n

\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def<\/a> » Linux\u5b66\u4e60\u7b14\u8bb0\u4e4bdmicode\u547d\u4ee4<\/a><\/p>","protected":false},"excerpt":{"rendered":"

dmidecode\u53ef\u4ee5\u8bfb\u51fa\u673a\u5668\u7684DMI(Desktop Management Interface)\u4fe1\u606f\u3002 \u8fd9\u4e9b\u4fe1\u606f\u5305\u62ec\u4e86\u786c\u4ef6\u4ee5\u53caBIOS\u3001\u7cfb\u7edf\u3001\u4e3b\u677f\u3001\u5904\u7406\u5668\u3001\u5185\u5b58\u3001\u7f13\u5b58\u7b49\u7b49\u3002 dmidecode\u5728\u5f88\u591aLinux\u4e0a\u662f\u9ed8\u8ba4\u5b89\u88c5\u7684\uff0c\u6bd4\u5982centos\u7b49\u3002 \u4f7f\u7528\u65b9\u6cd5\uff1a #dmidecode #dmidecode -t 1 \u4e0b\u9762\u662f\u7f51\u53cb\u603b\u7ed3\u7684\u4e00\u4e9b\u5e38\u7528\u65b9\u6cd5\uff0c\u5199\u5728\u524d\u9762\u65b9\u4fbf\u67e5\u627e\u3002 #\u67e5\u770b\u670d\u52a1\u5668\u578b\u53f7\uff1a dmidecode |grep -A8 “System Information” |grep “Product Name”|sed ‘s\/^[ \\t]*\/\/’ #\u67e5\u770b\u786c\u4ef6\u7f16\u53f7\uff1a dmidecode |grep -A8 “System Information” |grep “Serial Number” |sed ‘s\/^[ \\t]*\/\/’ #\u73b0\u6709\u5185\u5bb9\u6570\u91cf\u548c\u5bb9\u91cf\uff1a dmidecode |grep -A16 “Memory Device” |grep “Size” |sed ‘s\/^[ \\t]*\/\/’ #\u6700\u5927\u652f\u6301\u5185\u5b58\u5bb9\u91cf\uff1a dmidecode |grep “Maximum Capacity”\u00a0 |sed ‘s\/^[ \\t]*\/\/’ \u6ce8\u610fgrep -A\u7684\u7528\u6cd5 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[17],"_links":{"self":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/210"}],"collection":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/comments?post=210"}],"version-history":[{"count":0,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/210\/revisions"}],"wp:attachment":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/media?parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/categories?post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/tags?post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}