K1 Power Linux上lshw与X86 dmidecode对比
简介
命令dmidecode能够获得底层硬件信息,但是dmidecode强依赖于intel的CPU。这使得在K1 PowerLinux dmidecode上不可用。
在K1 Power Linux上使用lshw命令,获得硬件信息供运维人员使用。这边文章主要介绍和对比两个命令。
dmidecode命令
dmidecode包括类型有bios, system, baseboard, chassis, processor, memory, cache, connector, slot。dmi是Desktop Management Interface的缩写,是由DMTF创建用来自动化管理系统。Management Information Forma(MIF)是一个文本文件,包含硬件和软件的特定信息。
root@DB112:~$ dmidecode --help
Usage: dmidecode [OPTIONS]
Options are:
-d, --dev-mem FILE Read memory from device FILE (default: /dev/mem)
-h, --help Display this help text and exit
-q, --quiet Less verbose