Which command shows the local HCA port state?
Why D is the answer
ibstat
ibstat reports local ports.
In detail
- ibstat reports local ports.
- It reports local ports.
Use case
An illustrative scenario, not a real incident.
An engineer runs ibstat on a host to see its port state.
See it in different ways
flowchart TD
A{"What do you want to know?"} -->|"Local port state"| B["ibstat"]
A -->|"Which nodes exist"| C["ibnodes"]
A -->|"Link details"| D["iblinkinfo"]
A -->|"Fabric errors"| E["ibdiagnet"]
A -->|"RDMA speed"| F["ib_write_bw and ib_write_lat"]stateDiagram-v2 [*] --> LocalPort: ibstat LocalPort --> Fabric: ibnodes and iblinkinfo Fabric --> Errors: ibdiagnet Errors --> Path: ibping Path --> Speed: ib_write_bw and ib_write_lat Speed --> [*]
flowchart LR S0["Run ibstat"] --> S1["Read state"] --> S2["Read rate"]
Key point: ibstat shows local ports.
Why the other options are wrong
- A. ibnodes
- That lists fabric nodes.
- B. ib_write_lat
- That measures latency.
- C. nv config diff
- That is for Cumulus.

