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] < disabled.csv

or

opaenableports --help

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 analysis. Default is first active port. The first HFI in the system is 1. The first port on an HFI is 1.

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.

disable.csv

File listing the ports to enable. The list is of the form: NodeGUID;PortNum;NodeDesc.

An input file like this is generated in /etc/sysconfig/opa/disabled* by opadisableports.

Examples

opaenableports < disabled.csv
opaenableports -p '1:1 2:1' < disabled.csv

Environment

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.