用lspci命令获得硬件制造商(vendor)的制造商代码和hca卡插在了哪个插槽中

来源:互联网 发布:一个程序员的奋斗史38 编辑:程序博客网 时间:2024/06/10 00:38
[root@rac1 q]# lspci -nn | grep -i mella02:00.0 Network controller [0280]: Mellanox Technologies MT27500 Family [ConnectX-3] [15b3:1003]--->15b3是16进制,是Mellanox的制造商代码[root@rac1 q]# lspci -nn | grep -i ethernet03:00.0 Ethernet controller [0200]: Intel Corporation I350 Gigabit Network Connection [8086:1521] (rev 01)--->8086是16进制,是intel的制造商代码.03:00.1 Ethernet controller [0200]: Intel Corporation I350 Gigabit Network Connection [8086:1521] (rev 01) --->8086是16进制,是intel的制造商代码.[root@rac1 q]# 

至于上面结果中的第一行第一列:02:00.0是slot name或者说slot number,见下:

[root@rac1 q]# lspci -vmm截取一段:Slot:02:00.0Class:Network controllerVendor:Mellanox TechnologiesDevice:MT27500 Family [ConnectX-3]SVendor:Mellanox TechnologiesSDevice:Device 0050PhySlot:3 

注意:  PhySlot              The physical slot where the device resides (optional, Linux only).

值得说明的是:主板上的pci接口的旁边都印有PCI1,PCI2等等字样,以表明PCI插槽的物理位置.
0 0