- Table of Contents
-
- 01-Fundamentals Command Reference
- 00-Preface
- 01-CLI commands
- 02-RBAC commands
- 03-Login management commands
- 04-FTP and TFTP commands
- 05-File system management commands
- 06-Configuration file management commands
- 07-Software upgrade commands
- 08-ISSU commands
- 09-Device management commands
- 10-Tcl commands
- 11-Password recovery control command
- 12-Python commands
- 13-License management commands
- Related Documents
-
Title | Size | Download |
---|---|---|
07-Software upgrade commands | 62.1 KB |
Software upgrade commands
Unless otherwise stated, the term "IRF system" refers to both IRF fabrics and IRF 3 systems. The term "IRF fabric" refers to both a standalone IRF fabric and the parent fabric in an IRF 3 system. In an IRF 3 system, the master device on the parent fabric is also the master of the entire system. For more information about IRF 3, see Virtual Technologies Configuration Guide.
The switch starts up from the default storage medium. The default storage medium can be the built-in flash memory or a USB disk. To change the default storage medium setting, access the BootWare menu.
As a best practice, store the startup images in the flash memory and specify the flash memory as the default storage medium.
If the switch is starting up from a USB disk, do not remove the or USB disk during the startup process.
boot-loader file
Use boot-loader file to specify startup software image files.
Syntax
boot-loader file boot boot-package system system-package [ feature feature-package&<1-30> ] { all | slot slot-number } { backup | main }
boot-loader file ipe-filename { all | slot slot-number } { backup | main }
Views
User view
Predefined user roles
network-admin
Parameters
boot boot-package: Specifies the file path of a .bin boot image file, a case-insensitive string. The file must be stored in the root directory of the default storage medium in the system. The maximum length is 63 characters for the storage-medium:/base-filename.bin segments of the file path. For more information about specifying a file, see "Managing the file system."
system system-package: Specifies the file path of a .bin system image file, a case-insensitive string. The file must be stored in the root directory of the default storage medium in the system. The maximum length is 63 characters for the storage-medium:/base-filename.bin segments of the file path. For more information about specifying a file, see "Managing the file system."
feature feature-package: Specifies a space-separated list of up to 30 .bin feature image file paths. The file paths are case insensitive. The files must be stored in the root directory of the default storage medium in the system. The maximum length is 63 characters for the storage-medium:/base-filename.bin segments of a file path. For more information about specifying a file, see "Managing the file system."
ipe-filename: Specifies the file path of an .ipe image package file, a case-insensitive string. The file must be stored in the root directory of the default storage medium in the system. The maximum length is 63 characters for the storage-medium:/base-filename.ipe segments of the file path.
all: Specifies startup images for all hardware components to which the specified images apply.
slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number.
backup: Specifies the files as backup startup image files. Backup images are used only when main images are not available.
main: Specifies the files as main startup image files. The device always first attempts to start up with main startup files.
Usage guidelines
Use this command to upgrade the startup software images on all IRF member devices. To upgrade only subordinate devices, you can also use the boot-loader update command.
If the specified software images require a license, register and activate a license for each image. If a license-based software image lacks a license, the command execution result is as follows:
· The command cannot be executed if you specify .bin image files.
· The command can set all the images except the license-based image that lacks a license if you specify an .ipe file.
For more information about licensing, see Fundamentals Configuration Guide.
The system automatically copies the upgrade file to the flash memory on a member device or PEX you are upgrading, and sets images in the file as startup images. If a file with the same name as the upgrade file already exists, you must choose whether to overwrite the existing file. If you specify an .ipe file, the system prompts for a choice to delete or retain the .ipe file after it successfully sets the .bin startup images. To delete the .ipe file, enter y at the prompt.
The boot-loader file command overwrites the entire startup software image list. To add new startup feature images, specify all feature image files, including feature image files in the old startup software image list. The new startup software image list will contain only the feature image files that are specified in the command.
You can use only the boot-loader pex file command to upgrade an S5120-HI PEX.
You can use both the boot-load file and boot-loader pex file commands to upgrade an S6300 PEX or an S5130-EI PEX. The boot-load file command sets PEX startup images in the local medium of the PEX. The boot-loader pex file command sets PEX startup images on the parent fabric. The PEX always attempts to start up with images on the local medium prior to images on the parent fabric.
Examples
# Specify boot.bin and system.bin as the backup startup image files for IRF member device 1.
<Sysname> boot-loader file boot flash:/boot.bin system flash:/system.bin slot 1 backup
This command will set the backup startup software images. Continue? [Y/N]:y
Verifying the file flash:/boot.bin on slot 1............Done.
Verifying the file flash:/system.bin on slot 1..........Done.
The images that have passed all examinations will be used as the backup startup
software images at the next reboot on slot 1.
· display boot-loader
boot-loader pex file
Use boot-loader pex file to specify startup PEX software image files stored on the parent fabric for PEXs.
Syntax
boot-loader pex pex-model file ipe ipe-filename
Views
User view
Predefined user roles
Parameters
pex pex-model: Specifies the PEX model, a case-insensitive string of 1 to 63 characters. You must enter the complete PEX model name for the device to identify the PEX correctly. For available PEX models, enter boot-loader pex ?
boot boot-package: Specifies the file path of a .bin boot image file, a case-insensitive string. The file must be stored in the root directory of a storage medium on the parent fabric. The maximum length is 63 characters for the storage-medium:/base-filename.bin segments of the file path. For more information about specifying a file, see "Managing the file system."
system system-package: Specifies the file path of a .bin system image file, a case-insensitive string. The file must be stored in the root directory of a storage medium on the parent fabric. The maximum length is 63 characters for the storage-medium:/base-filename.bin segments of the file path. For more information about specifying a file, see "Managing the file system."
feature feature-package: Specifies a space-separated list of up to 30 .bin feature image file paths. The file paths are case insensitive. The files must be stored in the root directory of a storage medium on the parent fabric. The maximum length is 63 characters for the storage-medium:/base-filename.bin segments of a file path. For more information about specifying a file, see "Managing the file system."
ipe ipe-filename: Specifies the file path of an .ipe image package file, a case-insensitive string. The file must be stored in the root directory of a storage medium on the parent fabric. The maximum length is 63 characters for the storage-medium:/base-filename.ipe segments of the file path. For more information about specifying a file, see "Managing the file system."
Usage guidelines
The PEX startup images on the parent devices are called remote startup images. The PEX startup images on the PEX's local medium are called local startup images.
PEXs must load startup software images from the parent fabric when they join the IRF 3 system for the first time. For new PEXs to be added, you must configure this command on the parent fabric.
For PEXs already in the IRF 3 system, you can use this command to upgrade PEX software.
· If PEXs do not have a storage medium, you must specify remote startup PEX software images.
· If PEXs have a storage medium, you can also use the boot-loader file command to set their local startup software images. These PEXs will always attempt to start up with the local images before they use the remote images.
Before you use the boot-loader pex file command, save the upgrade files to the root directory of the storage medium on the master device.
This command copies the PEX startup images to all IRF member devices. However, PEXs always start up with the software images on the master device. As a best practice to prevent PEX startup failure after a master/subordinate switchover, execute this command each time you add a new member device to the parent fabric.
To guarantee that the PEXs load the correct software when a master/subordinate switchover occurs, make sure the PEX startup software images are the same across the member devices of the parent fabric.
The boot-loader pex file command overwrites the entire PEX startup software image list. To add new startup feature images, specify all feature image files, including feature image files in the old startup software image list. The new startup software image list will contain only the feature image files that are specified in the command.
To verify the PEX startup software images on the member devices, use the display boot-loader pex command.
Examples
# Specify flash:/all.ipe as the remote startup software image file for the S5120HI PEXs.
<Sysname> boot-loader pex PEX-S5120HI file ipe flash:/all.ipe
Decompressing file rpu-s5120hi-boot.bin to flash:/rpu-s5120hi-boot.bin.....................Done.
Decompressing file rpu-s5120hi-system.bin to flash:/rpu-s5120hi-system.bin............................................ Done.
File flash:/rpu-s5120hi-boot.bin already exists on slot 1.
File flash:/rpu-s5120hi-system.bin already exists on slot 1.
Overwrite the existing files? [Y/N]:Y
Copying file flash:/rpu-s5120hi-boot.bin to slot2#flash:/rpu-s5120hi-boot.bin.........................Done.
Copying file flash:/rpu-s5120hi-system.bin to slot2#flash:/rpu-s5120hi-system.bin.............................................Done.
# Specify flash:/boot.bin and flash:/system.bin as the remote startup boot and system image files for the S5120HI PEXs.
<Sysname> boot-loader pex PEX-S5120HI file boot flash:/boot.bin system flash:/system.bin
Copying file flash:/boot.bin to slot1#flash:/boot.bin.........................Done.
Copying file flash:/system.bin to slot1#flash:/system.bin......................................................Done.
Related commands
boot-loader update
Use boot-loader update to synchronize startup images from the master device to subordinate devices.
Syntax
boot-loader update { all | slot slot-number }
Views
User view
Predefined user roles
network-admin
Parameters
all: Specifies all subordinate devices.
slot slot-number: Specifies a subordinate device by its member ID.
Usage guidelines
You can use this command to synchronize startup images after adding new member devices.
The images used for synchronization are in the main or backup startup software images list instead of the current software images list (see the display boot-loader command).
· The main images list is used if the master device started up with the main startup images.
· The backup image list is used if the master device started up with the main startup images.
The startup images synchronized to a subordinate device are set as main startup images, regardless of whether the source startup images are main or backup.
To guarantee a successful synchronization and software consistency across the subordinate devices, perform the following before synchronization:
· Verify that the current image list on the master device contains the same images as the source image list used for synchronization.
· Make sure that all source startup images are valid.
· If any of the startup software images require a license, register and activate a license for the image on the new member device before executing this command. Use the display license feature command to verify the licensing state of software images.
If an ISSU patch installation or software upgrade has been performed, use the install commit command to update the main startup images on the master device before software synchronization. This command ensures startup image consistency between the master device and subordinate devices.
Examples
# Synchronize startup images from the master device to subordinate device 2.
<Sysname> boot-loader update slot 2
This command will update the specified standby MPU. Continue? [Y/N]:y
Updating. Please wait...
Verifying the file flash:/BOOT.bin on slot 2.....Done.
Verifying the file flash:/SYSTEM.bin on slot 2..................................Done.
Successfully updated the startup software images of slot 2.
· display boot-loader
· install commit
bootrom update
Use bootrom update to load the BootWare image in the default storage medium to the Normal area of BootWare.
Syntax
bootrom update file file-url slot slot-number-list [ subslot subslot-number-list ]
Views
User view
Predefined user roles
network-admin
Parameters
file file-url: Specifies the file that contains the BootWare image. The file-url argument represents the file name, a string of 1 to 63 characters.
slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item can specify an IRF member device by its member ID or specify a PEX by its virtual slot number. An item can also specify a range of IRF member devices or PEXs in the form of start-slot-number to end-slot-number. The end slot number must be equal to or greater than the start slot number.
subslot subslot-number-list: Specifies a list of up to seven subslot number items. Each item specifies a interface card by its slot number or a range of interface cards in the form of start-subslot-number to end-subslot-number. If you do not specify interface cards, the BootWare image for interface cards is not loaded.
Usage guidelines
If a software upgrade requires upgrading the BootWare image, first use this command to preload the new BootWare image in the default storage medium to the BootWare. This command helps shorten the subsequent upgrade time, reducing the risk of upgrade failure caused by unexpected electricity failure.
To complete the upgrade, reboot the device.
To save space, you can delete the BootWare image from the default storage medium after completing the BootWare image upgrade.
Examples
# Use the file a.bin in the root directory of the flash memory to upgrade the BootWare image.
<Sysname> bootrom update file flash:/a.bin slot 1
This command will update the Boot ROM file on the specified board(s), Continue? [Y/N]:y
Now updating the Boot ROM, please wait...
.............Done.
Related commands
boot-loader file
bootrom-update security-check enable
Use bootrom-update security-check enable to enable BootWare image validity check.
Use undo bootrom-update security-check enable to disable BootWare image validity check.
Syntax
bootrom-update security-check enable
undo bootrom-update security-check enable
Default
BootWare image validity check is enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Before a BootWare image upgrade starts, this feature examines the upgrade BootWare image for file validity and incompatibility with hardware. If the BootWare image passes the check, the upgrade process starts. If the image check fails, the system does not perform the upgrade.
Examples
# Enable BootWare image validity check.
<Sysname> system-view
[Sysname] bootrom-update security-check enable
display boot-loader
Use display boot-loader to display current software images and startup software images.
Syntax
display boot-loader [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays the software images for all member devices.
Usage guidelines
This command displays the software images for the parent fabric and its PEXs,.
· For the parent fabric, this command displays both current and startup images.
· For PEXs that have a storage medium, this command displays the current images and local startup images.
· For PEXs that do not have a storage medium, this command displays the current images.
Examples
# Display the current software images and startup software images.
Software images on slot 1:
Current software images:
flash:/CMW710-BOOT-TEST.bin
flash:/CMW710-SYSTEM-TEST.bin
Main startup software images:
flash:/CMW710-BOOT-TEST.bin
flash:/CMW710-SYSTEM-TEST.bin
Backup startup software images:
None
Table 1 Command output
Field |
Description |
Software images on slot slot-number |
This field displays the Comware images on the specified IRF member device. |
Current software images |
Comware images that have been loaded. |
Main startup software images |
Main Comware images for the next startup. |
Backup startup software images |
Backup Comware images for the next startup. |
Related commands
boot-loader file
display boot-loader pex
Use display boot-loader pex to display PEX startup software images.
Syntax
display boot-loader pex [ pex-model ]
Views
Any view
Predefined user roles
Parameters
pex-model: Specifies a PEX model, a case-insensitive string of 1 to 63 characters. You must enter the complete PEX model name for the device to identify the PEX correctly. For available PEX models, enter boot-loader pex ?. If you do not specify a PEX model, the system displays all PEX startup software images on the parent fabric.
Usage guidelines
Use this command to identify the startup software images on the parent fabric for a PEX model.
When loading software from the parent fabric, PEXs always use the software images on the master device. For the PEXs to load the correct software after a master/subordinate switchover occurs, make sure the PEX startup software images are the same across the parent devices.
Examples
# Display the PEX startup software images.
<Sysname> display boot-loader pex
Main load software image files for PEXs to load from the parent device:
PEX model: PEX-S5120HI
flash:/rpu-s5120hi-boot.bin
flash:/rpu-s5120hi-system.bin
PEX model: PEX-S6300
flash:/boot.bin
flash:/system.bin
Backup load software image files for PEXs to load from the parent device:
PEX model: PEX-S5120HI
flash:/rpu-s5120hi-boot.bin
flash:/rpu-s5120hi-system.bin
PEX model: PEX-S6300
flash:/boot-backup.bin
flash:/system-backup.bin
reset boot-loader pex
Use reset boot-loader blade to clear the PEX startup software image list on the device.
Syntax
reset boot-loader pex pex-model
Views
User view
Predefined user roles
network-admin
Parameters
pex-model: Specifies the PEX model. You must enter the complete PEX model name for the device to identify the PEX correctly. For available PEX models, enter reset boot-loader pex ?.
Usage guidelines
To execute this command, make sure the device has completed startup and is operating correctly.
This command does not delete the startup software images from the device.
Examples
# Clear the startup software image list on the device for the PEX-S6300 switch.
<Sysname> reset boot-loader pex PEX-S6300
Related commands