We can use /sys/class/{nvme,net,infiniband}to find out the name of a devcie, e.g.
# readlink /sys/class/net/eth0/device
../../../0001:90:00.0
# readlink /sys/class/nvme/nvme0/device
../../../0001:8f:00.0
User story:
Monitoring detected a sustained increase in node_ethtool_received_crc_errors_phy on interface eth0 on node <node-name>. Suspected physical NIC or cable failure. Use node_pcidevice_info to map eth0 → PCI BDF. Find out the physical location of the BDF via the BMC, and produce a location report for hardware replacement.
We can use
/sys/class/{nvme,net,infiniband}to find out the name of a devcie, e.g.User story:
Monitoring detected a sustained increase in node_ethtool_received_crc_errors_phy on interface
eth0on node<node-name>. Suspected physical NIC or cable failure. Use node_pcidevice_info to mapeth0→ PCI BDF. Find out the physical location of the BDF via the BMC, and produce a location report for hardware replacement.