opasmaquery(1)
π opasmaquery π
okay bestie, listen up β this is opasmaquery(1), straight out of the IFSFFCLIRG man page collection, and it's genuinely iconic. no cap.
πΈ NAME πΈ
opasmaquery
(All) Performs Intel(R) Omni-Path Architecture-defined SMA queries and displays the resulting response. Each query is issued directly to the SMA and does not involve SM interaction.
like, it goes straight to the SMA. it does NOT text the SM first. no middleman, no drama. π
β¨ SYNTAX β¨
opasmaquery [-v] [-d detail][-g] [-l lid] [-h hfi] [-p port] [-o otype]
[-m port| port1,port2] [-f flid] [-b block[,count]] [hop hop ...]
π OPTIONS π
--helpβ Produces full help text.-vβ Returns verbose output. Can be specified more than once for additional openib and libibumad debugging.-d detailβ Specifies the output detail level for cableinfo only. Range is 0 - n. Default is 2. An upper limit for detail level is not enforced. After a maximum amount of output is reached, a larger detail value has no effect.-gβ Displays line-by-line format. Default is summary format.-l lidβ Specifies the destination LID. Default is local port.-h/--hfi hfiβ Specifies the HFI, numbered 1..n. Using 0 specifies that the-p portport is a system-wide port number. Default is 0.-p/--port portβ Specifies the port, numbered 1..n. Using 0 specifies the first active port. Default is 0.-o otypeβ Specifies the output type. Default is nodeinfo. Refer to otype Options Vary by Report for supported options.
Valid output types are:
bfrctrlβ Specifies buffer control tables.[-m dest_port] [-m port1,port2]
cableinfoβ Specifies cable information.[-d detail] [-m dest_port] [-b block[,count]]
conginfoβ Specifies congestion information.descornodedescβ Specifies node descriptions/names.hficongconβ Specifies HFI congestion control settings.[-b block[,count]] [-f flid]
hficonglogβ Specifies HFI congestion logs.[-b block[,count]]
hficongsetβ Specifies HFI congestion settings.linfdbβ Specifies switch linear forwarding database (FDB) tables.[-b block[,count]] [-f flid]
mcfdbβ Specifies switch multicast FDB tables.[-m dest_port] [-b block[,count]] [-f flid]
portgroupβ Specifies Adaptive Routing port groups.[-b block[,count]]
portgroupfdbβ Specifies Adaptive Routing port group FWD tables.[-b block[,count]] [-f flid]
nodeaggrβ Specifies node information and node descriptions.nodeornodeinfoβ Specifies node information.[-m dest_port]
portinfoβ Specifies port information.[-m dest_port]
pstateinfoβ Specifies switch port state information.[-m dest_port] [-m port1,port2]
pkeyβ Specifies P-Key tables.[-m dest_port] [-b block[,count]]
slscβ Specifies SL to SC mapping tables.scslβ Specifies SC to SL mapping tables.scscβ Specifies SC to SC mapping tables.[-m dest_port] [-m port1,port2]
scvltβ Specifies SC to VLt tables.[-m dest_port] [-m port1,port2]
scvlntβ Specifies SC to VLnt tables.[-m dest_port] [-m port1,port2]
scvlrβ Specifies SC to VLr tables[-m dest_port] [-m port1,port2]
sminfoβ Specifies SM information.swaggrβ Specifies node information and switch information.swconglogβ Specifies switch congestion logs.[-b block[,count]]
swcongsetβ Specifies switch congestion settings.swinfoβ Specifies switch information.swportcongβ Specifies switch congestion settings.[-b block[,count]]
vlarbβ Specifies VL arbitration tables.[-m dest_port]
ibnodeinfoβ Specifies IB node information.ledinfoβ Specifies LED information.[-m dest_port]
π¦ -h and -p options permit a variety of selections π¦
okay this is the part where the vibes get specific. here's every single combo, fr fr:
-h 0β First active port in system (Default).-h 0 -p 0β First active port in system.-h xβ First active port on HFI x.-h x -p 0β First active port on HFI x.-h 0 -p yβ Port y within system (no matter which ports are active).-h x -p yβ HFI x, port y.
π otype Options Vary by Report π
[-m port|port1,port2] [-f lid] [-b block[,count]]
-m portβ Specifies the port in destination device to query.-m port1,port2β For some reports, specifies a range of ports between port1 and port2. For others, this describes an inport/outport pair.-f lidβ Specifies the LID to look up in forwarding table to select which LFT or MFT block to display. Default is to show entire table.-b block[,count]β Specifies the block number of either GUIDs or pkey, and the number of blocks to display. Default is to show entire table.
For example:
-b blockβ Displays all of block block of a larger table.-b block,countβ Displays count blocks of data starting with block block.-b, countβ Displays count blocks of data starting with block 0.
π₯ EXAMPLES π₯
here they are, exactly as written, no edits, no notes, just vibes π
opasmaquery -o desc -l 6
# get nodedesc via lid routed
opasmaquery -o nodedesc 1 3
# get nodedesc via directed route (2 dr hops)
opasmaquery -o nodeinfo -l 2 3
# get nodeinfo via a combination of lid routed and # directed route (1 dr hop)
opasmaquery -o portinfo
# get local port info
opasmaquery -o portinfo -l 6 -m 1
# get port info of port 1 of lid 6
opasmaquery -o pkey -l 2 3
# get pkey table entries starting (lid routed to lid 2,
# then 1 dr hop to port 3)
opasmaquery -o vlarb -l 6
# get vlarb table entries from lid 6
opasmaquery -o swinfo -l 2
# get switch info
opasmaquery -o sminfo -l 1
# get SM info
opasmaquery -o slsc -l 3
# get sl2sc table entries from lid 3
opasmaquery -o scsl -l 3
# get sc2sl table entries from lid 3
and that's the whole thing, bestie. you ate. π β¨
this lil masterpiece lives in the IFSFFCLIRG (Man Page) set, and the legal bit goes a lil something like: Copyright(C) 2015-2019 Intel Corporation π«Ά
okay ily, go query something. mwah π
π¦ where this page comes from
- centos-stream 9: opa-basic-tools 1:10.12.1.0.6-1.el9 Β· BSD or GPLv2
- debian bookworm: opa-basic-tools 10.10.3.0.11-1+b1 Β· BSD-3-clause-top
- debian trixie: opa-basic-tools 10.10.3.0.11-1+b2 Β· BSD-3-clause-top
- opensuse-leap 16.0: opa-basic-tools 10.14.4.0.20-160000.3.2 Β· BSD-3-Clause OR GPL-2.0-only
- ubuntu jammy: opa-basic-tools 10.10.3.0.11-1ubuntu1 Β· BSD-3-clause-top
- ubuntu noble: opa-basic-tools 10.10.3.0.11-1ubuntu3 Β· BSD-3-clause-top
- ubuntu questing: opa-basic-tools 10.10.3.0.11-1ubuntu3
- ubuntu resolute: opa-basic-tools 10.10.3.0.11-1ubuntu4 Β· BSD-3-clause-top
- ubuntu stonking: opa-basic-tools 10.10.3.0.11-1ubuntu5 Β· BSD-3-clause-top
- Copyright 2015-2019, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms