免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2157 | 回复: 0

用dmidecode命令查看硬件信息 [复制链接]

论坛徽章:
0
发表于 2009-12-14 17:52 |显示全部楼层

DESCRIPTION
       dmidecode is a tool for dumping a computer’s DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system’s hardware components, as well as other useful pieces of information such as serial numbers and  BIOS revision. Thanks to this table, you can retrieve this information without having to probe for the actual hardware.  While this is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable.

       The DMI table doesn’t only describe what the system is currently made of, it also can report the possible evolutions (such as the fastest supported CPU or the maximal amount of memory supported).

       SMBIOS  stands  for System Management BIOS, while DMI stands for Desktop Management Interface. Both standards are tightly related and developed by the DMTF (Desktop Management Task Force).

       As you run it, dmidecode will try to locate the DMI table. If it succeeds, it will then parse this table and display  a  list  of records like this one:
       Handle 0x0002
           DMI type 2, 8 bytes.
           Base Board Information
               Manufacturer: Intel
               Product Name: C440GX+
               Version: 727281-001
       · A type. The SMBIOS specification defines different types of elements a computer can be made of. In this example, the type is 2,which means that the record contains "Base Board Information".
       · A  size.  Each  record  has  a 4-byte header (2 for the handle, 1 for the type, 1 for the size), the rest is used by the record data. This value doesn’t take text strings into account (these are placed at the end of the record), so the  actual  length  of the record may be (and is often) greater than the displayed value.
       · Decoded  values.  The  information presented of course depends on the type of record. Here, we learn about the board’s manufacturer, model, version and serial number.


如,查看物理CPU的个数:
dmidecode |grep -A1 Processor


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/101646/showart_2121110.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP