ibtracert(8)
π ibtracert β ok bestie, let's trace an InfiniBand path
no cap, this is ibtracert(8), part of the Open IB Diagnostics crew π
it's the little tool that walks a whole InfiniBand path hop by hop and shows you every step, like a stalker but for fabric routing πΈ
β¨ SYNOPSIS β¨
ibtracert [options] [<lid|guid> [<startlid> [<endlid>]]]
π¦ DESCRIPTION π¦
so basically ibtracert sends out SMPs to trace the path from a source GID/LID to a destination GID/LID, okay?? every single hop along the way gets printed until you reach the destination or until some hop just... doesn't respond π (rude of it, honestly).
and here's the cute part: if you pass the -m option, you can do multicast path tracing between source and destination nodes instead. it's giving glow-up π«Ά
π OPTIONS π
-n,--no_infoβ simple format; don't show additional information. minimalism era, we love to see it β¨-mβ show the multicast trace of the specified mlid π₯-f,--forceβ force route to destination port. no negotiation, we're going π
π Addressing Flags π
-G,--Guidβ the address specified is a Port GUID-L,--Lidβ the address specified is a LID-s,--sm_port <smlid>β usesmlidas the target lid for SA queries.--ports-file <ports-file>β specify a ports file. this file contains multiple source and destination lid or guid pairs. see the FILES section, bestie π
π Port Selection flags π
-C,--Ca <ca_name>β use the specifiedca_name.-P,--Port <ca_port>β use the specifiedca_port.-Y,--pkey-idx <idx>β P_Key table index (0-65535, default0) used for the outgoing SA/GMP MADs. SMP (SMI directed-route/LID-routed) MADs always use P_Key index0. yes, always. periodt π
π§ Local port Selection π§
Multiple port / Multiple CA support, angel: when no IB device or port is specified (see the "local umad parameters" below π), the libibumad library picks the port for you using these criteria:
- the first port that is
ACTIVE. - if not found, the first port that is
UP(physical link up).
If a port and/or CA name is specified, the libibumad library tries to fulfill your request, and it will fail if that's not possible. sorry bestie π
For example:
ibaddr # use the first port (criteria #1 above)
ibaddr -C mthca1 # pick the best port from "mthca1" only.
ibaddr -P 2 # use the second (active/up) port from the first available IB device.
ibaddr -C mthca0 -P 2 # use the specified port only.
π Debugging flags π
-dβ raise the IB debugging level. May be used several times (-dddor-d -d -d). go feral π₯-eβ show send and receive errors (timeouts and others). the tea β-h,--helpβ show the usage message-v,--verboseβ increase the application verbosity level. May be used several times (-vvor-v -v -v). say it LOUDER π£-V,--versionβ show the version info.
π Configuration flags π
-t,--timeout <timeout_ms>β override the default timeout for the solicited mads.--node-name-map <node-name-map>β specify a node name map. this file maps GUIDs to more user friendly names. see the FILES section π-y,--m_key <key>β use the specified M_key for requests. if a non-numeric value (like'x') is specified then a value will be prompted for. spooky interactive moment π--config,-z <config_file>β specify alternate config file. default:/etc/infiniband-diags/ibdiag.conf
π FILES π
πΈ CONFIG FILE πΈ
/etc/infiniband-diags/ibdiag.conf
A global config file is provided to set some of the common options for all tools. See supplied config file for details. yes, one file to rule them all π
π NODE NAME MAP FILE FORMAT π
The node name map is used to specify user friendly names for nodes in the output. GUIDs are used to perform the lookup. iykyk π
This functionality is provided by the opensm-libs package. See opensm(8) for the file location for your installation.
Generically:
# comment
<guid> "<name>"
Example:
# IB1
# Line cards
0x0008f104003f125c "IB1 (Rack 11 slot 1 ) ISR9288/ISR9096 Voltaire sLB-24D"
0x0008f104003f125d "IB1 (Rack 11 slot 1 ) ISR9288/ISR9096 Voltaire sLB-24D"
0x0008f104003f10d2 "IB1 (Rack 11 slot 2 ) ISR9288/ISR9096 Voltaire sLB-24D"
0x0008f104003f10d3 "IB1 (Rack 11 slot 2 ) ISR9288/ISR9096 Voltaire sLB-24D"
0x0008f104003f10bf "IB1 (Rack 11 slot 12 ) ISR9288/ISR9096 Voltaire sLB-24D"
# Spines
0x0008f10400400e2d "IB1 (Rack 11 spine 1 ) ISR9288 Voltaire sFB-12D"
0x0008f10400400e2e "IB1 (Rack 11 spine 1 ) ISR9288 Voltaire sFB-12D"
0x0008f10400400e2f "IB1 (Rack 11 spine 1 ) ISR9288 Voltaire sFB-12D"
0x0008f10400400e31 "IB1 (Rack 11 spine 2 ) ISR9288 Voltaire sFB-12D"
0x0008f10400400e32 "IB1 (Rack 11 spine 2 ) ISR9288 Voltaire sFB-12D"
# GUID Node Name
0x0008f10400411a08 "SW1 (Rack 3) ISR9024 Voltaire 9024D"
0x0008f10400411a28 "SW2 (Rack 3) ISR9024 Voltaire 9024D"
0x0008f10400411a34 "SW3 (Rack 3) ISR9024 Voltaire 9024D"
0x0008f104004119d0 "SW4 (Rack 3) ISR9024 Voltaire 9024D"
π¦ PORTS FILE FORMAT π¦
The ports file can be used to specify multiple source and destination pairs. They can be lids or guids. If guids, use the -G option to indicate that. don't forget it, bestie, or it'll be confused π€
Generically:
# comment
<src> <dst>
Example:
73 207
203 657
531 101
> OR <
0x0008f104003f125c 0x0008f104003f133d
0x0008f1040011ab07 0x0008f104004265c0
0x0008f104007c5510 0x0008f1040099bb08
π₯ EXAMPLES π₯
Unicast examples:
ibtracert 4 16 # show path between lids 4 and 16
ibtracert -n 4 16 # same, but using simple output format
ibtracert -G 0x8f1040396522d 0x002c9000100d051 # use guid addresses
Multicast example:
ibtracert -m 0xc000 4 16 # show multicast path of mlid 0xc000 between lids 4 and 16
π SEE ALSO π
ibroute (8)
π«Ά AUTHOR π«Ά
Hal Rosenstock <<hal.rosenstock@gmail.com>>
Ira Weiny < <ira.weiny@intel.com> >
and that's the whole vibe check, bestie π this page is from Open IB Diagnostics, dated 2018-04-02, and it's ibtracert(8) β go trace something iconic π
π¦ where this page comes from
- arch rolling: rdma-core 65.0-1 Β· GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-MIT AND GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-FreeBSD AND GPL-2.0-or-later OR LicenseRef-Intel-BSD-3-Clause AND GPL-2.0-or-later OR LicenseRef-PathScale-BSD-Patent-License AND CC0-1.0 AND MIT AND BSD-2-Clause AND CPL-1.0 OR BSD-2-Clause OR GPL-2.0-or-later
- ubuntu stonking: infiniband-diags 64.0-1ubuntu1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms