sminfo(8)

πŸ’… NAME

okay so bestie, welcome to sminfo β€” it's the tool that queries the InfiniBand SMInfo attribute. That's it, that's the whole vibe check. It lives in the Open IB Diagnostics family, and it's filed under section 8 because it's a sysadmin-y system tool, iykyk. 🫢


✨ SYNOPSIS

sminfo [options] sm_lid | sm_dr_path [modifier]

πŸ¦‹ DESCRIPTION

So basically ✨ β€” you can optionally set stuff and also display the output of a sminfo query in a human readable format. Two for one, we love that for us.

The target SM it talks to is the one listed in the local port info by default. OR, if you feel like it, you can point it at the SM specified by the optional SM lid, or by the SM direct routed path. Your choice, queen. πŸ‘‘

⚠️ okay so listen, this is the important part: using sminfo for any purposes other than a simple query may be very dangerous, and may result in a malfunction of the target SM. Not a vibe. Not slay. Do not do it unless you truly know what you're doing. πŸ™ˆ

πŸŽ€ OPTIONS

Here's the whole menu, bestie. No skipping, we're doing all of them. πŸ’–

  • -s, --state <state> β€” set the SM state. The values are:

0 β€” not active

1 β€” discovering

2 β€” standby

3 β€” master

  • -p, --priority <priority> β€” set priority. Range is (0-15).
  • -a, --activity <val> β€” set the activity count.

πŸ’« Addressing Flags

  • -D, --Direct β€” the address you're giving it is a directed route.

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.)

  • -G, --Guid β€” the address you're giving it is a Port GUID.
  • -L, --Lid β€” the address you're giving it is a LID.

🧚 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. Meanwhile SMP (SMI directed-route/LID-routed) MADs always use P_Key index 0. That's just how it is, no notes. πŸ’…

🌸 Local port Selection

Multiple port / Multiple CA support, okay so here's the tea: when no IB device or port is specified (peep the "local umad parameters" below), the libibumad library picks the port for you using these 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. F around and find out energy, honestly. 😭

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 (-ddd or -d -d -d). Stack it like bracelets bestie. ✨
  • -e β€” show send and receive errors (timeouts and others).
  • -h, --help β€” show the usage message.
  • -v, --verbose β€” increase the application verbosity level. May be used several times (-vv or -v -v -v).
  • -V, --version β€” show the version info.

πŸ“ Configuration flags

  • -t, --timeout <timeout_ms> β€” override the default timeout for the solicited mads.
  • -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.
  • --config, -z <config_file> β€” specify an alternate config file.

Default: /etc/infiniband-diags/ibdiag.conf


πŸ“ 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. Iconic, honestly. See the supplied config file for details. πŸŽ€


🌈 EXAMPLES

sminfo                  # local port\'s sminfo
sminfo 32               # show sminfo of lid 32
sminfo  -G 0x8f1040023  # same but using guid address

πŸ‘‘ SEE ALSO

  • smpdump (8)

πŸ’– AUTHOR

Hal Rosenstock β€” <halr@voltaire.com> 🌟


and that's the whole page bestie, no cap. this lil' beauty comes to you from the Open IB Diagnostics gang, dated 2017-08-21, and yes it is literally filed as sminfo(8). go query something (safely!), ily, bye. πŸ’…βœ¨πŸ¦‹

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