如果希望查看服务器的名称,使用dmidecode 命令会让你感觉轻松很多
dmidecode | grep "Product"
×查看服务器的产品名称。
dmidecode |grep "Serial Number"
×查看服务器产品序列号。
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.
阅读(1644) | 评论(1) | 转发(0) |