Blame IbaTools/man/opaswitchadmin.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 opaswitchadmin 8 "Intel Corporation" "Copyright(C) 2015\-2019" "IFSFFCLIRG (Man Page)"
Packit 857059
.SH NAME
Packit 857059
opaswitchadmin
Packit 857059
Packit 857059
Packit 857059
.PP
Packit 857059
Packit 857059
\fB(Switch)\fR
Packit 857059
Performs a number of multi-step initialization and verification operations against one or more externally managed Intel(R) Omni-Path switches. The operations include initial switch setup, firmware upgrades, chassis reboot, and others.
Packit 857059
.SH Syntax
Packit 857059
opaswitchadmin [-c] [-N \[aq]\fInodes\fR\[aq]] [-L  \fInodefile\fR] [-O] [-P  \fIpackages\fR]
Packit 857059
.br
Packit 857059
[-a  \fIaction\fR]
Packit 857059
[-t  \fIportsfile\fR] [-p  \fIports\fR]  \fIoperation\fR ...
Packit 857059
.SH Options
Packit 857059
Packit 857059
.TP 10
Packit 857059
-help
Packit 857059
Packit 857059
Produces full help text.
Packit 857059
Packit 857059
.TP 10
Packit 857059
-c
Packit 857059
Packit 857059
Overwrites result files from any previous run before starting this run.
Packit 857059
Packit 857059
.TP 10
Packit 857059
-N \fInodes\fR
Packit 857059
Packit 857059
Specifies the list of nodes to execute the operation against.
Packit 857059
Packit 857059
.TP 10
Packit 857059
-L \fInodefile\fR
Packit 857059
Packit 857059
Specifies the file with nodes in the cluster. Default is /etc/opa/switches file.
Packit 857059
Packit 857059
.TP 10
Packit 857059
-P \fIpackages\fR
Packit 857059
Packit 857059
For upgrades: Specifies the file name or directory where the firmware image is to install. For the directory specified, .emfw file in the directory tree is used. shell wild cards may also be used within quotes.
Packit 857059
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 fabrics for switch access. Default is /etc/opa/ports file.
Packit 857059
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 switch access.
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
-a \fIaction\fR
Packit 857059
Packit 857059
Specifies an action for firmware file for switch upgrade. The action argument can be one or more of the following:
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
select
Packit 857059
Ensures firmware is in primary (Default).
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
run
Packit 857059
Ensures firmware is in primary and running.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.TP 10
Packit 857059
-O
Packit 857059
Packit 857059
Specifies the override for firmware upgrades, bypasses the previous firmware version checks, and forces the update unconditionally.
Packit 857059
Packit 857059
.TP 10
Packit 857059
\fIoperation\fR
Packit 857059
Packit 857059
Performs the specified \fIoperation\fR, which can be one or more of the following:
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
reboot
Packit 857059
Reboots switches, ensures they go down and come back.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
configure
Packit 857059
Runs wizard to set up switch configuration.
Packit 857059
Packit 857059
.TP 10
Packit 857059
.BR
Packit 857059
Packit 857059
.PP
Packit 857059
Packit 857059
.B NOTE:
Packit 857059
You must reboot the switch for any new settings to be applied.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
upgrade
Packit 857059
Upgrades installation of all switches.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
info
Packit 857059
Reports firmware and hardware version, part number, and data rate capability of all nodes.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
hwvpd
Packit 857059
Completes hardware Vital Product Data (VPD) report of all nodes.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
ping
Packit 857059
Pings all nodes and tests for presence.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
fwverify
Packit 857059
Reports integrity of failsafe firmware of all nodes.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.RS
Packit 857059
.TP 10
Packit 857059
Packit 857059
.sp
Packit 857059
getconfig
Packit 857059
Gets port configurations of an externally managed switch.
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.PP
Packit 857059
For more information on operations, see
Packit 857059
\fIOperation Details\fR
Packit 857059
.
Packit 857059
.SH Example
Packit 857059
opaswitchadmin -c reboot
Packit 857059
.br
Packit 857059
Packit 857059
opaswitchadmin -P /root/ChassisFw \fIX.X.X.X.X\fR upgrade
Packit 857059
.br
Packit 857059
Packit 857059
opaswitchadmin -a run -P \[aq]*.emfw\[aq] upgrade
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
\fBOPASWITCHES\fR
Packit 857059
Packit 857059
List of nodes, used in absence of -N and -L options.
Packit 857059
Packit 857059
.TP 10
Packit 857059
\fBOPASWITCHES\(ulFILE\fR
Packit 857059
Packit 857059
File containing list of nodes, used in absence of -N and -L options.
Packit 857059
Packit 857059
.TP 10
Packit 857059
\fBFF\(ulMAX\(ulPARALLEL\fR
Packit 857059
Packit 857059
Maximum concurrent operations.
Packit 857059
Packit 857059
.TP 10
Packit 857059
\fBFF\(ulSERIALIZE\(ulOUTPUT\fR
Packit 857059
Packit 857059
Serialize output of parallel operations (yes or no).
Packit 857059
Packit 857059
.TP 10
Packit 857059
\fBFF\(ulTIMEOUT\(ulMULT\fR
Packit 857059
Packit 857059
Multiplier for all timeouts associated with this command. Used if the systems are slow for some reason.
Packit 857059
Packit 857059
.SH Details
Packit 857059
Packit 857059
.PP
Packit 857059
opaswitchadmin provides detailed logging of its results. During each run, the following files are produced:
Packit 857059
.IP \(bu
Packit 857059
test.res : Appended with summary results of run.
Packit 857059
.IP \(bu
Packit 857059
test.log : Appended with detailed results of run.
Packit 857059
.IP \(bu
Packit 857059
save\(ultmp/ : Contains a directory per failed test with detailed logs.
Packit 857059
.IP \(bu
Packit 857059
test\(ultmp*/ : Intermediate result files while test is running.
Packit 857059
.PP
Packit 857059
The -c option removes all log files.
Packit 857059
.PP
Packit 857059
Results from opaswitchadmin are grouped into test suites, test cases, and test items. A given run of opaswitchadmin represents a single test suite. Within a test suite, multiple test cases occur; typically one test case per chassis being operated on. Some of the more complex operations may have multiple test items per test case. Each test item represents a major step in the overall test case.
Packit 857059
.PP
Packit 857059
Each opaswitchadmin run appends to test.res and test.log and creates temporary files in test\(ultmp$PID in the current directory. the test.res file provides an overall summary of operations performed and their results. The same information is also displayed while opaswitchadmin is executing. test.log contains detailed information about what was performed, including the specific commands executed and the resulting output. The test\(ultmp directories contain temporary files that reflect tests in progress (or killed). The logs for any failures are logged in the save\(ultemp directory with a directory per failed test case. If the same test case fails more than once, save\(ultemp retains the information from the first failure. Subsequent runs of opaswitchadmin are appended to test.log. Intel recommends reviewing failures and using the -c option to remove old logs before subsequent runs of opaswitchadmin. opaswitchadmin also appends to punchlist.csv for failing switches.
Packit 857059
.PP
Packit 857059
opaswitchadmin implicitly performs its operations in parallel. However, as for the other tools, \fBFF\(ulMAX\(ulPARALLEL\fR can be exported to change the degree of parallelism. 1000 parallel operations is the default.
Packit 857059
Packit 857059
.SH Operation Details
Packit 857059
Packit 857059
.PP
Packit 857059
Packit 857059
\fB(Switch)\fR
Packit 857059
All operations against Intel(R) Omni-Path Fabric externally-managed switches (except ping) securely access the selected switches. If a password has been set, the -S option must be used to securely prompt for a password. In this case, the same password is used for all switches.
Packit 857059
.TP 10
Packit 857059
reboot
Packit 857059
Packit 857059
Reboots the given switches.
Packit 857059
Packit 857059
.IP
Packit 857059
Use the \fBFF\(ulMAX\(ulPARALLEL\fR value to select either a rolling reboot or a parallel reboot. In most cases, a parallel reboot is recommended for expediency.
Packit 857059
.TP 10
Packit 857059
upgrade
Packit 857059
Packit 857059
Upgrades the firmware on each specified switch. The -P option selects a directory containing a .emfw file or provides an explicit .emfw file for the switches. If more than one .emfw file is specified, the operation is undefined. The -a option selects the desired minimal state for the new firmware. Only the select and run options are valid for this operation.
Packit 857059
Packit 857059
.IP
Packit 857059
When the -a option specifies run, switches are rebooted. Use the \fBFF\(ulMAX\(ulPARALLEL\fR value to select a rolling upgrade or a parallel upgrade. In most cases, a parallel upgrade is recommended for expediency.
Packit 857059
.IP
Packit 857059
The upgrade process also sets the switch name.
Packit 857059
.IP
Packit 857059
The upgrade process is used to set, clear, or change the password of the switches using the -s option. When this option is specified, you are prompted for a new password to be set on the switches. To reset (clear) the password, press Enter when prompted. This option can be used to configure the switches to not require a password for subsequent operations. A change to the password does not take effect until the next reboot of the switch.
Packit 857059
.IP
Packit 857059
For more information about switch firmware, refer to the
Packit 857059
\fIIntel(R) Omni-Path Fabric Switches GUI User Guide\fR
Packit 857059
Packit 857059
and
Packit 857059
\fIIntel(R) Omni-Path Fabric Switches Release Notes\fR
Packit 857059
Packit 857059
.
Packit 857059
.TP 10
Packit 857059
configure
Packit 857059
Packit 857059
Runs the switch setup wizard, which asks a series of questions. Once the wizard has finished prompting for configuration information, all the selected switches are configured according to the entered responses. The following items are configurable for all Intel(R) Omni-Path Switch 100 Series :
Packit 857059
Packit 857059
.RS
Packit 857059
Packit 857059
.IP \(bu
Packit 857059
FM Enabled
Packit 857059
.IP \(bu
Packit 857059
Link CRC Mode
Packit 857059
.IP \(bu
Packit 857059
Link Width Supported
Packit 857059
.IP \(bu
Packit 857059
OPA Node Description
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.TP 10
Packit 857059
.BR
Packit 857059
Packit 857059
.PP
Packit 857059
Packit 857059
.B NOTE:
Packit 857059
Typically, the Node Description is updated automatically during a firmware upgrade, if it is configured properly in the switches file. Updating the node description is also available using the configure option without performing a firmware upgrade.
Packit 857059
Packit 857059
.TP 10
Packit 857059
.BR
Packit 857059
Packit 857059
.PP
Packit 857059
Packit 857059
.B NOTE:
Packit 857059
You must reboot the switch for any new settings to be applied.
Packit 857059
Packit 857059
.TP 10
Packit 857059
info
Packit 857059
Packit 857059
Queries the switches and displays the following information:
Packit 857059
Packit 857059
.RS
Packit 857059
Packit 857059
.IP \(bu
Packit 857059
Firmware version
Packit 857059
.IP \(bu
Packit 857059
Hardware version
Packit 857059
.IP \(bu
Packit 857059
Hardware part number, including revision information
Packit 857059
.IP \(bu
Packit 857059
Speed capability
Packit 857059
.IP \(bu
Packit 857059
Fan status
Packit 857059
.IP \(bu
Packit 857059
Power supply status
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.IP
Packit 857059
This operation also outputs a summary of various configuration settings for each switch within a fabric.
Packit 857059
.TP 10
Packit 857059
hwvpd
Packit 857059
Packit 857059
Queries the switches and displays the Vital Product Data (VPD) including:
Packit 857059
Packit 857059
.RS
Packit 857059
Packit 857059
.IP \(bu
Packit 857059
Serial number
Packit 857059
.IP \(bu
Packit 857059
Part number
Packit 857059
.IP \(bu
Packit 857059
Model name
Packit 857059
.IP \(bu
Packit 857059
Hardware version
Packit 857059
.IP \(bu
Packit 857059
Manufacturer
Packit 857059
.IP \(bu
Packit 857059
Product description
Packit 857059
.IP \(bu
Packit 857059
Manufacturer ID
Packit 857059
.IP \(bu
Packit 857059
Manufacture date
Packit 857059
.IP \(bu
Packit 857059
Manufacture time
Packit 857059
Packit 857059
.RE
Packit 857059
Packit 857059
.TP 10
Packit 857059
ping
Packit 857059
Packit 857059
Issues an inband packet to the switches to test for presence and reports on presence/non-presence of each selected switch.
Packit 857059
Packit 857059
.TP 10
Packit 857059
.BR
Packit 857059
Packit 857059
.PP
Packit 857059
Packit 857059
.B NOTE:
Packit 857059
It is not necessary to supply a password (using -S) for this operation.
Packit 857059
Packit 857059
.TP 10
Packit 857059
fwverify
Packit 857059
Packit 857059
Verifies the integrity of the firmware images in the EEPROMs of the selected switches.
Packit 857059
Packit 857059
.TP 10
Packit 857059
getconfig
Packit 857059
Packit 857059
Gets port configurations of an externally managed switch. This operation also outputs a summary of various configuration settings for each switch within a fabric. For example, in a fabric with seven switches, a report similar to the following is displayed.
Packit 857059
Packit 857059
.IP
Packit 857059
This summary helps determine if all switches have the same configuration, and if not, indicates how many have each value. If some of the values are not as expected, view the test.res file to identify which switches have the undesirable values.