IBDIAGPATH(1)
๐ IBDIAGPATH(1) โ the IB diagnostic path page, bestie edition ๐
okay so this is the manual page for ibdiagpath, and it lives in the IB DIAGNOSTIC PACKAGE (that's the manual name, cutie, we're keeping it near the top like a little name tag ๐). pull up a chair, we're going on a journey โจ
โจ NAME โจ
ibdiagpath โ IB diagnostic path ๐
๐ธ SYNOPSYS ๐ธ
ibdiagpath
{-n <[src-name,]dst-name>|-l <[src-lid,]dst-lid>|-d <p1,p2,p3,...>}
[-c <count>] [-v] [-t <topo-file>] [-s <sys-name>] [-i <dev-index>]
[-p <port-num>] [-o <out-dir>] [-lw <1x|4x|12x>] [-ls <2.5|5|10>]
[-pm]
[-pc] [-P <<PM counter>=<Trash Limit>>]
(yes the indentation is chaotic, she's an icon, leave her alone ๐ซถ)
๐ฆ DESCRIPTION ๐ฆ
so ibdiagpath traces a path between two end-points and gives you the tea โ about the nodes and ports it walked through along the way. she uses device specific health queries for the different devices sitting along that traversed path. obsessed.
the way ibdiagpath operates depends on the addressing mode you used on the command line, no cap:
- if you're on directed route addressing, then the local node is the source node and the route to the destination port is known apriori (she already knows, she's psychic like that ๐ฎ).
- if you're on LID route (or by-name) addressing, then the source and destination ports of a route are specified by their LIDs (or by the names defined in the topology file). in this case, the actual path from the local port to the source port, and from the source port to the destination port, is defined by means of Subnet Management Linear Forwarding Table queries of the switch nodes along those paths. so lowkey, the path cannot be predicted as it may change. it's giving unpredictable main character energy ๐ญ
the tool also lets you omit the source node, in which case the local port on the machine running the tool is assumed to be the source. convenient fr fr.
Note: whenibdiagpathqueries for the performance counters along the path between the source and destination ports, it always traverses the LID route, even if a directed route is specified. and if along the LID route one or more links are not in the ACTIVE state,ibdiagpathreports an error. ๐
checks for path validity from partitions, IPoIB and QoS perspectives are also provided. multi-talented queen ๐
๐ the files she makes
ibdiagpath.logโ a dump of all the application reports generate according to the provided flags ๐๏ธibdiagnet.pmโ a dump of the pm Counters values, of the fabric links ๐๏ธ
๐ OPTIONS ๐
-n <[src-name,]dst-name>: names of the source and destination ports (as defined in the topology file; source may be omitted โ local port is assumed to be the source) ๐ธ-l <[src-lid,]dst-lid>: source and destination LIDs (source may be omitted โ local port is assumed to be the source) ๐ฆ-d <p1,p2,p3,...>: directed route from the local node (which is the source) and the destination node ๐งญ-c <count>: the minimal number of packets to be sent across each link (default =100) ๐ฆ-v: enable verbose mode (she will NOT stop talking and we love that for her) ๐ฃ๏ธ-t <topo-file>: specifies the topology file name ๐บ๏ธ-s <sys-name>: specifies the local system name. meaningful only if a topology file is specified โจ-i <dev-index>: specifies the index of the device of the port used to connect to the IB fabric (in case of multiple devices on the local system) ๐ข-p <port-num>: specifies the local device's port number used to connect to the IB fabric ๐-o <out-dir>: specifies the directory where the output files will be placed (default =/var/cache/ibutils) ๐-lw <1x|4x|12x>: specifies the expected link width ๐-ls <2.5|5|10>: specifies the expected link speed ๐๏ธ-pm: dump all the fabric links, pm Counters intoibdiagnet.pm๐-pc: reset all the fabric links pmCounters ๐-P <PM=<Trash>>: if any of the provided pm is greater then its provided value, print it to screen ๐จ-h|--help: prints the help page information ๐โโ๏ธ-V|--version: prints the version of the tool ๐ท๏ธ--vars: prints the tool's environment variables and their values ๐
๐ฅ ERROR CODES ๐ฅ
- The path traced is un-healthy ๐
- Failed to parse command line options ๐ต
- More then 64 hops are required for traversing the local port to the "Source" port and then to the "Destination" port. ๐
- Unable to traverse the LFT data from source to destination ๐ง
- Failed to use Topology File ๐
- Failed to load required Package ๐ฆ
and that's the whole page, bestie! this was IBDIAG 1.0, dated 2024-04-22, and honestly? iconic. go trace some paths, you got this ๐๐โจ
๐ฆ where this page comes from
- ubuntu noble: ibutils 1.5.7+0.2.gbd7e502-3build1
- ubuntu questing: ibutils 1.5.7+0.2.gbd7e502-3build1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms