Name
opapaquery — Performs various queries of the performance management (PM)/performance administration (PA) agent and provides details about fabric performance.
Syntax
opapaquery [-v] [-h hfi|-b addr] [-p port] [-x src_gid] [-E feEsm] [-T file] [-o type] [-g groupName] [-l nodeLid] [-P portNumber] [--timeout timeout] [-G nodeGuid] [-D nodeDesc] [-d delta] [-j date_time] [-q date_time] [-U flag] [-s select] [-f focus] [-S start] [-r range] [-Q tuple] [-Z oper] [-n imgNum] [-O imgOff] [-y imgTime] [-m moveImgNum] [-M moveImgOff] [-V vfName]
Description
By default, opapaquery queries the most recent data. However, if an image number () and/or image offset (imgNum) is provided, the query returns previous sweep data. Queries that access previous sweep data return with the absolute image number representing that data, and therefore have an image offset of zero.imgOff
opapaquery's operation is dependent on a Fabric Manager running as primary SM/PM in the fabric.
By default, opapaquery uses the first active port on the local system. However, if the Fabric Management Node is connected to more than one fabric (for example, a subnet), the SuperNIC and port may be specified to select the fabric whose PA is to be queried.
Options
--helpProduces full help text.
-v/--verboseSpecifies the verbose output.
-h/--hfihfiSpecifies the SuperNIC, numbered 1..n. Using 0 specifies that the
-pport is a system-wide port number. Default is 0.port-b/--oobaddressSpecifies Out-of-Band address of node running the FE. Can be either hostname, IPv4, or IPv6 address. Default is "127.0.0.1".
-p/--portportSpecifies the port.
In-band: Numbered 1...n. Using 0 specifies the first active port. Default is 0.
Out-of-band: Port the FE is listening on. Default is 3245.
-x/--source-gidsrc_gidSpecifies the source GID of the local GID. (This is required for most Path and Trace Record Queries when Out-of-Band.)
-E/--feEsmfeEsm(OPA100 only) Specifies the ESM FE.
-T/--ssl-paramsfileSpecifies the SSL/TLS parameters XML file. Default is
/etc/opa/opamgt_tls.xml.-o/--outputtypeSpecifies the output type. Default is groupList. See .
-g/--groupNamegroupNameSpecifies the group name for
groupInfoquery.-l/--lidlidSpecifies the LID of the node.
-P/--portNumberportNumberSpecifies the port number within the node.
--timeoutSpecifies the timeout (response wait time) in ms. Default is 1000 ms.
-G/--nodeGuidnodeGuidSpecifies the GUID of the node.
-D/--nodeDescnodeDescSpecifies the description of the node.
-d/--deltadeltaSpecifies the delta flag for
portCountersquery - 0 or 1.-j/--begindate_timeObtains portCounters over an interval beginning at
.date_timemay be a time entered as HH:MM[:SS] or date as mm/dd/YYYY, dd.mm.YYYY, YYYY-mm-dd or date followed by time; for example, "2016-07-04 14:40". Relative times are taken as "x [second|minute|hour|day](s) ago".date_time-q/--enddate_timeObtains portCounters over an interval ending at
.date_timemay be a time entered as HH:MM[:SS] or date as mm/dd/YYYY, dd.mm.YYYY, YYYY-mm-dd or date followed by time; for example, "2016-07-04 14:40". Relative times are taken as "x [second|minute|hour|day](s) ago".date_time-U/--userCntrsflagQueries by user-controlled counters flag for portCounters.
-s/--selectselectSpecifies the 32-bit select flag for clearing port counters.
Select bits for
clrPortCounters. 0 is the least significant bit (rightmost). The followingclrPortCountersbit descriptions are listed in the order "mask - bit - location":0x80000000 - 31 - Transmit Data (XmitData)
0x40000000 - 30 - Receive Data (RcvData)
0x20000000 - 29 - Transmit Packets (XmitPkts)
0x10000000 - 28 - Receive Packets (RcvPkts)
0x08000000 - 27 - Multicast Transmit Packets (MulticastXmitPkts)
0x04000000 - 26 - Multicast Receive Packets (MulticastRcvPkts)
0x02000000 - 25 - Transmit Wait (XmitWait)
0x01000000 - 24 - Congestion Discards (CongDiscards)
0x00800000 - 23 - Receive FECN (RcvFECN)
0x00400000 - 22 - Receive BECN (RcvBECN)
0x00200000 - 21 - Transmit Time Congestion (XmitTimeCong)
0x00100000 - 20 - Transmit Time Wasted BW (XmitWastedBW)
0x00080000 - 19 - Transmit Time Wait Data (XmitWaitData)
0x00040000 - 18 - Receive Bubble (RcvBubble)
0x00020000 - 17 - Mark FECN (MarkFECN)
0x00010000 - 16 - Receive Constraint Errors (RcvConstraintErrors)
0x00008000 - 15 - Receive Switch Relay (RcvSwitchRelayErrors)
0x00004000 - 14 - Transmit Discards (XmitDiscards)
0x00002000 - 13 - Transmit Constraint Errors (XmitConstraintErrors)
0x00001000 - 12 - Receive Remote Physical Errors (RcvRemotePhysicalErrors)
0x00000800 - 11 - Local Link Integrity (LocalLinkIntegrityErrors)
0x00000400 - 10 - Receive Errors (RcvErrors)
0x00000200 - 9 - Excessive Buffer Overrun (ExcessiveBufferOverruns)
0x00000100 - 8 - FM Configuration Errors (FMConfigErrors)
0x00000080 - 7 - Link Error Recovery (LinkErrorRecovery)
0x00000040 - 6 - Link Error Downed (LinkDowned)
0x00000020 - 5 - Uncorrectable Errors (UncorrectableErrors)
Select bits for
clrVfPortCounters. 0 is the least significant bit (rightmost). The followingclrVfPortCountersbit descriptions are listed in the order "mask - bit - location":0x80000000 - 31 - VL Transmit Data (VLXmitData)
0x40000000 - 30 - VL Receive Data (VLRcvData)
0x20000000 - 29 - VL Transmit Packets (VLXmitPkts)
0x10000000 - 28 - VL Receive Packets (VLRcvPkts)
0x08000000 - 27 - VL Transmit Discards (VLXmitDiscards)
0x04000000 - 26 - VL Congestion Discards (VLCongDiscards)
0x02000000 - 25 - VL Transmit Wait (VLXmitWait)
0x01000000 - 24 - VL Receive FECN (VLRcvFECN)
0x00800000 - 23 - VL Receive BECN (VLRcvBECN)
0x00400000 - 22 - VL Transmit Time Congestion (VLXmitTimeCong)
0x00200000 - 21 - VL Transmit Wasted BW (VLXmitWastedBW)
0x00100000 - 20 - VL Transmit Wait Data (VLXmitWaitData)
0x00080000 - 19 - VL Receive Bubble (VLRcvBubble)
0x00040000 - 18 - VL Mark FECN (VLMarkFECN)
Bits 17-0 reserved
-f/--focusfocusSpecifies the focus select value for getting
ports.focusselect values are:focusunexpclrportLists unexpectedly cleared ports - LID ordered.
norespportLists no response ports - LID ordered.
skippedportLists skipped ports - LID ordered.
utilhighSorted by utilization - highest first.
pktrateSorted by packet rate - highest first.
utillowSorted by utilization - lowest first.
integritySorted by integrity category - highest first.
congestionSorted by congestion category - highest first.
smacongestionSorted by SMA congestion category - highest first.
bubblesSorted by bubble category - highest first.
securitySorted by security category - highest first.
routingSorted by routing category - highest first.
vfutilhighSorted by utilization - highest first.
vfpktrateSorted by packet rate - highest first.
vfutillowSorted by utilization - lowest first.
vfcongestionSorted by congestion category - highest first.
vfbubblesSorted by bubble category - highest first.
-S/--startstartSpecifies the start of window for focus ports; should always be 0.
-r/--rangerangeSpecifies the size of window for focus ports list.
-Q/--tupletupleSpecifies a tuple that identifies a focus select value, comparator, and argument in the form
select:comparator:argument. Up to 8 tuples may be specified as:-Q s1:c1:a1 -Q s2:c2:a2 ... -Q s8:c8:a8Valid focus select values are:
utilization, pktrate, integrity, congestion, smacongestion, bubbles, security, androuting.Valid comparator values are:
GT, GE, LT, LEValid arguments are: Any 64-bit value in hexadecimal or decimal.
When specifying more than one tuple, a logical operator
-Z/--operatormust also be specified.-Z/--operatoroperSpecifies a logical operator used to join the results of the specified tuples.
and- Specifies a port is returned if it meets all of the tuple filter criteria.or- Specifies a port is returned if it meets one or more of the tuple filter criteria.-n/--imgNumimgNumSpecifies the 64-bit image number.
-O/--imgOffimgOffSpecifies the image offset.
-y/--imgTimeSpecifies the image time. May be used with
imageinfo,groupInfo,groupInfo,groupConfig,freezeImage,focusPorts,vfInfo,vfConfig, andvfFocusPorts. Will return closest image within image interval if possible.may be a time entered as HH:MM[:SS] or date as mm/dd/YYYY, dd.mm.YYYY, YYYY-mm-dd or date followed by time; for example, "2016-07-04 14:40". Relative times are taken as "x [second|minute|hour|day](s) ago".date_time-m/--moveImgNummoveImgNumSpecifies the 64-bit image number. Used with
moveFreezeto move a freeze image.-M/--moveImgOffmoveImgOffSpecifies the image offset. Can be used with
moveFreezeto move a freeze image.-V/--vfNamevfNameSpecifies the VF name for vfInfo query.
-h and -p options permit a variety of selections:
-h 0First active port in the system (Default).
-h 0 -p 0First active port in the system.
-hxFirst active port on SuperNIC
x.-hx-p 0First active port on SuperNIC
x.-h 0 -pyPort
ywithin the system (no matter which ports are active).-hx-pySuperNIC
x, porty.
Output Types
classPortInfoSpecifies the class port info.
groupListSpecifies the list of PA groups.
groupInfoSpecifies the summary statistics of a PA group. Requires
-goption for.groupNamegroupConfigSpecifies the configuration of a PA group. Requires
-goption for.groupNamegroupNodeInfoSpecifies the node information of a PA group. Requires
-goption for. OptionsgroupName-l,lid-GandnodeGuid-Dare optional.nodeDescgroupLinkInfoSpecifies the link Information of a PA group. Requires
-goption for. OptionsgroupName-landlid-Pare optional. Note thatport-P 255specifies all ports. Option-Pwithoutport-lis ignored.lidportCountersSpecifies the port counters of fabric port. Requires
-landlid-Poptions.port-dis optional.deltaclrPortCountersClears port counters of fabric port. Requires
-landlid-P, andport-soptions.selectclrAllPortCountersClears all port counters in fabric.
pmConfigRetrieves PM configuration information.
freezeImageCreates freeze frame for image ID. Requires
-n.imgNumreleaseImageReleases freeze frame for image ID. Requires
-n.imgNumrenewImageRenews lease for freeze frame for image ID. Requires
-n.imgNummoveFreezeMoves freeze frame from image ID to new image ID. Requires
-nandimgNum-m.moveImgNumfocusPortsGets sorted list of ports using utilization or error values (from group buckets). Requires
-g,groupname-f,focus-S,start-r.rangeimageInfoGets configuration of a PA image (timestamps, etc.). Requires
-n.imgNumvfListSpecifies the list of virtual fabrics.
vfInfoSpecifies the summary statistics of a virtual fabric. Requires
-Voption for.vfNamevfConfigSpecifies the configuration of a virtual fabric. Requires
-Voption for.vfNamevfPortCountersSpecifies the port counters of fabric port. Requires
-V,vfName-landlid-Poptions,port-dis optional.deltavfFocusPortsGets sorted list of virtual fabric ports using utilization or error values (from VF buckets). Requires
-V,vfname-f,focus-S,start-r.rangeclrVfPortCountersClears VF port counters of fabric port. Requires
-l,lid-P,port-s, andselect-Voptions.vfname
Examples
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