CodingBox Q&A Ask question

Reading SFP EEPROM from a QLogic FC HBA: qla2xxx exposes /sys/.../hostN/sfp

Asked Active Viewed 45 Original language: English
3

ethtool -m works for Ethernet NICs, but how can the SFP+ module EEPROM be read on a Fibre Channel adapter driven by qla2xxx, so that a transceiver inventory tool can cover FC HBAs too?

Comments 2

With qla2xxx, a binary sfp attribute can be exposed under the FC host's sysfs path, such as /sys/devices/pci.../host7/sfp. This is a different access path from Ethernet ethtool -m.

4 United StatesedgewolfUS Original (English)

Check whether that attribute exists for the actual adapter and driver, then rad and decode its bytes for inventory. The source requested inventory-tool integration and did not establish that every qla2xxx adapter exports a complete DOM map.

1 Mexicolaserops32MX Original (English)
Log in to comment. Log in