OS Manuals

/usr/bin/smpquery

userspace components for the Linux Kernel's drivers/infiniband subsystem

From rdma-core 66.0-r0 (os), captured 2026-11-10 by running smpquery --help (exit 2). permalink

Usage: /usr/bin/smpquery [options] <op> <dest dr_path|lid|guid> [op params]

Supported ops (and aliases, case insensitive):
  NodeInfo (NI) <addr>
  NodeDesc (ND) <addr>
  PortInfo (PI) <addr> [<portnum>]
  PortInfoExtended (PIE) <addr> [<portnum>]
  SwitchInfo (SI) <addr>
  PKeyTable (PKeys) <addr> [<portnum>]
  SL2VLTable (SL2VL) <addr> [<portnum>]
  VLArbitration (VLArb) <addr> [<portnum>]
  GUIDInfo (GI) <addr>
  MlnxExtPortInfo (MEPI) <addr> [<portnum>]


Options:
  --combined, -c          use Combined route address argument
  --node-name-map <file>  node name map file
  --extended, -x          use extended speeds
  --config, -z <config>   use config file, default: /etc/infiniband-diags/ibdiag.conf
  --Ca, -C <ca>           Ca name to use
  --Port, -P <port>       Ca port number to use
  --Direct, -D            use Direct address argument
  --Lid, -L               use LID address argument
  --Guid, -G              use GUID address argument
  --timeout, -t <ms>      timeout in ms
  --sm_port, -s <lid>     SM port lid
  --show_keys, -K         display security keys in output
  --m_key, -y <key>       M_Key to use in request
  --pkey-idx, -Y <idx>    P_Key table index for outgoing SA/GMP MADs
                          (default 0)
  --errors, -e            show send and receive errors
  --verbose, -v           increase verbosity level
  --debug, -d             raise debug level
  --help, -h              help message
  --version, -V           show version

Examples:
  /usr/bin/smpquery portinfo 3 1				# portinfo by lid, with port modifier
  /usr/bin/smpquery -G switchinfo 0x2C9000100D051 1	# switchinfo by guid
  /usr/bin/smpquery -D nodeinfo 0				# nodeinfo by direct route
  /usr/bin/smpquery -c nodeinfo 6 0,12			# nodeinfo by combined route
Options (19)
OptionDescriptionSource
--combined, -cuse Combined route address argumenthelp
--node-name-map filenode name map filehelp
--extended, -xuse extended speedshelp
--config, -z configuse config file, default: /etc/infiniband-diags/ibdiag.confhelp
--Ca, -C caCa name to usehelp
--Port, -P portCa port number to usehelp
--Direct, -Duse Direct address argumenthelp
--Lid, -Luse LID address argumenthelp
--Guid, -Guse GUID address argumenthelp
--timeout, -t mstimeout in mshelp
--sm_port, -s lidSM port lidhelp
--show_keys, -Kdisplay security keys in outputhelp
--m_key, -y keyM_Key to use in requesthelp
--pkey-idx, -Y idxP_Key table index for outgoing SA/GMP MADs (default 0)help
--errors, -eshow send and receive errorshelp
--verbose, -vincrease verbosity levelhelp
--debug, -draise debug levelhelp
--help, -hhelp messagehelp
--version, -Vshow versionhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.