Generates a list of IPv4, IPv6, and/or TCP names in a format
acceptable for inclusion in the
/etc/sysconfig/opa/chassis file.
Syntax
opagenchassis [-t portsfile] [-p ports]
or
opagenchassis --help
Options
- --help
- Produces full help text.
- -t
portsfile
- File with list of local HFI ports used to access fabric for
analysis. Default is
/etc/sysconfig/opa/ports file.
- -p
ports
-
List of local
HFI ports used to access fabrics for
counter clear. 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.
Environment
- 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.
Examples
opagenchassis
opagenchassis -p '1:1 2:1'
opagenchassis >> /etc/sysconfig/opa/chassis
Or while editing the file, use a vi command to include its output,
such as:
:r! opagenchassis