opaextractstat2(8)
β¨ NAME β¨
opaextractstat2 β bestie, this is the man page for opaextractstat2(8), and it is so much more than a name π
Okay so what does she DO? She does an error analysis of a fabric and hands you augmented information from a topology_file, including all the error counters. And the output? CSV format, so you can yeet it straight into a spreadsheet or let other scripts parse it π. She's a front end to the opareport and opaxmlextract tools β like, she's the popular girl with the good connections, no cap.
π Syntax π
opaextractstat2 topology_file [opareport options]
π Options π
--helpβ produces full help text. literally the "explain urself" button π«Άtopology_fileβ specifies thetopology_fileto use. that's your girl, the main character input πΈopareport optionsβ so the following options get passed toopareport. This subset is considered typical and useful for this command. But listen: by design, the tool ignores the-o/--outputreport option π (she does her own thing, periodt).-h/--hfihfi β specifies the HFI, numbered1..n. Using0specifies that the-pport port 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 thesnapshot_inputfile.snapshot_inputmust have been generated during a previous-o snapshotrun. When used, the-s,-i,-C, and-aoptions are ignored. And'-'may be used as thesnapshot_inputto specify stdin π-i/--intervalseconds β obtains performance statistics overintervalseconds. Clears all statistics, waitsintervalseconds, then generates report. Implies-soption. π she wipes and waits, iconic behavior-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. β οΈ order matters bestie-a/--clearallβ clears ALL performance statistics for all ports. yes, all of them. every last one π-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.-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 π¦
like, the full menu of ways to point at a thing. eat it up β¨
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 port 0.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 port 0.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 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 Internal -e LinkDetails -e CableLength -e CableLabel
-e CableDetails -e Port.NodeGUID -e Port.PortGUID -e Port.PortNum
-e Port.PortType -e Port.NodeDesc -e Port.PortDetails
-e PortXmitData.Value -e PortXmitPkts.Value -e PortRcvData.Value
-e PortRcvPkts.Value -e SymbolErrors.Value -e LinkErrorRecovery.Value
-e LinkDowned.Value -e PortRcvErrors.Value
-e PortRcvRemotePhysicalErrors.Value -e PortRcvSwitchRelayErrors.Value
-e PortXmitConstraintErrors.Value -e PortRcvConstraintErrors.Value
-e LocalLinkIntegrityErrors.Value -e ExcessiveBufferOverrunErrors.Value
πΈ Examples πΈ
opaextractstat2 topology_file
opaextractstat2 topology_file -c my_opamon.conf
okay that's the whole page bestie, you ate it, go run some fabric error analysis and be the main character of your own data center πβ¨
Copyright(C) 2015-2019 Intel Corporation β yes gorg, that's the copyright right there, and this whole thing is the opaextractstat2(8) page from IFSFFCLIRG (Man Page). mwah π
ππ¦
π¦ 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