opaextractperf(8)
β¨ opaextractperf β the IFSFFCLIRG girlies' fave π
okay so bestie, opaextractperf is from the IFSFFCLIRG manual set, section 8, and she is that girl. let me tell you everything π
πΈ NAME πΈ
opaextractperf
She gives you a report of all the performance counters, in CSV format β perfect for yeeting straight into a spreadsheet or letting other scripts parse her for further analysis. π
Here's the tea on how she works: she generates a detailed opareport component summary report and pipes the result to opaxmlextract, pulling out element values for NodeDesc, SystemImageGUID, PortNum, and all the performance counters. Extraction happens only from the Systems portion of the report, which does not contain Neighbor information (the Neighbor and SMs portions are suppressed). no cap. π₯
π¦ Syntax π¦
opaextractperf [opareport options]
π Options π
--helpβ Produces full help text. your bestie always comes through with the instructions β¨- opareport options β The following options are passed to
opareport. This subset is considered typical and useful for this command. By design, the tool ignores the-o/--outputreport option. π-h/--hfihfi β Specifies the HFI, numbered1..n. Using0specifies that the-p portport is a system-wide port number. Default is0.-p/--portport β Specifies the port, numbered1..n. Using0specifies the first active port. Default is0.-X/--infilesnapshot_input β Generates a report using the data in the snapshot_input file. snapshot_input must have been generated during a previous-o snapshotrun. When used, the-s,-i,-C, and-aoptions are ignored.'-'may be used as the snapshot_input to specify stdin.-T/--topologytopology_input β Uses topology_input file to augment and verify fabric information. When used, various reports can be augmented with information not available electronically (such as cable labels).'-'may be used to specify stdin.-i/--intervalseconds β Obtains performance statistics over interval seconds. Clears all statistics, waits interval seconds, then generates report. Implies-soption. β³-b/--begindate_time β Obtains past performance stats over an interval beginning at date_time. Implies-soption. date_time may 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.-e/--enddate_time β Obtains past performance stats over an interval ending at date_time. Implies-soption.
date_time 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.
-C/--clearβ Clears performance statistics for all ports. Only statistics with error thresholds are cleared. A clear occurs after generating the report.-a/--clearallβ Clears all performance statistics for all ports. π goodbye data-M/--pmadirectβ Accesses performance statistics using direct PMA.-A/--allportsβ GetsPortInfofor down switch ports. Uses direct SMA to get this data. If used with-M, also gets PMA stats for down switch ports.-F/--focuspoint β Specifies the focus area for report. Used for all reports except route to limit scope of report. Refer to Point Syntax for details.
π -h and -p options permit a variety of selections: π
-h 0β First active port in system (Default).-h 0 -p 0β First active port in system.-h xβ First active port on HFIx.-h x -p 0β First active port on HFIx.-h 0 -p yβ Portywithin system (no matter which ports are active).-h x -p yβ HFIx, porty.
π Point Syntax π
she's got so many ways to point at a thing, it's giving main character energy. here we go:
gid:valueβ value is numeric port GID of form:subnet:guid.lid:valueβ value is numeric LID.lid:value:nodeβ value is numeric LID, selects entire node with given LID.lid:value:port:value2β value is numeric LID of node, value2 is port number.portguid:valueβ value is numeric port GUID.nodeguid:valueβ value is numeric node GUID.nodeguid:value1:port:value2β value1 is numeric node GUID, value2 is port number.iocguid:valueβ value is numeric IOC GUID.iocguid:value1:port:value2β value1 is numeric IOC GUID, value2 is port number.systemguid:valueβ value is numeric system image GUID.systemguid:value1:port:value2β value1 is the numeric system image GUID, value2 is port number.ioc:valueβ value is IOC Profile ID String (IOC Name).ioc:value1:port:value2β value1 is IOC Profile ID String (IOC Name), value2 is port number.iocpat:valueβ value is glob pattern for IOC Profile ID String (IOC Name).iocpat:value1:port:value2β value1 is glob pattern for IOC Profile ID String (IOC Name), value2 is port number.ioctype:valueβ value is IOC type (SRPorOTHER).ioctype:value1:port:value2β value1 is IOC type (SRPorOTHER); value2 is port number.node:valueβ value is node description (node name).node:value1:port:value2β value1 is node description (node name), value2 is port number.nodepat:valueβ value is glob pattern for node description (node name).nodepat:value1:port:value2β value1 is the glob pattern for the node description (node name), value2 is port number.nodedetpat:valueβ value is glob pattern for node details.nodedetpat:value1:port:value2β value1 is the glob pattern for the node details, value2 is port number.nodetype:valueβ value is node type (SWorFI).nodetype:value1:port:value2β value1 is node type (SWorFI), value2 is port number.rate:valueβ value is string for rate (25g,50g,75g,100g), omits switch mgmt port 0.portstate:valueβ value is a string for state (down,init,armed,active,notactive,initarmed).portphysstate:valueβ value is a string for PHYs state (polling,disabled,training,linkup,recovery,offline,test)mtucap:valueβ value is MTU size (2048,4096,8192,10240), omits switch mgmt port 0.labelpat:valueβ value is glob pattern for cable label.lengthpat:valueβ value is glob pattern for cable length.cabledetpat:valueβ value is glob pattern for cable details.cabinflenpat:valueβ value is glob pattern for cable info length.cabinfvendnamepat:valueβ value is glob pattern for cable info vendor name.cabinfvendpnpat:valueβ value is glob pattern for cable info vendor part number.cabinfvendrevpat:valueβ value is glob pattern for cable info vendor revision.cabinfvendsnpat:valueβ value is glob pattern for cable info vendor serial number.cabinftype:valueβ value is eitheroptical,passive_copper,active_copper, orunknown.linkdetpat:valueβ value is glob pattern for link details.portdetpat:valueβ value is glob pattern for port details.smβ Specifies the master subnet manager (SM).smdetpat:valueβ value is glob pattern for SM details.route:point1:point2β Specifies all ports along the routes between the two given points.led:valueβ value is eitheronorofffor LED port beacon.linkqual:valueβ Specifies the ports with a link quality equal to value.linkqualLE:valueβ Specifies the ports with a link quality less than or equal to value.linkqualGE:valueβ Specifies the ports with a link quality greater than or equal to value.nodepatfile:FILENAMEβ Specifies the name of file with the list of nodepats or node descriptions.nodepairpatfile:FILENAMEβ Specifies the name of file with the list of node pairs, separated by a colon.ldrβ Specifies the ports with a non-zero link down reason or neighbor link down reason.ldr:valueβ Specifies the ports with a link down reason or neighbor link down reason equal to value.
π« the part of the script that calls opareport and opaxmlextract π«
literally iconic, here she is:
opareport -o comps -s -x -d 10 $@ | opaxmlextract -d ;
-e NodeDesc -e SystemImageGUID -e PortNum -e XmitDataMB
-e XmitData -e XmitPkts -e RcvDataMB -e RcvData -e RcvPkts
-e SymbolErrors -e LinkErrorRecovery -e LinkDowned -e PortRcvErrors
-e PortRcvRemotePhysicalErrors -e PortRcvSwitchRelayErrors
-e PortXmitDiscards -e PortXmitConstraintErrors
-e PortRcvConstraintErrors -e LocalLinkIntegrityErrors
-e ExcessiveBufferOverrunErrors -e VL15Dropped -s Neighbor -s SMs
β Example β
opaextractperf
opaextractperf -h 1 -p 2
aaaand that's the whole vibe, bestie π«Ά go forth and spreadsheet your counters π
Copyright(C) 2015-2019 Intel Corporation β that's the source and version tag, and she's dated 2015β2019. mwah, periodt. π πΈβ¨
π¦ 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