Blame IbaTools/man/opagenswitches.manPage

Packit 857059
.\" .\" *********************************************************************
Packit 857059
.\" .\" *                                                                   *
Packit 857059
.\" .\" *             Copyright 2015-2019, Intel Corporation                *
Packit 857059
.\" .\" *                                                                   *
Packit 857059
.\" .\" *                       All Rights Reserved.                        *
Packit 857059
.\" .\" *                                                                   *
Packit 857059
.\" .\" *********************************************************************
Packit 857059
Packit 857059
.TH opagenswitches 8 "Intel Corporation" "Copyright(C) 2015\-2019" "IFSFFCLIRG (Man Page)"
Packit 857059
.SH NAME
Packit 857059
opagenswitches
Packit 857059
Packit 857059
Packit 857059
.PP
Packit 857059
Analyzes the present fabric and produces a list of Externally Managed switches in the required format for the /etc/opa/switches file.
Packit 857059
.SH Syntax
Packit 857059
opagenswitches [-t portsfile] [-p ports] [-R] [-L switches\(ulfile]
Packit 857059
.br
Packit 857059
[-o output\(ulfile]
Packit 857059
[-T topology\(ulfile] [-X snapshot\(ulfile] [-s] [-v level] [-K]
Packit 857059
.SH Options
Packit 857059
Packit 857059
.TP 10
Packit 857059
--help
Packit 857059
Packit 857059
Produces full help text.
Packit 857059
.TP 10
Packit 857059
-t \fIportsfile\fR
Packit 857059
Packit 857059
Specifies the file with list of local HFI ports used to access fabric(s) for analysis.
Packit 857059
.br
Packit 857059
Default is /etc/opa/ports file.
Packit 857059
.TP 10
Packit 857059
-p \fIports\fR
Packit 857059
Packit 857059
Specifies the list of local HFI ports used to access fabrics for counter clear.
Packit 857059
Packit 857059
.IP
Packit 857059
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,
Packit 857059
.br
Packit 857059
for example:
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
0:0
Packit 857059
First active port in system.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
0:y
Packit 857059
Port \fIy\fR within system.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
x:0
Packit 857059
First active port on HFI \fIx\fR.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
x:y
Packit 857059
HFI \fIx\fR, port \fIy\fR.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.TP 10
Packit 857059
-R
Packit 857059
Packit 857059
Does not attempt to get routes for computation of distance.
Packit 857059
.TP 10
Packit 857059
-s
Packit 857059
Packit 857059
Updates/resolves switch names using topology XML data.
Packit 857059
.TP 10
Packit 857059
-L \fIswitches\(ulfile\fR
Packit 857059
Packit 857059
Specifies the name of a pre-existing \fIswitches\(ulfile\fR to be used as input in conjunction with a topology file. When specified, the file is used instead of switches data obtained from the actual fabric. The updated switches data is output to stdout (common to all opagenswitches operations). Does not generate switches data. Must also use -s option.
Packit 857059
Packit 857059
.TP 10
Packit 857059
-o \fIoutput\(ulfile\fR
Packit 857059
Packit 857059
Writes switches data to \fIoutput\(ulfile\fR. Default is stdout.
Packit 857059
.TP 10
Packit 857059
-T \fItopology\(ulfile\fR
Packit 857059
Packit 857059
Specifies \fItopology\(ulfile\fR to use. May contain \[aq]%P\[aq] . Must also use -s.
Packit 857059
Packit 857059
.IP
Packit 857059
Link data in the topology file is compared to actual fabric link data (obtained by opareport -o links or opareport -X snapshot -o links). The data is also matched to a list of switch node GUIDs and the switch NodeDesc values are generated. This list is then applied to the switches data to update NodeDesc values. The comparison of topology link data to actual fabric link data starts with the host names. The host names in the actual fabric must match those in the topology file for the comparison to succeed. However, the comparison logic allows for some mismatches, which could be due to swapped or missing cables. Switch NodeDesc values are matched to GUIDs based on which switch has the greater number of matching links.
Packit 857059
.TP 10
Packit 857059
-X \fIsnapshot\(ulfile\fR
Packit 857059
Packit 857059
Uses \fIsnapshot\(ulfile\fR XML for fabric link information.
Packit 857059
.br
Packit 857059
May contain \[aq]%P\[aq] . Must also use -s.
Packit 857059
.TP 10
Packit 857059
-v \fIlevel\fR
Packit 857059
Packit 857059
Specifies the verbose level. Default is 0. Values include:
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
0
Packit 857059
No output.
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
1
Packit 857059
Progress output.
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
2
Packit 857059
Reserved.
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
4
Packit 857059
Time stamps.
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
8
Packit 857059
Reserved.
Packit 857059
.RE
Packit 857059
Packit 857059
.TP 10
Packit 857059
-K
Packit 857059
Packit 857059
Does not clean temporary files. Temporary files are CSV format and contain lists of links used during script operation. The files are not normally needed after execution, but they can be retained for subsequent inspection or processing.
Packit 857059
Packit 857059
.SH Environment Variables
Packit 857059
Packit 857059
.PP
Packit 857059
The following environment variables are also used by this command:
Packit 857059
.TP 10
Packit 857059
\fBPORTS\fR
Packit 857059
Packit 857059
List of ports, used in absence of -t and -p.
Packit 857059
.TP 10
Packit 857059
\fBPORTS\(ulFILE\fR
Packit 857059
Packit 857059
File containing list of ports, used in absence of -t and -p.
Packit 857059
.TP 10
Packit 857059
\fBFF\(ulTOPOLOGY\(ulFILE\fR
Packit 857059
Packit 857059
File containing topology XML data, used in absence of -T.
Packit 857059
.SH Examples
Packit 857059
opagenswitches
Packit 857059
.br
Packit 857059
Packit 857059
opagenswitches -p \[aq]1:1 2:1\[aq]
Packit 857059
.br
Packit 857059
Packit 857059
opagenswitches -o switches
Packit 857059
.br
Packit 857059
Packit 857059
opagenswitches -s -o switches
Packit 857059
.br
Packit 857059
Packit 857059
opagenswitches -L switches -s -o switches
Packit 857059
.br
Packit 857059
Packit 857059
opagenswitches -s -T topology.%P.xml
Packit 857059
.br
Packit 857059
Packit 857059
opagenswitches -L switches -s -T topology.%P.xml -X snapshot.%P.xml