opaextractbadlinks(8)
π NAME π
opaextractbadlinks β okay bestie, this one spits out a CSV file listing all (or some!) of the links that blow past your opareport -o error thresholds. It's basically a glow-up front end for the opareport tool. And the best part? You can yeet that output straight into a spreadsheet or let other scripts parse it. obsessed π
β¨ Syntax β¨
opaextractbadlinks [opareport options]
π Options π
--helpβ gives you the full help text, no cap. π«Ά
opareport options
So these bad boys get passed straight through to opareport. The list below is the subset that's considered typical and useful for this command. And heads up β by design, this tool ignores the -o/--output report option. It's giving "we don't do that here". π
-h/--hfihfi β tells it which HFI, numbered1..n. If you pass0, that means the-p portis a system-wide port number. Default is0.-p/--portport β picks the port, numbered1..n. Pass0and you get the first active port. Default is0.-X/--infilesnapshot_input β builds a report from the data in the snapshot_input file. That file must have been generated during a previous-o snapshotrun. When you use this, the-s,-i,-C, and-aoptions get ignored. And yes, you can use'-'as snapshot_input to mean stdin. π¦-T/--topologytopology_input β uses the topology_input file to augment and verify fabric info. When it's used, various reports can get augmented with stuff that isn't available electronically (cable labels, for example).'-'also works here to specify stdin.-i/--intervalseconds β grabs performance stats over interval seconds. It clears all the stats, waits interval seconds, then generates the report. Implies-s.-b/--begindate_time β pulls past performance stats over an interval starting at date_time. Implies-s. date_time can be a time entered asHH:MM[:SS], or a date asmm/dd/YYYY,dd.mm.YYYY,YYYY-mm-dd, or a date followed by a time β for example,"2016-07-04 14:40". Relative times get read as"x [second|minute|hour|day](s) ago.-e/--enddate_time β pulls past performance stats over an interval ending at date_time. Implies-s.
date_time can be a time entered as HH:MM[:SS], or a date as mm/dd/YYYY, dd.mm.YYYY, YYYY-mm-dd, or a date followed by a time β for example, "2016-07-04 14:40". Relative times get read as "x [second|minute|hour|day](s) ago.
-C/--clearβ clears performance stats for all ports. Only stats with error thresholds get cleared, jsyk. And the clear happens after the report is generated.-a/--clearallβ nukes all performance stats for all ports. π-M/--pmadirectβ accesses performance stats using direct PMA.-A/--allportsβ getsPortInfofor down switch ports, using direct SMA to get that data. If you use it with-M, it also grabs PMA stats for down switch ports. Iconic multitasking.-c/--configfile β picks the error thresholds config file. Default is the/etc/opa/opamon.conffile.-L/--limitβ limits the operation to the exact specified focus with-F, for port error counters check (-o errors) and port counters clear (-Cor-i). Normally, the neighbor of each selected port gets checked/cleared too. Doesn't affect other reports, periodt.-F/--focuspoint β picks the focus area for the report. Used for all reports except route, to limit the scope of the report. Peep Point Syntax below for the deets. π
πΈ -h and -p selections πΈ
The -h and -p options let you do a whole variety of selections, bestie:
-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β value is the numeric port GID of the form:subnet:guid.lid:valueβ value is the numeric LID.lid:value:nodeβ value is the numeric LID; selects the entire node with the given LID.lid:value:port:value2β value is the numeric LID of the node, value2 is the port number.portguid:valueβ value is the numeric port GUID.nodeguid:valueβ value is the numeric node GUID.nodeguid:value1:port:value2β value1 is the numeric node GUID, value2 is the port number.iocguid:valueβ value is the numeric IOC GUID.iocguid:value1:port:value2β value1 is the numeric IOC GUID, value2 is the port number.systemguid:valueβ value is the numeric system image GUID.systemguid:value1:port:value2β value1 is the numeric system image GUID, value2 is the port number.ioc:valueβ value is the IOC Profile ID String (IOC Name).ioc:value1:port:value2β value1 is the IOC Profile ID String (IOC Name), value2 is the port number.iocpat:valueβ value is a glob pattern for the IOC Profile ID String (IOC Name).iocpat:value1:port:value2β value1 is a glob pattern for the IOC Profile ID String (IOC Name), value2 is the port number.ioctype:valueβ value is the IOC type (SRPorOTHER).ioctype:value1:port:value2β value1 is the IOC type (SRPorOTHER); value2 is the port number.node:valueβ value is the node description (node name).node:value1:port:value2β value1 is the node description (node name), value2 is the port number.nodepat:valueβ value is a glob pattern for the node description (node name).nodepat:value1:port:value2β value1 is the glob pattern for the node description (node name), value2 is the port number.nodedetpat:valueβ value is a glob pattern for node details.nodedetpat:value1:port:value2β value1 is the glob pattern for the node details, value2 is the port number.nodetype:valueβ value is the node type (SWorFI).nodetype:value1:port:value2β value1 is the node type (SWorFI), value2 is the port number.rate:valueβ value is a string for rate (25g,50g,75g,100g); omits switch mgmt port0.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 the MTU size (2048,4096,8192,10240); omits switch mgmt port0.labelpat:valueβ value is a glob pattern for the cable label.lengthpat:valueβ value is a glob pattern for the cable length.cabledetpat:valueβ value is a glob pattern for cable details.cabinflenpat:valueβ value is a glob pattern for cable info length.cabinfvendnamepat:valueβ value is a glob pattern for cable info vendor name.cabinfvendpnpat:valueβ value is a glob pattern for cable info vendor part number.cabinfvendrevpat:valueβ value is a glob pattern for cable info vendor revision.cabinfvendsnpat:valueβ value is a glob pattern for cable info vendor serial number.cabinftype:valueβ value is eitheroptical,passive_copper,active_copper, orunknown.linkdetpat:valueβ value is a glob pattern for link details.portdetpat:valueβ value is a glob pattern for port details.smβ specifies the master subnet manager (SM). πsmdetpat:valueβ value is a glob pattern for SM details.route:point1:point2β specifies all ports along the routes between the two given points.led:valueβ value is eitheronorofffor the 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 the file with the list of nodepats or node descriptions.nodepairpatfile:FILENAMEβ specifies the name of the 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.
π Examples π
# List all the bad links in the fabric:
opaextractbadlinks
# List all the bad links to a switch named "coresw1":
opaextractbadlinks -F "node:coresw1"
# List all the bad links to end-nodes:
opaextractbadlinks -F "nodetype:FI"
# List all the bad links on the 2nd HFI's fabric of a multi-plane fabric:
opaextractbadlinks -h 2
And that's a wrap, bestie! π This lil masterpiece is copyright Copyright(C) 2015-2019 Intel Corporation, it lives in the IFSFFCLIRG man page collection, and you're looking at opaextractbadlinks(8). Go find those bad links and slay. β¨π¦π
π¦ 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