opadisableports(8)
π NAME π
opadisableports β the manual page name is right there bestie, and ngl it does exactly what it says on the tin π
(Linux) Okay so here's the vibe: this tool takes a CSV file listing links you wanna disable, and then it actually disables them. Obsessed.
- For every HFI-SW link, it's the switch side of the link that gets disabled. π
- For every SW-SW link, it's the switch port closer to this node that gets disabled. π¦
The whole point of doing it this way? It generally lets a future opaenableports operation re-enable the port later, once the issue is fixed or you're ready to retest it. Iconic foresight, honestly. β¨
And the list of disabled ports? It's tracked in /etc/opa/disabled*.csv. She keeps receipts. π
β¨ SYNTAX β¨
opadisableports [-R] [-h hfi] [-p port] [ reason] < disable.csv
π OPTIONS π
--helpβ gives you the full help text, no gatekeeping π-Rβ tells it not to go fetch routes for computing distance. Instead, it disables the port of the switch with the lower LID (which is often the side closest to the SM), assuming that one is closer to this node. Lowkey a shortcut, highkey still works π§-hhfi β picks the HFI, numbered1..n. If you say0, that means the-p portyou give is a system-wide port number. Default is0. πΈ-pport β picks the port, numbered1..n. If you say0, that means the first active port. Default is0. π- reason β optional text explaining why these ports are getting disabled. If you use it, the text gets saved into the reason field of the output file. Tell your story bestie π
- disable.csv β the input file listing the links to disable. The list is of the form:
NodeGUID;PortNum;NodeType;NodeDesc;NodeGUID;PortNum;
NodeType;NodeDesc;Reason
The Reason field is optional. An input file like this can be generated by using opaextractbadlinks, opaextractmissinglinks, or opaextractsellinks. Convenient much? π
Info about the links that got disabled, plus the reason, is saved (in the same format) into an output file named/etc/opa/disabled:hfi:port.csvβ where thehfi:portpart of the filename gets replaced by the HFI number and the port number being operated on (like1:1or2:1). That CSV file can then be fed right back in as input toopaenableports. Circular queen π
π -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. Periodt.
π₯ EXAMPLES π₯
opadisableports 'bad cable' < disable.csv
opadisableports -h 1 -p 1 'dead servers' < disable.csv
opaextractsellinks -F lid:3 | opadisableports 'bad server'
opaextractmissinglinks -T /etc/opa/topology.0:0.xml | opadisableports
Piping tools into each other? That's main character energy fr fr π«Ά
Copyright(C) 2015-2019 Intel Corporation β so this page is from the IFSFFCLIRG man page set, and yeah, that's the whole thing bestie π Thanks for reading all the way through, you ate that ngl. Now go disable some ports responsibly, and don't forget to re-enable them later. 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