下面的示例是在 SuSE Enterprise Linux 中完成。
查看机器的硬件型号:
# dmesg | less #Scroll few lines and you should be able to find the hardware model [ 0.000000] DMI: HP ProLiant BL460c Gen9, BIOS I36 07/11/2014
或者我们可以执行以下命令
# dmesg | grep -i DMI [ 0.000000] DMI 2.8 present. [ 0.000000] DMI: HP ProLiant BL460c Gen9, BIOS I36 07/11/2014
以下命令将为我们提供有关硬件的更多信息,包括型号详细信息
# dmidecode -t system # dmidecode 2.12 SMBIOS 2.8 present. Handle 0x0009, DMI type 1, 27 bytes System Information bananafacturer: HP Product Name: ProLiant BL460c Gen9 Version: Not Specified Serial Number: SGH451XFL8 UUID: 37373633-3230-5347-4834-353158464C38 Wake-up Type: Power Switch SKU Number: 776320-B21 Family: ProLiant Handle 0x008B, DMI type 32, 11 bytes System Boot Information Status: No errors detected
我们也可以使用“hwinfo”命令,它将收集与硬件有关的所有信息并输出
# hwinfo | egrep "system.hardware.vendor|system.hardware.product" system.hardware.vendor = 'HP' system.hardware.product = 'ProLiant BL460c Gen9'
日期:2020-06-02 22:16:59 来源:oir作者:oir