- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-H3C S12500 Software Patching Examples | 113.87 KB |
Contents
Example: Patching software for a standalone device
Configuration restrictions and guidelines
Example: Patching software for an IRF fabric
Configuration restrictions and guidelines
Introduction
This document provides software patching examples that use ISSU 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 ISSU.
Example: Patching software for a standalone device
Network requirements
As shown in Figure 1, the device and the TFTP server can reach each other. The device has one active MPU in slot 0 and one standby MPU in slot 1. The MPUs are running S12500-CMW710-SYSTEM-R7328P02, and they have not been patched before.
Use the patch image file S12500-CMW710-SYSTEM-R7328P02H01.bin to fix bugs without rebooting the device.
Software version used
This configuration example was created and verified on S12500-CMW710-R7328P02.
Configuration restrictions and guidelines
When you patch software for a standalone device, 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 S12500-CMW710-R7328P02, you must use S12500-CMW710-SYSTEM-R7328P02H01.bin.
Configuration procedures
# Download the patch image file S12500-CMW710-SYSTEM-R7328P02H01.bin from the TFTP server to the root directory of the flash memory on the active MPU.
<Sysname> tftp 2.2.2.2 get S12500-CMW710-SYSTEM-R7328P02H01.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. This sequence is used because no patch images have been activated on the device.
<Sysname> install activate patch flash:/ S12500-CMW710-SYSTEM-R7328P02H01.bin slot 0
This operation maybe take several minutes, please wait.............Done.
<Sysname> install activate patch flash:/S12500-CMW710-SYSTEM-R7328P02H01.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:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on slot 0.1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on slot 1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on slot 1.1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on slot 3:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on slot 14:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.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:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Committed packages on slot 1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Configuration files
The system does not save the commands used in the configuration procedures to a configuration file.
Example: Patching software for an IRF fabric
Network requirements
As shown in Figure 2, the two-chassis IRF fabric and the TFTP server can reach each other. Each IRF member has one active MPU in slot 0 and one standby MPU in slot 1. The MPU in slot 0 of the master is the global active MPU. The members are running S12500-CMW710-R7328P02, and they have not been patched before.
Use the patch image file S12500-CMW710-SYSTEM-R7328P02H01.bin to fix bugs without rebooting the devices.
Software version used
This configuration example was created and verified on S12500-CMW710-R7328P02.
Configuration restrictions and guidelines
When you patch software for an IRF fabric, follow these restrictions and guidelines:
· The first time you install patch images, you must start with the global active MPU. For subsequent patch installations, you must start with the global standby MPUs.
· The patch image version must match the device model and Comware version. For example, to fix bugs in S12500-CMW710-R7328P02, you must use S12500-CMW710-SYSTEM-R7328P02H01.bin.
Configuration procedures
# Download the patch image file S12500-CMW710-SYSTEM-R7328P02H01.bin from the TFTP server to the root directory of the flash memory on the global active MPU.
<Sysname> tftp 2.2.2.2 get S12500-CMW710-SYSTEM-R7328P02H01.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. This sequence is used because no patch images have been activated on the IRF fabric.
<Sysname> install activate patch flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin chassis 1 slot 0
This operation maybe take several minutes, please wait.............Done.
<Sysname> install activate patch flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin chassis 1 slot 1
This operation maybe take several minutes, please wait.............Done.
<Sysname> install activate patch flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin chassis 2 slot 0
This operation maybe take several minutes, please wait.............Done.
<Sysname> install activate patch flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin chassis 2 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 chassis 1 slot 0:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on chassis 1 slot 0.1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on chassis 1 slot 1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on chassis 1 slot 1.1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on chassis 1 slot 3:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on chassis 1 slot 14:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on chassis 2 slot 0:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on chassis 2 slot 0.1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on chassis 2 slot 1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on chassis 2 slot 1.1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on chassis 2 slot 3:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Active packages on chassis 2 slot 14:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.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:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Committed packages on chassis 1 slot 1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Committed packages on chassis 2 slot 0:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Committed packages on chassis 2 slot 1:
cfa0:/S12500-CMW710-BOOT-R7328P02.bin
cfa0:/S12500-CMW710-SYSTEM-R7328P02.bin
flash:/S12500-CMW710-SYSTEM-R7328P02H01.bin
Configuration files
The system does not save the commands used in the configuration procedures to a configuration file.
Related documentation
· H3C S12500 Routing Switch Series Fundamentals Command Reference Release 7328
· H3C S12500 Routing Switch Series Fundamentals Configuration Guide Release 7328