I recently inherited an Infiniband network containing multiple switches, and I know that one of these switches is running the subnet manager. The rest supposedly have that feature turned off, or were never enabled. The trouble is, I have no idea which one it is...
I'd like to replace the switch subnet manager with OpenSM running on a couple of my infrastructure servers. Is there any way, short of logging into each switch individually, to determine which switch is running the SM?
If your infrastructure servers can run OpenSM, they may also have the OFED stack utilities installed as well. If the commands are available,
ibstat
will tell you the SM's LID. Then use the LID insmpquery ND -L <LID>
to get the node description of the node running the SM.If you have an OFED installed in your system and the package
infiniband-diags
you can use the command sminfo to list running subnet managers in the Infiniband network:It will list all known subnet managers for that node and the master subnet manager.
If you reach your manager by IP address, you could look the ARP/MAC tables of your switches to find which IP address corresponds to your switch.