IBPING(8)

πŸ’– IBPING β€” ping an InfiniBand address πŸ’–

okay bestie, so the manual name is IBPING (it lives in section 8, the big-girl admin section, iykyk) and it's part of Open IB Diagnostics πŸ¦‹ she's from 2012-05-14 and yes she still ate.


✨ SYNOPSIS ✨

ibping [options] <dest lid | guid>

🌸 DESCRIPTION 🌸

so ibping uses vendor mads to validate connectivity between IB nodes πŸ’… like it's literally checking "hey can these two talk to each other" and it does it with vendor mads, no cap.

on exit, you get (IP) ping like output β€” yep, it's giving classic ping energy but for IB πŸŽ€

and here's the whole vibe: ibping runs as client/server. default is to run as a client. also bestie, note that a default ping server is implemented within the kernel πŸ‘‘ so the kernel already has your back.


πŸ’… OPTIONS πŸ’…

  • -c, --count β€” stop after count packets. like, we're done here, no more πŸ›‘
  • -f, --flood β€” flood destination: send packets back to back without delay πŸ”₯ full send, zero chill
  • -o, --oui β€” use specified OUI number to multiplex vendor mads
  • -S, --Server β€” start in server mode (do not return). you become the server, main character energy, and you do NOT come back πŸ™ˆ

πŸŽ€ Addressing Flags πŸŽ€

  • -L, --Lid β€” The address specified is a LID
  • -G, --Guid β€” The address specified is a Port GUID
  • -s, --sm_port <smlid> β€” use smlid as the target lid for SA queries.

🌈 Port Selection flags 🌈

  • -C, --Ca <ca_name> β€” use the specified ca_name.
  • -P, --Port <ca_port> β€” use the specified ca_port.
  • -Y, --pkey-idx <idx> β€” P_Key table index (0-65535, default 0) used for the outgoing SA/GMP MADs. SMP (SMI directed-route/LID-routed) MADs always use P_Key index 0. ⭐ so like, this one's got rules, respect the rules bestie.

πŸ’œ Local port Selection πŸ’œ

Multiple port/Multiple CA support, aka the "which one of u am I talking to" situation: 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:

  1. the first port that is ACTIVE.
  2. 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 negotiating.

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 πŸ¦‹

  • --config, -z <config_file> β€” Specify alternate config file. Default: /etc/infiniband-diags/ibdiag.conf
  • -t, --timeout <timeout_ms> β€” override the default timeout for the solicited mads.

πŸ™ˆ Debugging flags πŸ™ˆ

  • -h, --help β€” show the usage message
  • -d β€” raise the IB debugging level. May be used several times (-ddd or -d -d -d). stack it like a true queen πŸ‘‘
  • -e β€” show send and receive errors (timeouts and others)
  • -v, --verbose β€” increase the application verbosity level. May be used several times (-vv or -v -v -v)
  • -V, --version β€” show the version info.

πŸ“ 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. πŸ‘€ go read it, it's short, it's cute, it explains itself.


πŸ’– AUTHOR πŸ’–

Hal Rosenstock < <halr@voltaire.com> > β€” thank u for ur service, legend 🫢


πŸ’Œ ok that's the whole page bestie!! it's ibping from Open IB Diagnostics, dated 2012-05-14, and honestly? timeless. slay. periodt. πŸ’…βœ¨
πŸ“¦ 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