IBADDR(8)
β¨ IBADDR β¨
okay bestie, welcome to ibaddr from the OpenIB Diagnostics crew π
this is your little address-resolver baddie for InfiniBand, and honestly? iconic.
π NAME π
IBADDR β query InfiniBand address(es). that's it. that's the whole vibe. πΈ
π¦ SYNOPSIS π¦
ibaddr [options]
π DESCRIPTION π
so what does she do? she displays the lid (and the range) plus the GID address of the port you point at β and you can point at it by DR path, by lid, or by GUID β or, if you're feeling low-effort (we love that), she just does the local port by default. no thoughts, just vibes. π§
π‘ Note: this utility can be used as a simple address resolver. like, that's her whole job and she's the main character about it.
β¨ OPTIONS β¨
--gid_show,-gβ show gid address only. gid and nothing else, she's monogamous π--lid_show,-lβ show lid range only.--Lid_show,-Lβ show lid range (in decimal) only. yes the capital L is a different flag, they are sisters not twins π
π Addressing Flags π
-D,--Directβ the address you specified is a directed route. very "I know exactly where I'm going" of you.
Examples:
[options] -D [options] "0" # self port
[options] -D [options] "0,1,2,1,4" # out via port 1, then 2, ...
β οΈ Note the second number in the path specified must match the port being used. This can be specified using the port selection flag -P or the port found through the automatic selection process. don't skip this bestie, she will not be happy π
-G,--Guidβ the address you specified is a Port GUID.-s,--sm_port <smlid>β usesmlidas the target lid for SA queries.
π Debugging flags π
-dβ raise the IB debugging level. May be used several times (-dddor-d -d -d). go off, stack them.-eβ show send and receive errors (timeouts and others). the receipts π§Ύ-h,--helpβ show the usage message.-v,--verboseβ increase the application verbosity level. May be used several times (-vvor-v -v -v). she will NOT stop talking and we respect her for it.-V,--versionβ show the version info.
π 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. periodt. no exceptions, she's very firm about this one.
πΈ Local port Selection πΈ
Multiple port/Multiple CA support: when no IB device or port is specified (see the "local umad parameters" below), the libibumad library selects the port to use by the following 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 attempts to fulfill the user request, and will fail if it is not possible. (she tried her best, okay π)
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.
β Configuration flags β
-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. she's asking nicely π₯Ί-t,--timeout <timeout_ms>β override the default timeout for the solicited mads.--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. (iykyk, go read it π)
π₯ EXAMPLES π₯
ibaddr # local port\'s address
ibaddr 32 # show lid range and gid of lid 32
ibaddr -G 0x8f1040023 # same but using guid address
ibaddr -l 32 # show lid range only
ibaddr -L 32 # show decimal lid range only
ibaddr -g 32 # show gid address only
look at her go π she ate and left no crumbs.
π SEE ALSO π
ibroute (8), ibtracert (8) β go say hi besties, they're all in the same group chat.
π AUTHOR π
Hal Rosenstock < <halr@voltaire.com> >
and that's the whole page, sweetie β¨ this was dropped on 2013-10-11 by the OpenIB Diagnostics girlies β mwah, drink water, and always double check your DR path ππ¦π
π¦ 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