商务合作加Q:411239339

linux中使用dmidecode查看硬件信息

浏览:351次阅读
没有评论

共计 2082 个字符,预计需要花费 6 分钟才能阅读完成。

在 linux 系统环境下,可以使用 dmicode 命令查看硬件设备的详细信息,我的系统是 CentOS 7,已经测试可以用。

具体命令格式为: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 可以查看内存信息 ( 插槽数目、内存类型、大小、频率等等)
 
硬盘信息的查看可以通过 smartctl -i /dev/sda
其中 /dev/sda 为硬盘,以下是我电脑中的硬盘信息:

smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-229.7.2.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.12
Device Model:     ST3500418AS
Serial Number:    6VM48CWM
LU WWN Device Id: 5 000c50 01875d710
Firmware Version: CC35
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Wed Jul 15 09:23:19 2015 CST

==> WARNING: A firmware update for this drive may be available,
see the following Seagate web pages:
http://knowledge.seagate.com/articles/en_US/FAQ/207931en
http://knowledge.seagate.com/articles/en_US/FAQ/213891en

SMART support is: Available - device has SMART capability.
SMART support is: Enabled

正文完
扫码赞助
post-qrcode
 0
果子
版权声明:本站原创文章,由 果子 于2015-07-15发表,共计2082字。
转载说明:除特殊说明外本站文章皆由果较瘦原创发布,转载请注明出处。
评论(没有评论)