smbiosview - 找不到命令

问题描述 投票:0回答:1

我安装了RHEL 7.5。我正在尝试使用“smbiosview”命令获取pci卡信息。但它说的是“找不到命令”

[root@myhost ~]# smbiosview -t 202
bash: smbiosview: command not found...

我试过“dmidecode命令”,但它不包含完整的信息

[root@myhost ~]# dmidecode -t 202
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 3.2.1 present.
# SMBIOS implementations newer than version 3.1.1 are not
# fully supported by this version of dmidecode.

如何让它工作?我需要安装任何软件包吗?

bios rhel7
1个回答
0
投票

dmidecode应该为您提供所需的一切,因为SMBIOS表和DMI表基本相同。 dmidecode没有提供哪些信息?

使用dmidecode,您可以将原始SMBIOS表转储到文件中并使用以下方法自行解码:

$ sudo dmidecode --dump-bin dmi.bin

这将为您提供原始SMBIOS结构,类似这样(我的SMBIOS表的第一个64B):

00000000   5F 53 4D 5F  BF 1F 02 05  BD 00 00 00  00 00 00 00  _SM_............
00000010   5F 44 4D 49  5F FE CB 0B  20 00 00 00  4F 00 25 00  _DMI_... ...O.%.
00000020   00 18 00 00  01 02 00 F0  03 1F 90 DE  8B 7F 01 00  ................
00000030   00 00 33 05  08 0F FF FF  41 6D 65 72  69 63 61 6E  ..3.....American
00000040   20 4D 65 67  61 74 72 65  6E 64 73 20  49 6E 63 2E   Megatrends Inc.

在偏移量0x0处,您会看到_SM_,SMBIOS锚点字符串,在偏移量0x10处,您会发现_DMI_(DMI锚点字符串)也与16字节边界对齐以支持旧版搜索工具。接下来是SMBIOS表中的原始数据。您可以使用SMBIOS规范解码此表,找到here (SMBIOS Reference Specification, version 3.2.0

© www.soinside.com 2019 - 2024. All rights reserved.