opapaquery(8)
๐ธ NAME ๐ธ
opapaquery โ it's the opapaquery(8) girlie from the IFSFFCLIRG man page, and she's here to query things. ๐
(All) โ bestie, this one runs for everybody. โจ It performs various queries of the performance management (PM) / performance administration (PA) agent and hands you back all the deets about fabric performance. ๐ฆ
Lowkey need the lore first? Go read the Intel(R) Omni-Path Fabric Suite Fabric Manager User Guide โ that's where the operation and client services of the PM/PA get described. ๐
Okay so here's the vibe: by default, opapaquery queries the most recent data. Simple. But the second you hand it an image number (imgNum) and/or an image offset (imgOff), it goes digging and the query returns previous sweep data instead. ๐ And here's the little detail that matters โ queries that access previous sweep data come back with the absolute image number representing that data, which means they have an image offset of zero. Periodt. ๐
Not me needing to say this, but: opapaquery's whole operation is dependent on an Intel(R) Omni-Path Fabric Suite Fabric Manager version 6.0 or greater running as master SM/PM in the fabric. No FM, no magic. ๐ญ
And for the port tea ๐ โ by default, opapaquery uses the first active port on the local system. But if the Fabric Management Node is connected to more than one fabric (say, a subnet ๐), you can specify the HFI and port to pick exactly which fabric's PA you wanna query. Main character energy: you choose.
โจ Syntax โจ
opapaquery [-v] [-h hfi|-b addr] [-p port] [-x gid] [-E]
[-T ssl_params] [-o type] [-g groupName] [-l nodeLid] [-P portNumber]
[--timeout] [-G nodeGuid] [-D nodeDesc] [-d delta] [-j date_time]
[-q date_time] [-U] [-s select] [-f focus] [-S start] [-r range]
[-n imgNum] [-O imgOff] [-y imgTime] [-m moveImgNum] [-M moveImgOff] [-V
vfName]
โจ OPTIONS โจ
okay so this is where the magic happens. every flag, every knob, every little vibe check. let's go ๐
-v/--verboseโ Specifies the verbose output. she's chatty, she's telling you everything ๐ฃ๏ธโจ-h/--hfi hfiโ Specifies the HFI, numbered1..n. Using0specifies that the-p port portis a system-wide port number. Default is0. so if you want the whole system, she's your girl ๐ซถ-b/--oob addressโ Specifies Out-of-Band address of node running the FE. Can be either hostname, IPv4, or IPv6 address. Default is"127.0.0.1". localhost energy, but make it fashion ๐-p/--port portโ Specifies the port.- In-band: Numbered
1...n. Using0specifies the first active port. Default is0. first active, no cap โจ - Out-of-band: Port FE is listening on. Default is
3245. that's the FE's little ear ๐
- In-band: Numbered
-x/--source-gid src_gidโ Specifies the source GID of the local GID. (This is required for most Path and Trace Record Queries when Out-of-Band.) required, bestie, don't skip it ๐ญ-E/--feEsmโ Specifies the ESM FE. ESM FE, iconic ๐-T/--ssl-params fileโ Specifies the SSL/TLS parameters XML file. Default is/etc/opa/opamgt_tls.xml. secure the bag ๐-o/--output typeโ Specifies the output type. Default isgroupList. See Output Types. pick your output, pick your destiny ๐-g/--groupName groupNameโ Specifies the group name for groupInfo query. group chat, but for ports ๐ฌ-l/--lid lidโ Specifies the LID of the node. LID, we love her ๐ฆ-P/--portNumber portNumberโ Specifies the port number within the node. port within node, very demure โจ--timeoutโ Specifies the timeout (response wait time) in ms. Default is1000 ms. don't ghost her for more than 1000 ms ๐-G/--nodeGuidโ Specifies the GUID of the node. GUID, the node's government name ๐-D/--nodeDescโ Specifies the description of the node. describe the node, give her a little bio ๐-d/--delta deltaโ Specifies the delta flag for portCounters query -0or1. 0 or 1, binary baddie ๐-j/--begin date_timeโ Obtains portCounters over an interval beginning atdate_time.date_timemay be a time entered asHH:MM[:SS]or date asmm/dd/YYYY,dd.mm.YYYY,YYYY-mm-ddor date followed by time; for example,"2016-07-04 14:40". Relative times are taken as"x [second|minute|hour|day](s) ago.time travel, but make it metrics โณ-q/--end date_timeโ Obtains portCounters over an interval ending atdate_time.date_timemay be a time entered asHH:MM[:SS]or date asmm/dd/YYYY,dd.mm.YYYY,YYYY-mm-ddor date followed by time; for example,"2016-07-04 14:40". Relative times are taken as"x [second|minute|hour|day](s) ago.the end is giving closure ๐-U/--userCntrsโ Queries by user-controlled counters flag for portCounters. user-controlled, main character energy ๐-s/--select selectโ Specifies the 32-bit select flag for clearing port counters. 32 bits of pure power โก
Select bits for clrPortCounters. 0 is the least significant bit (rightmost). The clrPortCounters bit descriptions are listed in the order "mask - bit - location" below:
0x80000000-31- Transmit Data (XmitData) XmitData, she's transmitting ๐ก0x40000000-30- Receive Data (RcvData) RcvData, receiving the vibe ๐ฅ0x20000000-29- Transmit Packets (XmitPkts) packets on packets ๐ฆ0x10000000-28- Receive Packets (RcvPkts) packets incoming ๐ฌ0x08000000-27- Multicast Transmit Packets (MulticastXmitPkts) multicast, she's for the group ๐ฏ0x04000000-26- Multicast Receive Packets (MulticastRcvPkts) multicast receive, group chat energy ๐ฌ0x02000000-25- Transmit Wait (XmitWait) waiting to transmit, relatable โณ0x01000000-24- Congestion Discards (CongDiscards) congestion, throw it away ๐๏ธ0x00800000-23- Receive FECN (RcvFECN) FECN ๐ฆ0x00400000-22- Receive BECN (RcvBECN) BECN ๐ฆ0x00200000-21- Transmit Time Congestion (XmitTimeCong) time congestion, she's stressed ๐ฐ0x00100000-20- Transmit Time Wasted BW (XmitWastedBW) wasted bandwidth, not the vibe ๐0x00080000-19- Transmit Time Wait Data (XmitWaitData) wait data, hold please โ0x00040000-18- Receive Bubble (RcvBubble) bubble, pop it ๐ซง0x00020000-17- Mark FECN (MarkFECN) mark it, FECN ๐๏ธ0x00010000-16- Receive Constraint Errors (RcvConstraintErrors) constraint errors, oops ๐ฌ0x00008000-15- Receive Switch Relay (RcvSwitchRelayErrors) switch relay errors, not iconic ๐ซ0x00004000-14- Transmit Discards (XmitDiscards) discards, bye ๐0x00002000-13- Transmit Constraint Errors (XmitConstraintErrors) constraint errors again ๐ญ0x00001000-12- Receive Remote Physical Errors (RcvRemotePhysicalErrors) remote physical errors, long distance drama ๐0x00000800-11- Local Link Integrity (LocalLinkIntegrityErrors) local link integrity, keep it together ๐ง0x00000400-10- Receive Errors (RcvErrors) receive errors, she's not having it ๐ค0x00000200-9- Excessive Buffer Overrun (ExcessiveBufferOverruns) buffer overrun, too much ๐0x00000100-8- FM Configuration Errors (FMConfigErrors) FM config errors, fix it ๐ง0x00000080-7- Link Error Recovery (LinkErrorRecovery) link error recovery, healing era ๐ฑ0x00000040-6- Link Error Downed (LinkDowned) link downed, she's down bad ๐0x00000020-5- Uncorrectable Errors (UncorrectableErrors) uncorrectable, no cap ๐ซ
Select bits for clrVfPortCounters. 0 is the least significant bit (rightmost). The clrVfPortCounters bit descriptions are listed in the order "mask - bit - location" below:
0x80000000-31- VL Transmit Data (VLXmitData) VL transmit data ๐ฃ๏ธ0x40000000-30- VL Receive Data (VLRcvData) VL receive data ๐ฅ0x20000000-29- VL Transmit Packets (VLXmitPkts) VL packets out ๐ฆ0x10000000-28- VL Receive Packets (VLRcvPkts) VL packets in ๐ฌ0x08000000-27- VL Transmit Discards (VLXmitDiscards) VL discards, thrown away ๐๏ธ0x04000000-26- VL Congestion Discards (VLCongDiscards) VL congestion, crowded ๐ฆ0x02000000-25- VL Transmit Wait (VLXmitWait) VL wait, hold on โณ0x01000000-24- VL Receive FECN (VLRcvFECN) VL FECN ๐ฆ0x00800000-23- VL Receive BECN (VLRcvBECN) VL BECN ๐ฆ0x00400000-22- VL Transmit Time Congestion (VLXmitTimeCong) VL time congestion ๐ฐ0x00200000-21- VL Transmit Wasted BW (VLXmitWastedBW) VL wasted bandwidth ๐0x00100000-20- VL Transmit Wait Data (VLXmitWaitData) VL wait data โ0x00080000-19- VL Receive Bubble (VLRcvBubble) VL bubble ๐ซง0x00040000-18- VL Mark FECN (VLMarkFECN) VL mark FECN ๐๏ธ- Bits
17-0reserved reserved, don't touch ๐ซ
-f/--focus focusโ Specifies the focus select value for getting focus ports.focusselect values are:unexpclrportโ Lists unexpectedly cleared ports - LID ordered. unexpectedly cleared, drama ๐ฑnorespportโ Lists no response ports - LID ordered. no response, ghosted ๐ปskippedportโ Lists skipped ports - LID ordered. skipped, not today โญ๏ธutilhighโ Sorted by utilization - highest first. high utilization, she's busy ๐ฅpktrateโ Sorted by packet rate - highest first. packet rate, fast girl โกutillowโ Sorted by utilization - lowest first. low utilization, chill ๐งintegrityโ Sorted by integrity category - highest first. integrity, she has morals ๐ก๏ธcongestionโ Sorted by congestion category - highest first. congestion, crowded ๐ฆsmacongestionโ Sorted by SMA congestion category - highest first. SMA congestion, fancy ๐ฉbubblesโ Sorted by bubble category - highest first. bubbles, pop pop ๐ซงsecurityโ Sorted by security category - highest first. security, keep it safe ๐routingโ Sorted by routing category - highest first. routing, she knows the way ๐บ๏ธvfutilhighโ Sorted by utilization - highest first. VF high utilization ๐ฅvfpktrateโ Sorted by packet rate - highest first. VF packet rate โกvfutillowโ Sorted by utilization - lowest first. VF low utilization ๐งvfcongestionโ Sorted by congestion category - highest first. VF congestion ๐ฆvfbubblesโ Sorted by bubble category - highest first. VF bubbles ๐ซง
-S/--start startโ Specifies the start of window for focus ports, should always be0. always 0, don't fight it 0๏ธโฃ-r/--range rangeโ Specifies the size of window for focus ports list. range, the size of the window ๐ช-Q/--tupleโ Specifies a tuple that identifies a focus select value, comparator and argument in the formselect: comparator:argument. Up to8tuples may be specified as:-Q s1:c1:a1 -Q s2:c2:a2 ... -Q s8:c8:a8tuples, up to 8, she's flexible ๐งฎ
Valid focus select values are: utilization, pktrate, integrity, congestion, smacongestion, bubbles, security and routing. pick your fighter โ๏ธ
Valid comparator values are: GT, GE, LT, LE greater than, greater equal, less than, less equal, math baddie ๐
Valid arguments are: Any 64-bit value in hexadecimal or decimal. 64-bit, big energy ๐ช
When specifying more than one tuple, a logical operator -Z/--operator must also be specified. don't forget the operator, bestie ๐ญ
-Z/--operatorโ Specifies a logical operator used to join the results of the specified tuples. logical operator, join the results ๐and- Specifies a port is returned if it meets all of the tuple filter criteria. and, all the things โor- Specifies a port is returned if it meets one or more of the tuple filter criteria. or, any of the things โ
-n/--imgNum imgNumโ Specifies the 64-bit image number. 64-bit image number, she's specific ๐ผ๏ธ-O/--imgOff imgOffโ Specifies the image offset. image offset, shift it โก๏ธ-y/--imgTimeโ Specifies the image time. May be used withimageinfo,groupInfo,groupInfo,groupConfig,freezeImage,focusPorts,vfInfo,vfConfig, andvfFocusPorts. Will return closest image within image interval if possible. See--begin/--endabove for format. image time, time travel again โฐ-m/--moveImgNum moveImgNumโ Specifies the 64-bit image number. Used withmoveFreezeto move a freeze image. move image number, move the freeze ๐ง-M/--moveImgOff moveImgOffโ Specifies the image offset. Can be used withmoveFreezeto move a freeze image. move image offset, shift the freeze ๐ง-V/--vfName vfNameโ Specifies the VF name forvfInfoquery. VF name, realness ๐
โจ -h and -p options permit a variety of selections โจ
okay so these two? they're like a duo. here's the tea:
-h 0โ First active port in system (Default). default, first active port in system ๐-h 0 -p 0โ First active port in system. same energy, but explicit โจ-h xโ First active port on HFIx. first active on HFI x ๐ฏ-h x -p 0โ First active port on HFIx. first active on HFI x, with port 0 ๐ฏ-h 0 -p yโ Portywithin system (no matter which ports are active). port y, system-wide, no matter what ๐-h x -p yโ HFIx, porty. HFI x, port y, you know the vibe โจ
โจ Output Types โจ
okay bestie, so like, the -o option? it's literally the main character here โ it picks what kind of query you're doing. here's the full menu, no cap. ๐
classPortInfoโ specifies the class port info. that's the whole vibe. ๐ฆgroupListโ specifies the list of PA groups. slay. โจgroupInfoโ specifies the summary statistics of a PA group. โ ๏ธ requires-goption for groupName. periodt.groupConfigโ specifies the configuration of a PA group. requires-goption for groupName. ๐groupNodeInfoโ specifies the node information of a PA group. requires-goption for groupName. options-llid,-GnodeGuid and-DnodeDesc are optional. lowkey flexible. ๐ธgroupLinkInfoโ specifies the link Information of a PA group. requires-goption for groupName. options-llid and-Pport are optional. note that-P 255specifies all ports. option-Pport without-llid is ignored. ๐ (don't forget the lid!)portCountersโ specifies the port counters of fabric port. requires-llid and-Pport options.-ddelta is optional. ๐clrPortCountersโ clears port counters of fabric port. requires-llid and-Pport, and-sselect options. bye bye counters! ๐งนclrAllPortCountersโ clears all port counters in fabric. the ultimate reset. ๐ฅpmConfigโ retrieves PM configuration information. iykyk. ๐freezeImageโ creates freeze frame for image ID. requires-nimgNum. โ๏ธreleaseImageโ releases freeze frame for image ID. requires-nimgNum. let it gooo. ๐ฆrenewImageโ renews lease for freeze frame for image ID. requires-nimgNum. subscription renewed bestie. ๐moveFreezeโ moves freeze frame from image ID to new image ID. requires-nimgNum and-mmoveImgNum. glow up migration. โจfocusPortsโ gets sorted list of ports using utilization or error values (from group buckets). requires-ggroupname,-ffocus,-Sstart,-rrange. main character ports only. ๐imageInfoโ gets configuration of a PA image (timestamps, etc.). requires-nimgNum. ๐ฐ๏ธvfListโ specifies the list of virtual fabrics. vf stands for very fabulous? no, virtual fabric. ๐ญvfInfoโ specifies the summary statistics of a virtual fabric. requires-Voption for vfName. ๐vfConfigโ specifies the configuration of a virtual fabric. requires-Voption for vfName. ๐vfPortCountersโ specifies the port counters of fabric port. requires-VvfName,-llid and-Pport options,-ddelta is optional. ๐vfFocusPortsโ gets sorted list of virtual fabric ports using utilization or error values (from VF buckets). requires-Vvfname,-ffocus,-Sstart,-rrange. โจclrVfPortCountersโ clears VF port counters of fabric port. requires-llid,-Pport,-sselect, and-Vvfname options. clean slate. ๐งผ
๐ธ Examples ๐ธ
bestie, here are the exact commands โ copy them character for character, no cap. ๐
opapaquery -o classPortInfo
opapaquery -o groupList
opapaquery -o groupInfo -g All
opapaquery -o groupConfig -g All
opapaquery -o groupNodeInfo -g All -G <nodeGuid>
opapaquery -o groupNodeInfo -g All -D <nodeDesc>
opapaquery -o groupNodeInfo -g All -l 1
opapaquery -o groupNodeInfo -g All -l 1 -G <nodeGuid>
opapaquery -o groupLinkInfo -g All
opapaquery -o groupLinkInfo -g All -l 1 -P 1
opapaquery -o groupLinkInfo -g All -l 1 -P 255
opapaquery -o portCounters -l 1 -P 1 -d 1
opapaquery -o portCounters -l 1 -P 1 -d 1 -n 0x20000000d02 -O 1
opapaquery -o portCounters -l 1 -P 1 -d 1 -j 13:30 -q 14:20
opapaquery -o clrPortCounters -l 1 -P 1 -s 0xC0000000
(clears XmitData & RcvData)
opapaquery -o clrAllPortCounters -s 0xC0000000
(clears XmitData & RcvData on all ports)
opapaquery -o pmConfig
opapaquery -o freezeImage -n 0x20000000d02
opapaquery -o releaseImage -n 0xd01
opapaquery -o renewImage -n 0xd01
opapaquery -o moveFreeze -n 0xd01 -m 0x20000000d02 -M -2
opapaquery -o focusPorts -g All -f integrity -S 0 -r 20
opapaquery -o focusPorts -g All -S 0 -r 20 -Z AND -Q integrity:ge:20 -Q
bubbles:lt:10
opapaquery -o focusPorts -g All -f skippedport -S 0 -r 20
opapaquery -o imageInfo -n 0x20000000d02
opapaquery -o imageInfo -y "1 hour ago"
opapaquery -o vfList
opapaquery -o vfInfo -V Default
opapaquery -o vfConfig -V Default
opapaquery -o vfPortCounters -l 1 -P 1 -d 1 -V Default
opapaquery -o clrVfPortCounters -l 1 -P 1 -s 0xC0000000 -V Default
(clears VLXmitData & VLRcvData)
opapaquery -o vfFocusPorts -V Default -f integrity -S 0 -r 20
that's the whole vibe, bestie. this page is Copyright(C) 2015-2019 Intel Corporation โ opapaquery(8). go forth and query slayfully. ๐
โจ
๐ฆ where this page comes from
- centos-stream 9: opa-fastfabric 1:10.12.1.0.6-1.el9 ยท BSD or GPLv2
- debian bookworm: opa-fastfabric 10.10.3.0.11-1+b1 ยท BSD-3-clause-top
- debian trixie: opa-fastfabric 10.10.3.0.11-1+b2 ยท BSD-3-clause-top
- opensuse-leap 16.0: opa-fastfabric 10.14.4.0.20-160000.3.2 ยท BSD-3-Clause OR GPL-2.0-only
- ubuntu jammy: opa-fastfabric 10.10.3.0.11-1ubuntu1 ยท BSD-3-clause-top
- ubuntu noble: opa-fastfabric 10.10.3.0.11-1ubuntu3 ยท BSD-3-clause-top
- ubuntu questing: opa-fastfabric 10.10.3.0.11-1ubuntu3
- ubuntu resolute: opa-fastfabric 10.10.3.0.11-1ubuntu4 ยท BSD-3-clause-top
- ubuntu stonking: opa-fastfabric 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