What is the connectx-7 command to read the transceiver data?

To read transceiver (optics) data such as vendor name, part number, wavelength, or temperature from an NVIDIA ConnectX-7 Ethernet adapter, you can use the mlxlink or mlxconfig tools from the Mellanox/NVIDIA MLNX_OFED or NVIDIA Networking tools package.

🔹 1. Using mlxlink (preferred for transceiver info)

sudo mlxlink -d --port --show_media_info

sudo mlxlink -d /dev/mst/mt4125_pciconf0 --port 1 --show_media_info

This shows detailed optics/transceiver information:

  • Transceiver type (QSFP56, OSFP, etc.)
  • Vendor name and part number
  • Serial number
  • Connector type
  • Supported speeds
  • Module temperature, voltage, TX/RX power, etc.

To list available devices:

mst status

🔹 2. Using ethtool (basic optics data for Ethernet interfaces)

sudo ethtool -m

sudo ethtool -m ens5f0

Outputs (if supported):

  • Vendor, serial, wavelength
  • RX/TX bias, power, temperature

Note: Some ConnectX-7 drivers (esp. for OSFP/QSFP-DD) restrict access via ethtool, so mlxlink gives fuller info.

🔹 3. Using mlxconfig (for configuration and EEPROM access)
sudo mlxconfig -d q

sudo mlxconfig -d -e

mlxconfig is mostly for configuration (e.g., link speed, PCIe settings), not optics monitoring — use mlxlink for that purpose.

🔹 4. Example Output Snippet

MediaInfo:

Module: 400GBASE-DR4
Vendor: FINISAR CORP
Vendor PN: FTL410QE2C
Serial Number: FTL1234A0001
Temp: 36.23°C
Voltage: 3.31V
TX Power: 1.72 dBm
RX Power: 2.01 dBm


About the Author

Yogi

24 years of experience in various layers of software. Primarily experienced in system side software design and development on server management software. Interested in linux development in x86 and arm architecture.