Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
--> 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

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