Skip to content

The CLI — Reading the Fabric · Part 2 of 10

The device map — which commands live where

Building the model…

Every diagnostic command runs on one of four devices: GPU host, rail leaf switch, spine switch, or out-of-band management server. Rotate the cluster twin to map where each CLI lives.

This is the single most disorienting thing for network engineers coming from enterprise backgrounds. In a Cisco environment, you SSH into a switch and run commands on that switch. The switch is the authoritative source of information.

In an AI cluster, the information is distributed across multiple devices running different operating systems. Before you can run a command, you need to know which device to run it on.

Loading diagram…

Here is the complete map:

On the node ( OS, or Ubuntu with NVIDIA's drivers on OEM B300 servers) These commands run on the node itself, in a standard Linux shell after SSHing to its management address:

bash
ibstat                              # Every RDMA port: state, rate, link layer
rdma link show                      # One line per RDMA port: state and netdev
ethtool -S eth0                     # NIC port counters: per-priority pauses, discards, PHY errors
rdma statistic show link mlx5_0/1   # RDMA counters: ECN marks, CNPs, retransmissions
mlnx_qos -i eth0                    # NIC QoS: trust mode, PFC per priority
ibdiagnet                           # Full InfiniBand fabric sweep (IB fabrics only)

On the switch ( 5.x, ) These commands run after SSHing to the switch management IP:

bash
nv show interface                               # Every port: state, speed, MTU, LLDP neighbour
nv show interface swp1 link                     # One port: oper state, speed, protodown and its reason
nv show interface swp1 counters                 # Packets, errors and drops
nv show interface swp1 counters qos pfc-stats   # PFC pause frames and duration per switch priority
nv show interface swp1 qos pfc                  # Which priorities PFC protects on this port
nv show qos congestion-control default-global   # ECN thresholds per traffic class
nv show qos roce                                # The whole RoCE profile: trust, mapping, PFC, ECN

On the switch (NVOS on ) NVOS uses NVUE as well, with InfiniBand port names (sw<cage>p<port>):

bash
nv show interface                          # Every port: state, speed, logical and physical state
nv show interface sw1p1 link counters      # in-errors, in-symbol-errors, out-wait
nv show interface sw1p1 link phy-detail    # Per-lane raw BER and effective errors
nv show interface sw1p1 link diagnostics   # Why a port is down: status code and reason

Older Quantum-2 switches run , where the equivalents are show interfaces ib status and show interfaces ib 1/1.

In the ProDeploy simulator The simulator gives each device its own terminal session. Click the GPU node in the to open a green-prompt host session. Click a to open a blue-prompt Cumulus Linux session. Each session accepts the commands that device would accept — you cannot run nv show qos roce in the host terminal or ibstat in the switch terminal, just as you cannot on real hardware. Each lab enables the subset of commands its scenario needs; help in any terminal lists them.


Read aloudPage 2