分类: 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可以全面的显示bios、cpu、内存等硬件信息。
查看主板的序列号
dmidecode | grep "Serial Number"
显示物理内存块数
dmidecode |grep -A16 "Memory Device$"
显示CPU信息
dmidecode |grep -A42 "Processor"|more
另外:
grep -An (A和n之间也可以有空格) 输出包含指定字符串的行及该行后续的n行
dmidecode | grep "Serial Number"可以读出计算机的标示号,当然这只对正规品牌的机器有效,如DELL、HP之类,取出的值和机器上贴的值是对应的,而类似清华同方之流的兼容机,基本上读不出任何有意义的数据。