Product specifications

5 – Detailed Descriptions of Command LineTools
Common Tool Options
5-10 D000006-000 Rev A
Q
1. -p option
2. PORTS environment variable
3. -t option
4. PORTS_FILE environment variable
5. /etc/sysconfig/iba/ports file
6. default of the first active port on system (0 :0 port specification)
For example, if the -p option is used and the PORTS_FILE environment variable
is also exported, the command will operate only on ports specified via the -p
option.
5.1.9.1
Port List Files
The -t option or the PORTS_FILE environment variable may be used to provide
the name of a file containing the list of local HCA ports to use. The default is
/etc/sysconfig/iba/ports. In some fabrics it may be useful to create
multiple files in /etc/sysconfig/iba representing different subsets of the
ports from which the user may operate. For example:
/etc/sysconfig/iba/ports-primary: ports for which this node is
primary
/etc/sysconfig/iba/ports-plain1: port(s) for plain1 subnet
/etc/sysconfig/iba/ports: list of all unique subnet ports
If a relative path is specified for the -t option or PORTS_FILE, the current
directory will be checked first, followed by /etc/sysconfig/iba/.
5.1.9.1.1
Port List File Format
Below is a sample port list file:
# this is a comment
1:1 # first port on 1st HCA
1:2 # second port on 1st HCA
2:1 # first port on 2nd HCA
3:0 # first active port on 3rd HCA
include /etc/sysconfig/iba/ports-plain2# included file
Each line of the port list file may specify a single port, a comment or include
another port list file.