Is there a way to show what SFP adapters are installed without pulling them from the card?

I currently have ConnectX-2 cards installed on my servers with SFP adapters installed. I would like to query the SFPs and find out what they are without pulling them from the machines.

The servers are running Ubuntu and ethtool does not report any information about the SFPs. Is there a tool or command that I can use to obtain this information?


There isn’t a tool for that as far as I know if the NIC runs on ethernet. if it is running on IB you can use the latest ibdiagnet tool that comes from ibutils2 and use the flag --get_cable_info