I am trying to identify which Infiniband NIC's are connected to which switches, in a manner that is very similar to this question.
However, the solution proposed there is not working for Mellanox Infiniband switches, and I have not been able to find any alternatives.
Is there a standard way to query for an identifier for the Infiniband switch that a particular machine is connected to?