8.4.3.3 Patchmgr Syntax for RoCE Network Fabric Switches
You can use patchmgr to update software for RoCE Network Fabric switches.
Prerequisites
Patchmgr is run on the "driving system", which is an Oracle Exadata database server or a non-Oracle Exadata system running Oracle Linux. This allows patchmgr to run from a central server to update multiple Oracle Exadata systems.
Note:
Prior to Oracle Exadata System Software release 19.3.9, you must runpatchmgr
as a non-root
user for patching RoCE Network Fabric switches.
Patchmgr Syntax for RoCE Network Fabric Switches
./patchmgr --roceswitches [roceswitch_list_file]
{ --upgrade [--roceswitch-precheck] [--unkey] [--force] |
--downgrade [--roceswitch-precheck] [--unkey] [--force] |
--apply-config [--unkey] [--force] |
--verify-config [ --newswitchlist new_list_file ] [--unkey] }
[ -log_dir { absolute_path_to_log_directory | AUTO } ]
Main Arguments
Argument | Description |
---|---|
--roceswitches [roceswitch_list_file] |
Specifies that patchmgr is acting on the RoCE Network Fabric switches. If specified, the switch list file identifies the RoCE Network Fabric switches. In its simplest form, the file has one switch host name or IP address on each line. In this case, each switch is assumed to be a leaf switch in a single-rack Exadata environment. For example:
To specify the configuration type for each switch, append a
colon (
For example:
For multi-rack configurations only, also specify a unique loopback octet for each switch. The loopback octet is the last octet of the switch loopback address, which uniquely identifies a switch. To specify the loopback octet for each switch, append a
period ( Caution: Every switch in a multi-rack configuration must have a unique loopback octet. If multiple switches use the same loopback octet, the RoCE Network Fabric cannot function correctly, resulting in a system outage. For the leaf switches, start with
For the spine switches, start with
For example, the switch list file for a 2-rack Exadata X9M system might contain:
If no file name is provided, then the command acts on all RoCE Network Fabric switches discovered from the host that is running patchmgr. |
--upgrade |
Upgrade the firmware on the RoCE Network Fabric switches. If required, this option also installs or upgrades the client software component that propagates switch alerts to Oracle Auto Service Request (ASR). Note: Commencing with the August 2022
|
--downgrade |
Downgrade the firmware on the RoCE Network Fabric switches. Note: Commencing with the August 2022
|
--apply-config |
Applies the golden configuration template to each switch. This option relies on tags in the switch list file, which specify the configuration type for each switch. |
--verify-config [ --newswitchlist new_list_file ] |
Verify each switch configuration against the golden configuration. Verification is performed automatically when using
If specified, the |
Supported Options
The following options are supported for RoCE Network Fabric switch configuration and firmware update:
Table 8-6 Patchmgr Options for RoCE Network Fabric Switches
Option | Description |
---|---|
--roceswitch-precheck |
Performs switch firmware upgrade or downgrade simulation on the RoCE Network Fabric switches in the list file
but does not perform the actual install. Use this option with
--upgrade or --downgrade .
|
--unkey |
In conjunction with |
--force |
In conjunction with In conjunction with |
-log_dir ( absolute_path_to_log_directory
| AUTO ) |
When running patchmgr as a non-root user, use Note: Specifying |
Usage Notes
- Starting with Oracle Exadata System Software release 19.3, the options are prefixed with
--
. Prior to this release, the options were prefixed with-
.
Example 8-13 Using patchmgr to Upgrade Firmware on RoCE Network Fabric Switches
This example runs the upgrade prerequisite checks on all detected switches, then upgrades the switches.
$ ./patchmgr --roceswitches --upgrade --roceswitch-precheck
$ ./patchmgr --roceswitches --upgrade
Example 8-14 Using patchmgr to Apply Golden Configurations to RoCE Network Fabric Switches
This example applies golden configuration settings to RoCE Network Fabric switches as specified in the
switches.lst
file. Logs for the operation are written to
/tmp/switchlogs
.
$ cat switches.lst
switch456-rocea0:leaf
switch456-roceb0:leaf
$ ./patchmgr --roceswitches switches.lst --apply-config –log_dir /tmp/switchlogs
Parent topic: Patchmgr Syntax