免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1142 | 回复: 0
打印 上一主题 下一主题

linux 查看硬件信息 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-01 13:39 |只看该作者 |倒序浏览
   
dmidecode

近来需要读取硬件信息,尤其是主板信息,但在Linux如何获取呢,搜了一下,
http://bbs.chinaunix.net/forum/viewtopic.php?p=4080540
这个帖子蛮好的,介绍了dmidecode    的使用,下面转上面一段英文好了:
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.
我试了试,dmidecode的确挺不错的,基本上把能读的硬件信息都读出来了,
另外
/usr/sbin/dmidecode | grep "Serial Number"
可以读出计算机的标示号,当然这只对正规品牌的机器有效,如DELL、HP之类,取出的值和机器上贴的值是对应的,而类似清华同方之流的兼容机,基本上读不出任何有意义的数据
               
               
               

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP