opaenableports(8)

✨ opaenableports ✨

okay so bestie, welcome to opaenableports(8) from the IFSFFCLIRG man page family πŸ’– this one is a Linux situation and it is so useful.

πŸ’… NAME πŸ’…

opaenableports

(Linux) She takes a disabled ports input file and re-enables the ports you list. The input file can be /etc/opa/disabled*.csv or a user-created subset of one of those files. And here's the iconic part: after the port gets enabled, it is removed from /etc/opa/disabled*.csv. bye bye πŸ‘‹βœ¨


πŸŽ€ Syntax πŸŽ€

opaenableports [-h  hfi] [-p  port] < disabled.csv

πŸ¦‹ Options πŸ¦‹

  • --help β€” produces the full help text, no cap πŸ“–
  • -h hfi β€” specifies the HFI, numbered 1..n. Using 0 specifies that the -p port is a system-wide port number. Default is 0.
  • -p port β€” specifies the port, numbered 1..n. Using 0 specifies the first active port. Default is 0.
  • disabled.csv β€” specifies the input file listing the ports to enable 🫢 the list is of the form:
NodeGUID;PortNum;NodeType;NodeDesc;Ignored

An input file like this is generated in /etc/opa/disabled* by opadisableports. it's giving very much "the source of truth" energy πŸ’€


🌈 the -h and -p combo menu 🌈

bestie, these two little flags unlock a whole menu of selections. pick your fighter:

  • -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). she does not care what's active, periodt.
  • -h x -p y β€” HFI x, port y. the classic. the blueprint. πŸ‘‘

🌸 Examples 🌸

opaenableports < disabled.csv
opaenableports < /etc/opa/disabled:1:1.csv
opaenableports -h 1 -p 1 < disabled.csv

run them, love them, feel the power 🧚


⭐ Other Information ⭐

so if you get messages containing skipping ports, that means either the device is offline or the other end of the link has been disabled and the device is no longer accessible in-band. 😭

The end of the link previously disabled by opedisableports or opadisablehosts can be found in /etc/opa/disabled:1:1.csv. go look there bestie, the receipts are all in that file πŸ”πŸ’œ

ngl this is the part where you stop and actually read the file instead of guessing. iykyk.

Copyright(C) 2015-2019 Intel Corporation

and that's the whole page!! πŸŽ€πŸ’– big love from the IFSFFCLIRG man page collection, copyright 2015-2019 Intel Corporation, filed under opaenableports(8) β€” now go enable those ports and slay βœ¨πŸ‘‘πŸ¦‹