HowTo Find the SM node

Use the sminfo command to locate the SM node LID, and query the node via that LID.

For example:

--> Get the LID info $ sudo sminfo -C mlx5_0 sminfo: sm lid 1 sm guid 0x98039b03009fd0ae, activity count 16166942 priority 14 state 3 SMINFO_MASTER --> Use LID=1 to the get the SM node info $ sudo smpquery nd 1 -C mlx5_0 Node Description:......................sm02 HCA-1 --> SM node is "sm02"

 

or you can mix them together in one simple script

$sudo smpquery nd `sudo sminfo -C mlx5_0 | awk '{print $4}'` -C mlx5_0 Node Description:......................sm02 HCA-1

Â