opaenableports (8) - Linux Man Pages

NAME

opaenableports

(Linux) Accepts a disabled ports input file and re-enables the specified ports. The input file can be /etc/sysconfig/opa/disabled*.csv or a user-created subset of such a file. After enabling the port, it is removed from /etc/sysconfig/opa/disabled*.csv.

Syntax

opaenableports [-t portsfile] [-p ports] #8217lt; disabled.csv

Options

--help
Produces full help text.

-t portsfile
File with list of local HFI ports used to access fabric for operation. Default is /etc/sysconfig/opa/ports file.

-p ports
List of local HFI ports used to access fabric for operation. Default is first active port. The first HFI in the system is 1. The first port on an HFI is 1.

NOTE: In this release, in multi-rail fabrics, this script does not work as expected when supplied with multiple egress ports. The script processes the entire input file against the first egress port specified, leaving no data to be applied against other egress ports. As a workaround, call the script once for each egress port.

Uses the format hfi:port, for example:

0:0 First active port in system.

0:y Port y within system.

x:0 First active port on HFI x.

x:y HFI x, port y.

disabled.csv
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/sysconfig/opa/disabled* by opadisableports.

Examples

opaenableports #8217lt; disabled.csv
opaenableports #8217lt; /etc/sysconfig/opa/disabled:0:0.csv
opaenableports -p '1:1 1:2 2:1 2:2' #8217lt; disabled.csv

Environment Variables

The following environment variables are also used by this command:

PORTS
List of ports, used in absence of -t and -p.
PORTS_FILE
File containing list of ports, used in absence of -t and -p.