opaextractstat(8)
β¨ NAME β¨
opaextractstat β bestie, this is the tool that does an error analysis of a fabric and gives you augmented info from a topology_file. The report hands you cable information AND symbol error counts. It's giving "detective but make it fiber" ππ
This page is from IFSFFCLIRG (Man Page), manual section 8 β and no, we are not skipping a single line of it, periodt.
π¦ DESCRIPTION π¦
Okay so listen. opaextractstat generates a detailed opareport errors report that ALSO has a topology file. (Peep opareport if you want the whole tea about topology files, iykyk.)
Then that report gets piped to opaxmlextract, which pulls out the values for Link, Cable, and Port. Quick heads up: those port element names are context-sensitive, so likeβ¦ read the room, they change meaning depending on context π
And ALSO β not me about to tell you this β opaxmlextract generates two extraction records for each link (one for each port on the link). So opaextractstat merges the two records into a single record and deletes the redundant link and cable info. Efficiency queen π
Also opaextractstat has a while read loop that reads the CSV line-by-line, uses cut to remove redundant information, and outputs the data on a common line. Lowkey iconic.
πΈ Syntax πΈ
opaextractstat topology_file [opareport options]
π Options π
--helpβ Produces full help text. (Like, the whole lore drop.)topology_fileβ Specifiestopology_fileto use.opareport optionsβ The following options are passed toopareport. This subset is considered typical and useful for this command. By design, the tool ignores the-o/--outputreport option. So don't even try it π-h/--hfihfiβ Specifies the HFI, numbered1..n. Using0specifies that the-pportis 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 thesnapshot_inputfile.snapshot_inputmust have been generated during a previous-o snapshotrun. When used, the-s,-i,-C, and-aoptions are ignored.'-'may be used as thesnapshot_inputto specify stdin.-i/--intervalsecondsβ Obtains performance statistics overintervalseconds. Clears all statistics, waitsintervalseconds, then generates report. Implies-soption.-b/--begindate_timeβ Obtains past performance stats over an interval beginning atdate_time. Implies-soption.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.-e/--enddate_timeβ Obtains past performance stats over an interval ending atdate_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.-M/--pmadirectβ Accesses performance statistics using direct PMA.-A/--allportsβ Gets PortInfo for down switch ports. Uses direct SMA to get this data. If used with-M, also gets PMA stats for down switch ports.-c/--configfileβ Specifies the error thresholds configuration file. Default is the/etc/opa/opamon.conffile.-L/--limitβ Limits operation to exact specified focus with-Ffor port error counters check (-o errors) and port counters clear (-Cor-i). Normally, the neighbor of each selected port is also checked/cleared. Does not affect other reports.-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 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.
π Point Syntax π
gid:valueβvalueis numeric port GID of form:subnet:guid.lid:valueβvalueis numeric LID.lid:value:nodeβvalueis numeric LID, selects entire node with given LID.lid:value:port:value2βvalueis numeric LID of node,value2is port number.portguid:valueβvalueis numeric port GUID.nodeguid:valueβvalueis numeric node GUID.nodeguid:value1:port:value2βvalue1is numeric node GUID,value2is port number.iocguid:valueβvalueis numeric IOC GUID.iocguid:value1:port:value2βvalue1is numeric IOC GUID,value2is port number.systemguid:valueβvalueis numeric system image GUID.systemguid:value1:port:value2βvalue1is the numeric system image GUID,value2is port number.ioc:valueβvalueis IOC Profile ID String (IOC Name).ioc:value1:port:value2βvalue1is IOC Profile ID String (IOC Name),value2is port number.iocpat:valueβvalueis glob pattern for IOC Profile ID String (IOC Name).iocpat:value1:port:value2βvalue1is glob pattern for IOC Profile ID String (IOC Name),value2is port number.ioctype:valueβvalueis IOC type (SRPorOTHER).ioctype:value1:port:value2βvalue1is IOC type (SRPorOTHER);value2is port number.node:valueβvalueis node description (node name).node:value1:port:value2βvalue1is node description (node name),value2is port number.nodepat:valueβvalueis glob pattern for node description (node name).nodepat:value1:port:value2βvalue1is the glob pattern for the node description (node name),value2is port number.nodedetpat:valueβvalueis glob pattern for node details.nodedetpat:value1:port:value2βvalue1is the glob pattern for the node details,value2is port number.nodetype:valueβvalueis node type (SWorFI).nodetype:value1:port:value2βvalue1is node type (SWorFI),value2is port number.rate:valueβvalueis string for rate (25g,50g,75g,100g), omits switch mgmt port0.portstate:valueβvalueis a string for state (down,init,armed,active,notactive,initarmed).portphysstate:valueβvalueis a string for PHYs state (polling,disabled,training,linkup,recovery,offline,test)mtucap:valueβvalueis MTU size (2048,4096,8192,10240), omits switch mgmt port0.labelpat:valueβvalueis glob pattern for cable label.lengthpat:valueβvalueis glob pattern for cable length.cabledetpat:valueβvalueis glob pattern for cable details.cabinflenpat:valueβvalueis glob pattern for cable info length.cabinfvendnamepat:valueβvalueis glob pattern for cable info vendor name.cabinfvendpnpat:valueβvalueis glob pattern for cable info vendor part number.cabinfvendrevpat:valueβvalueis glob pattern for cable info vendor revision.cabinfvendsnpat:valueβvalueis glob pattern for cable info vendor serial number.cabinftype:valueβvalueis eitheroptical,passive_copper,active_copper, orunknown.linkdetpat:valueβvalueis glob pattern for link details.portdetpat:valueβvalueis glob pattern for port details.smβ Specifies the master subnet manager (SM).smdetpat:valueβvalueis glob pattern for SM details.route:point1:point2β Specifies all ports along the routes between the two given points.led:valueβvalueis eitheronorofffor LED port beacon.linkqual:valueβ Specifies the ports with a link quality equal tovalue.linkqualLE:valueβ Specifies the ports with a link quality less than or equal tovalue.linkqualGE:valueβ Specifies the ports with a link quality greater than or equal tovalue.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 tovalue.
π§ The script bit π§
The portion of the script that calls opareport and opaxmlextract follows:
opareport -x -d 10 -s -o errors -T $@ | opaxmlextract -d ;
-e Rate -e MTU -e LinkDetails -e CableLength -e CableLabel
-e CableDetails -e Port.NodeDesc -e Port.PortNum -e SymbolErrors.Value
π Examples π
opaextractstat topology_file
opaextractstat topology_file -c my_opamon.conf
That's the whole page, bestie β no notes, no skips, no cap. π«Ά
Copyright(C) 2015-2019 Intel Corporation π and yeah, it's opaextractstat(8) from the IFSFFCLIRG (Man Page) set. Bye babes, go read your symbol errors πΈβ¨
π¦ 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