Chinaunix首页 | 论坛 | 博客
  • 博客访问: 989328
  • 博文数量: 195
  • 博客积分: 4890
  • 博客等级: 上校
  • 技术积分: 2221
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-09 15:34
文章分类

全部博文(195)

文章存档

2014年(1)

2013年(8)

2012年(22)

2011年(9)

2010年(54)

2009年(101)

我的朋友

分类: LINUX

2009-08-12 11:12:02

HP硬盘报修需要的信息

执行dmidecode |grep Serial  查看Serial Number序列号 

                              Name  查看Product Name型号

                              ID       查看Product ID批号

 

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可以全面的显示bioscpu、内存等硬件信息。

 

查看主板的序列号

 

dmidecode | grep "Serial Number"

 

显示物理内存块数

 

dmidecode |grep -A16 "Memory Device$"

 

显示CPU信息

 

dmidecode |grep -A42 "Processor"|more

 

另外:

 

grep -An (An之间也可以有空格) 输出包含指定字符串的行及该行后续的n

 

dmidecode | grep "Serial Number"可以读出计算机的标示号,当然这只对正规品牌的机器有效,如DELLHP之类,取出的值和机器上贴的值是对应的,而类似清华同方之流的兼容机,基本上读不出任何有意义的数据。

阅读(772) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~