---
name: "opaswenableall"
section: "8"
platform: "linux"
package: "opa-fastfabric"
version: "10.10.3.0.11-1+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/opaswenableall"
---

# opaswenableall(8)

## NAME

opaswenableall

**(Linux)** Re-enables all unused (or disabled) switch ports.

## Syntax

opaswenableall \[-t  *portsfile*\] \[-p  *ports*\] \[-F  *focus*\]

## Options

- \--help

  Produces full help text.

- \-t *portsfile*

  Specifies the file with list of local HFI ports used to access fabrics for operation. Default is /etc/opa/ports file.

- \-p *ports*

  Specifies the list of local HFI ports used to access fabrics for operation.

-

  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*.

- \-F *focus*

  Specifies an opareport -style focus argument to limit the scope of operation.

## Examples

opaswenableall\

opaswenableall -p '1:1 1:2 2:1 2:2'

## 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.
