- Table of Contents
-
- 01-Fundamentals Command Reference
- 00-Preface
- 01-CLI commands
- 02-Login management commands
- 03-RBAC 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-Python commands
- Related Documents
-
Title | Size | Download |
---|---|---|
07-Software upgrade commands | 83.60 KB |
Software upgrade commands
boot-loader file
Use boot-loader file to specify startup software image files.
Syntax
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 of up to 63 characters. The file path specified for the boot-package argument uses the storage-medium:/base-filename.bin format, for example, flash:/startup-boot.bin. The file path must not include the IRF member ID.
system system-package: Specifies the file path of a .bin system image file, a case-insensitive string of up to 63 characters. The file path specified for the system-package argument uses the storage-medium:/base-filename.bin format, for example, flash:/startup-system.bin. The file path must not include the IRF member ID.
feature feature-package: Specifies a space-separated list of up to 30 .bin feature image file paths. Each file path is a case-insensitive string of up to 63 characters. In addition, the file paths must use the storage-medium:/base-filename.bin format, for example, flash:/startup-a.bin. The file path must not include the IRF member ID.
ipe-filename: Specifies the file path of an .ipe image package file, a case-insensitive string of up to 63 characters. The file path must use the storage-medium:/base-filename.ipe format, for example, flash:/startup.ipe. The file path must not include the IRF member ID.
all: Upgrades the entire system. You can use this keyword to upgrade member devices in bulk. The system will automatically copy images to the root directory of the storage medium on each member device.
slot slot-number: Specifies the IRF member ID of the device for which the startup images are specified.
backup: Specifies the files as backup startup files. Backup startup images are used only when main images are not available.
main: Specifies the files as main startup files. The device always first attempts to start up with main images.
Usage guidelines
Use this command to upgrade the startup software images on each member device. To upgrade only the subordinate devices, you can also use the boot-loader update command.
Before specifying a startup software image file, you must perform the following tasks:
· Save the upgrade file to the root directory of a storage medium on any one of the IRF member devices.
The system automatically copies the upgrade file to the flash memory on the IRF member device 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.
When an .ipe image package file is used for upgrade, you must choose whether to delete the file after the system decompresses the file.
The boot-loader file command overwrites the entire startup software image list. To add new startup feature images, specify all feature image files in the old startup image list, including feature image files. The new startup software image list will contain only the feature image files that are specified in the command.
Examples
# Specify flash:/all.ipe as the backup startup image file for IRF member device 1.
<Sysname> boot-loader file flash:/all.ipe slot 1 backup
Verifying the IPE file and the images.....Done.
H3C S5130-54C-PWR-HI Switch images in IPE:
boot.bin
system.bin
This command will set the backup startup software images. Continue?[Y/N]:y
Do you want to overwrite files without prompt? [Y/N]:y
Add images to slot 1.
Decompressing file boot.bin to flash:/boot.bin...............Done.
Decompressing file system.bin to flash:/system.bin.....Done.
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 update
Use boot-loader update to synchronize startup images from the master to a subordinate device.
Syntax
boot-loader update { all | slot slot-number }
Views
User view
Predefined user roles
network-admin
Parameters
all: Upgrades all the subordinate devices.
slot: Specifies the IRF member ID of a subordinate device.
Usage guidelines
You can use this command to synchronize startup images after adding new member devices.
The startup images synchronized to the subordinate device are set as main startup images, regardless of whether the source startup images are main or backup.
If the master device has started up with main startup images, its main startup images are synchronized to the subordinate device, regardless of whether any main startup image has been respecified.
If the master device has started up with backup startup images, its backup startup images are synchronized to the subordinate device, regardless of whether any backup startup image has been respecified.
Startup image synchronization fails if any software image being synchronized is not available or has been corrupted.
If a patch installation or software upgrade has been performed, use the install commit command to update the set of main startup images on the master before software synchronization for startup image consistency between the master and the subordinate device.
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...
Copying main startup software images to slot 2. Please wait...
Done.
Setting copied images as main startup software images for 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 Boot ROM image in the flash to the Normal area of Boot ROM.
Syntax
bootrom update file file-url slot slot-number-list
Views
User view
Predefined user roles
network-admin
Parameters
file file-url: Specifies the file that contains the Boot ROM image in the flash. 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 IRF member ID items. For each item, you can specify an IRF member device or a range of IRF member devices.
· Specify an IRF member device by its member ID.
· Specify a range of IRF member devices in the form of start-member-id to end-member-id.
For example, the list can be slot 0 to 2 3.
Usage guidelines
If a software upgrade requires upgrading the Boot ROM image, you can use this command to preload the new Boot ROM image to the Boot ROM before upgrading Comware images. 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 Boot ROM image in the flash after completing the Boot ROM image upgrade.
Examples
# Use the file a.bin to upgrade the Boot ROM image.
<Sysname> bootrom update file a.bin
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
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 the member ID of an IRF member device. If you do not specify a member device, the command displays the software images on each IRF member device.
Examples
# Display current software images and startup software images.
<Sysname> display boot-loader
Software images on slot 0:
Current software images:
flash:/simware-cmw710-boot-a1701.bin
flash:/simware-cmw710-system-a1701.bin
Main startup software images:
flash:/simware-cmw710-boot-a1701.bin
flash:/simware-cmw710-system-a1701.bin
flash:/simware-cmw710-ssh-a1701.bin
Backup startup software images:
flash:/simware-cmw710-boot-a1701.bin
flash:/simware-cmw710-system-a1701.bin
Table 1 Command output
Field |
Description |
Software images on slot slot-number |
This field displays the Comware images on the IRF member device. The slot number represents the device's member ID. |
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 install active
Use display install active to display active software images.
Syntax
display install active [ slot slot-number ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies an IRF member by its member ID. If you do not specify this option, the command is applied to all IRF members.
verbose: Displays detailed information. If you do not specify this keyword, the command displays only the names of the active software images.
Examples
# Display active software images.
<System> display install active
Active packages on slot 2:
flash:/BOOT-E1105.bin
flash:/SYSTEM-E1105.bin
flash:/BOOT-E1105H05.bin
flash:/SYSTEM-E1105H05.bin
Active packages on slot 10:
flash:/BOOT-E1105.bin
flash:/SYSTEM-E1105.bin
flash:/BOOT-E1105H05.bin
flash:/SYSTEM-E1105H05.bin
Active packages on slot 17:
flash:/BOOT-E1105.bin
flash:/SYSTEM-E1105.bin
flash:/BOOT-E1105H05.bin
flash:/SYSTEM-E1105H05.bin
Related commands
install active
display install committed
Use display install committed to display main startup software images.
Syntax
display install committed [ slot slot-number ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies an IRF member by its member ID. If you do not specify this option, the command is applied to all IRF members.
verbose: Displays detailed information. If you do not specify this keyword, the command displays only the names of the software images.
Usage guidelines
After you execute the install commit command, use the display install committed command to verify that the main startup image list has been updated with the software image change.
Both the install commit and boot-loader file commands modify the main startup software image list.
For more information about main and backup startup images, see Fundamental Configuration Guide.
Examples
# Display the main startup software images.
<Sysname> display install committed
Committed packages on slot 1:
flash:/BOOT-E1105.bin
flash:/SYSTEM-E1105.bin
flash:/BOOT-E1105H05.bin
flash:/SYSTEM-E1105H05.bin
# Display detailed information about main startup software images.
<Sysname> display install committed verbose
Committed packages on slot 1:
flash:/BOOT-E1105.bin
[Package]
Vendor: H3C
Product: S5130
Service name: boot
Platform version: 7.1.045
Product version: Release 1118P02
Supported board: mpu
[Component]
Component: boot
Description: boot package
flash:/SYSTEM-E1105.bin
[Package]
Vendor: H3C
Product: S5130
Service name: system
Platform version: 7.1.045
Product version: Release 1118P02
Supported board: mpu
[Component]
Component: system
Description: system package
flash:/BOOT-E1105H05.bin
[Package]
Vendor: H3C
Product: S5130
Service name: boot-patch
Platform version: P005
Product version: Release 1118P02
Supported board: mpu
Component: boot-patch
Description: boot-patch package
flash:/SYSTEM-E1105H05.bin
[Package]
Vendor: H3C
Product: S5130
Service name: system-patch
Platform version: P005
Product version: Release 1118P02
Supported board: mpu
Component: system-patch
Description: system-patch package
Table 2 Command output
Field |
Description |
Detailed information about the software image. |
|
Image type: · boot—Boot image. · system—System image. · system-patch—System image patch. · boot-patch—Boot image patch. · Any other value indicates a feature image. |
|
Platform software version. |
|
Product software version. |
|
Cards supported by the software image. The mpu string indicates a member device. |
|
Information about components included in the image file. |
|
Component name. |
|
Component description. |
Related commands
· boot-loader file
· install commit
install activate
Use install activate to activate patch or feature images.
Syntax
install activate feature filename&<1-30> } slot slot-number
install activate patch filename { all | slot slot-number }
Views
User view
Predefined user roles
network-admin
Parameters
all: Specifies all IRF members.
feature: Specifies feature image files. You can specify a space-separated list of up to 30 feature image files.
patch: Specifies a patch image file.
filename: Specifies the name of a software image file on the master, in the format of storage-medium:/base-filename.bin. It can be a case-insensitive string of up to 63 characters and cannot contain slot information.
slot slot-number: Specifies an IRF member by its member ID.
Usage guidelines
The specified files must be saved in the root directory of the storage medium.
An image runs in memory immediately after it is activated. For an activated image to run after a reboot, you must commit the software change by using the install commit command.
If you specify a subordinate member for the command, the command copies the images to the subordinate member automatically.
At reboot, a subordinate device automatically synchronizes the master device's configuration and status data. You must wait for the synchronization to complete before using the install activate command on the subordinate device. To check the synchronization progress, use the display device command. The synchronization is completed when all member devices are in normal state.
Examples
# Activate the patch image system-patch.bin on member device 1.
<Sysname> install activate system-patch.bin slot 1
Related commands
· install commit
· install deactivate
install commit
Use install commit to commit software changes.
Syntax
install commit
Views
User view
Predefined user roles
network-admin
Usage guidelines
This command adds the patch image file to the startup image list with which the system started up.
· The image file is added to the main images list if the system started up with the main startup images.
· The image file is added to the backup image list if the system started up with the backup startup images.
For software changes to take effect at the next startup, you must execute this command after executing the install activate or install deactivate command.
Examples
# Commit software changes.
<Sysname> install commit
Related commands
· install activate
· install deactivate
install deactivate
Use install deactivate to deactivate patch images.
Syntax
install deactivate patch filename { all | slot slot-number }
install deactivate feature filename&<1-30> slot slot-number
Views
User view
Predefined user roles
network-admin
Parameters
patch: Specifies a patch image file.
feature: Specifies feature image files. You can specify a space-separated list of up to 30 feature image files.
filename: Specifies the file path of a .bin patch image file, a case-insensitive string of up to 63 characters in the storage-medium:/base-filename.bin format. The file must be stored in the root directory of the storage medium.
all: Specifies all IRF members.
slot slot-number: Specifies an IRF member by its member ID.
Usage guidelines
The specified files must be saved in the root directory of the storage medium.
You can deactivate only active patch images.
To prevent deactivated images from running after a reboot, you must confirm the software changes by using the install commit command.
At reboot, a subordinate device automatically synchronizes the master device's configuration and status data. You must wait for the synchronization to complete before using the install deactivate command on the subordinate device. To check the synchronization progress, use the display device command. The synchronization is completed when all member device are in normal state.
Examples
# Deactivate the patch images in file route-patch.bin on IRF member 1.
<Sysname> install deactivate patch flash:/route-patch.bin slot 1
Related commands
· display install active
· display install inactive