Q: 11
[InfiniBand Troubleshooting]
You are troubleshooting an InfiniBand network issue and need to check the status of the InfiniBand
interfaces. Which command should you use to display the state, physical state, and link layer of
InfiniBand interfaces?
Options
Discussion
Does the question specify if "mlx5_X" is just an example, or are we supposed to check all InfiniBand devices? If it wants "the best" option for checking multiple interfaces at once, maybe B could be tempting, but D directly shows state and link info per interface.
C vs D, since ibnodes can give device node info too, but I think only D (ibstat -d mlx5_X) actually shows all three: state, phys state, link layer. Unless the question really wants device node details instead of status fields-then C could be a trick. Anybody actually checked what ibnodes outputs in latest driver?
D imo, that's the only one that gives you all three details (state, physical state, link layer) in one go.
B tbh, because /proc/net/ib/device has info about the interfaces too and you can grep for states there. Not sure if that's detailed enough though. Anyone else tried B in real setups?
D
Be respectful. No spam.