查询PCIe设备厂商信息
通过PCIe设备的描述信息进行查询
PCIe设备的描述:Class号、厂商号(vender id)、设备号(device id).
通过PCIe设备的描述查询PCI设备具体信息的网站:http://pci-ids.ucw.cz/
Linux
1、操作系统查看一个网卡的PCI描述信息。
[root@inode-28 ~]# ethtool -i eth0
driver: igb
version: 5.2.9.4
firmware-version: 1.63, 0x800009fa
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: no
[root@inode-28 ~]# lspci -n -s 01:00.0
01:00.0 0200: 8086:1521 (rev 01)
[root@inode-28 ~]#
2、PCI官网查看0200: 8086:1521对应的意思如下;
那么其中0200对应Class 8086对应厂商号、1521对应设备号。
其中02为network controller、00为ethernet controller。
ESXi
1、ESXI系统下查看raid卡的PCI描述如下:
0106为Class号、8086为厂商号、8d02为设备号。
[root@esxi-37:~] lspci -v |grep "Class 0106" -B 1
0000:00:11.4 SATA controller Mass storage controller: Intel Corporation Wellsburg AHCI Controller [vmhba0]
Class 0106: 8086:8d62
--
0000:00:1f.2 SATA controller Mass storage controller: Intel Corporation Wellsburg AHCI Controller [vmhba1]
Class 0106: 8086:8d02
[root@esxi-37:~]
2、PCI官网查看0106: 8086:8d02对应意思。0106为mass storage controller--sata controller。
查询PCIe设备的Link width
Linux
# lspci -s 5a:00.0 -vvv |egrep -i "5a:00.0|LnkSta"
5a:00.0 Ethernet controller: Intel Corporation Ethernet Connection X722 for 10GbE SFP+ (rev 09)
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
ESXi
[root@localhost:~] smbiosDump |egrep -i "slot|Bus Width"
System Slot (Type 9): #226
Designation: "Slot 5"
Bus Width: 0x0d (x16)
Slot ID: 5
System Slot (Type 9): #227
Designation: "Slot 6"
Bus Width: 0x0d (x16)
Slot ID: 6
System Slot (Type 9): #228
Designation: "Slot 4"
Bus Width: 0x0b (x8)
Slot ID: 4
System Slot (Type 9): #229
Designation: "Slot 7 RAID"
Bus Width: 0x0b (x8)
Slot ID: 7
System Slot (Type 9): #230
Designation: "Slot 8 M.2"
Bus Width: 0x09 (x2)
Slot ID: 8
说明:ESXi 下的smbiosDump命令类似于linux系统下的dmidecode命令,所以该日志记录的bus width应是post过程记录的,非实时信息。