IBSWITCHES(8)
β¨ IBSWITCHES β bestie edition β¨
okay so real talk, this is the ibswitches(8) page from the OpenIB Diagnostics fam, and it is literally just here to show you the switch nodes in your InfiniBand topology. no cap.
π NAME
ibswitches β show InfiniBand switch nodes in topology π¦
πΈ SYNOPSIS
ibswitches [options] [<topology-file>]
π DESCRIPTION
ibswitches is a script (yes, a script, she's humble) that does one of two things: either she goes out and walks the IB subnet topology herself, or she takes a topology file you already saved forever ago and just extracts the switch nodes from it. either way, she's serving you the switches. periodt.
β¨ OPTIONS β¨
-C,--Caca_name β use the specified ca_name. pick your CA, babe π-P,--Portca_port β use the specified ca_port.-t,--timeouttimeout_ms β override the default timeout for the solicited mads. (she was gonna wait a normal amount of time, but you get to decide π)-y,--m_keykey β use the specified M_key for requests. and hear me out: if you give a non-numeric value (likex) then a value will be prompted for. it's giving "we'll ask you bestie" β¨-h,--helpβ show the usage message π«Ά--config,-zconfig_file β specify an alternate config file.- Default:
/etc/infiniband-diags/ibdiag.conf
- Default:
π Local port Selection π
Multiple port / Multiple CA support: when no IB device or port is specified (peep the "local umad parameters" situation below), the libibumad library picks the port to use by these criteria, in this exact order:
- 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 attempts to fulfill the user request, and will fail if it is not possible. no fallback, no mercy, she said what she said π
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.
π FILES
π CONFIG FILE
/etc/infiniband-diags/ibdiag.conf
a global config file is provided so you can set some of the common options for all the tools at once. see the supplied config file for details π
π§ NODE NAME MAP FILE FORMAT
the node name map is what lets you give user friendly names to 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"
π SEE ALSO
π DEPENDENCIES
ibnetdiscoveribnetdiscover format
π AUTHOR
Hal Rosenstock
< <halr@voltaire.com> >
okay that's the whole page bestie, you ate that π
the source is OpenIB Diagnostics, dated 2016-12-20, and it lives at the corner of IBSWITCHES(8) and slay. no cap, fr fr πβ¨
π¦ 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