- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Software Patching Examples | 74.45 KB |
Contents
Example: Patching software (in standalone mode)
Applicable hardware and software versions
Example: Patching software (in IRF mode)
Applicable hardware and software versions
Introduction
This document provides software patching examples that use install commands.
Prerequisites
The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.
This document assumes that you have basic knowledge of software patching that use install commands .
Example: Patching software (in standalone mode)
Network configuration
As shown in Figure 1, the device and the TFTP server can reach each other. The device has two MPUs: active MPU in slot 0 and standby MPU in slot 1. The device is running BOOT-R7753P05 and SYSTEM-R7753P05.
Use the patch image file SYSTEM-R7753P05H01.bin to fix bugs without rebooting the device.
Applicable hardware and software versions
The following matrix shows the hardware and software versions to which this configuration example is applicable:
Hardware |
Software version |
S12500G-AF |
Release 8053P05 and later |
S12500CR |
Release 8053P05 and later |
S10500X-G |
Release 7753P05 and later |
S7500X-G |
Release 7753P05 and later |
Restrictions and guidelines
When you patch software, follow these restrictions and guidelines:
· The first time you install patch images, you must start with the active MPU. For subsequent patch installations, you must start with the standby MPU.
· The patch image version must match the device model and Comware version. For example, to fix bugs in R7753P05, you must use SYSTEM-R7753P05H01.bin.
Procedures
# Download the patch image file SYSTEM-R7753P05H01.bin from the TFTP server to the root directory of the flash memory on the active MPU.
<Sysname> tftp 2.2.2.2 get R7753P05H01.bin
Press CTRL+C to abort.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 25.2M 0 25.2M 0 0 210k 0 --:--:-- 0:02:02 --:--:-- 209k
# Activate the patch images on the active MPU first and then on the standby MPU.
<Sysname> install activate patch flash:/SYSTEM-R7753P05H01.bin slot 0
This operation maybe take several minutes, please wait.............Done.
<Sysname> install activate patch flash:/SYSTEM-R7753P05H01.bin slot 1
This operation maybe take several minutes, please wait.............Done.
The patch images take effect immediately after they are activated.
# For the patch images to take effect after a reboot, commit the software changes.
<Sysname> install commit
Verifying the configuration
# Verify that the patch images have been activated successfully.
<Sysname> display install active
Active packages on slot 0:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Active packages on slot 1:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Active packages on slot 3:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
# Verify that the patch image file has been added to the main startup software image list so the images can take effect after a reboot.
<Sysname> display install committed
Committed packages on slot 0:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Committed packages on slot 1:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Configuration files
The system does not save the commands used in the configuration procedures to a configuration file.
Example: Patching software (in IRF mode)
Network configuration
As shown in Figure 2, the two-chassis IRF fabric and the TFTP server can reach each other. The active MPU of the master device is in slot 0, and the standby MPU of the master device is in slot 1. The active MPU of the subordinate device is in slot 0, and the standby MPU of the subordinate device is in slot 1. The IRF members are running BOOT-R7753P05 and SYSTEM-R7753P05.
Use the patch image file SYSTEM-R7753P05H01.bin to fix bugs without rebooting the members.
Applicable hardware and software versions
The following matrix shows the hardware and software versions to which this configuration example is applicable:
Hardware |
Software version |
S12500G-AF |
Release 8053P05 and later |
S12500CR |
Release 8053P05 and later |
S10500X-G |
Release 7753P05 and later |
S7500X-G |
Release 7753P05 and later |
Restrictions and guidelines
When you patch software, follow these restrictions and guidelines:
· To install an image, you must begin with the master. On each member device, you must begin with the active MPU. To upgrade an image, you must begin with a subordinate device. On each member device, you must begin with the standby MPU.
· The patch image version must match the device model and Comware version. For example, to fix bugs in R7753P05, you must use SYSTEM-R7753P05H01.bin.
Procedures
# Download the patch image file SYSTEM-R7753P05H01.bin from the TFTP server to the root directory of the flash memory on the active MPU of the master.
<Sysname> tftp 2.2.2.2 get SYSTEM-R7753P05H01.bin
Press CTRL+C to abort.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 25.2M 0 25.2M 0 0 210k 0 --:--:-- 0:02:02 --:--:-- 209k
# Activate the patch images on the global active MPU first and then on the global standby MPUs.
<Sysname> install activate patch flash:/SYSTEM-R7753P05H01.bin chassis 2 slot 1
This operation maybe take several minutes, please wait.............Done.
<Sysname> install activate patch flash:/SYSTEM-R7753P05H01.bin chassis 2 slot 0
This operation maybe take several minutes, please wait.............Done.
<Sysname> install activate patch flash:/SYSTEM-R7753P05H01.bin chassis 1 slot 1
This operation maybe take several minutes, please wait.............Done.
<Sysname> install activate patch flash:/SYSTEM-R7753P05H01.bin chassis 1 slot 0
This operation maybe take several minutes, please wait.............Done.
The patch images take effect immediately after they are activated.
# For the patch images to take effect after a reboot, commit the software changes.
<Sysname> install commit
Verifying the configuration
# Verify that the patch images have been activated successfully.
<Sysname> display install active
Active packages on chassis 1 slot 0:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Active packages on chassis 1 slot 1:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Active packages on chassis 1 slot 3:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Active packages on chassis 2 slot 0:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Active packages on chassis 2 slot 1:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Active packages on chassis 2 slot 3:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
# Verify that the patch image file has been added to the main startup software image list so the images can take effect after a reboot.
<Sysname> display install committed
Committed packages on chassis 1 slot 0:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Committed packages on chassis 1 slot 1:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Committed packages on chassis 2 slot 0:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Committed packages on chassis 2 slot 1:
flash:/BOOT-R7753P05.bin
flash:/SYSTEM-R7753P05.bin
flash:/SYSTEM-R7753P05H01.bin
Configuration files
The system does not save the commands used in the configuration procedures to a configuration file.