- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
07-Software upgrade commands | 60.41 KB |
Contents
Software upgrade commands
As a best practice, store the startup images in the factory default file system. If you store the startup images in a hot swappable storage medium, do not remove the hot swappable storage medium during the startup process.
boot-loader file
Use boot-loader file to specify startup image files.
Syntax
boot-loader file boot filename system filename [ feature filename&<1-30> ] { backup | main }
boot-loader file ipe-filename { backup | main }
Views
User view
Predefined user roles
network-admin
Parameters
boot: Specifies a boot image file.
system: Specifies a system image file.
feature: Specifies a space-separated list of up to 30 feature image files.
filename: Specifies a .bin file in the filesystemname/filename.bin format. The file must be stored in the root directory of a file system on the device. Excluding the file system location section (if any), the value string can have a maximum of 63 characters. For more information about specifying a file, see file system management in Fundamentals Configuration Guide.
ipe-filename: Specifies an .ipe image package file in the filesystemname/filename.ipe format. The file must be stored in the root directory of a file system on the device. Excluding the file system location section (if any), the value string can have a maximum of 63 characters. For more information about specifying a file, see file system management in Fundamentals Configuration Guide.
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
The boot-loader file command overwrites the entire startup 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 image list will contain only the feature image files that are specified in the command.
To load the specified startup software images, you must reboot the system.
Incremental patches cannot be installed by using the boot-loader file command.
Examples
# Specify flash:/all.ipe as the main startup image file.
<Sysname> boot-loader file flash:/all.ipe main
Verifying the file flash:/all.ipe on the device.............Done.
H3C WX2560X images in IPE:
boot.bin
system.bin
This command will set the main startup software images. Continue? [Y/N]:Y
Add images to the device.
File flash:/boot.bin already exists on the device.
File flash:/system.bin already exists on the device.
Overwrite or rename the new file? [Yes/No/Rename]: R
Please input the file name (*.bin)[boot_1.bin]
(To use the recommended file name, press the Enter key):
Decompressing file boot.bin to flash:/boot_1.bin........................Done.
Please input the file name (*.bin)[system_1.bin]
(To use the recommended file name, press the Enter key):system_backup.bin
Decompressing file system.bin to flash:/system_backup.bin...........................Done.
Verifying the file flash:/boot_1.bin on the device...Done.
Verifying the file flash:/system_backup.bin on the device.............Done.
The images that have passed all examinations will be used as the main startup software images at the next reboot on the device..
# Specify flash:/boot.bin and flash:/system.bin as the main startup boot and system image files.
<Sysname> boot-loader file boot flash:/boot.bin system flash:/system.bin main
This command will set the main startup software images. Continue? [Y/N]:Y
The images that have passed all examinations will be used as the main startup software images at the next reboot on the device.
Related commands
display boot-loader
bootrom backup
Use bootrom backup to back up the BootWare image in the Normal area to the Backup area on a BootWare.
Syntax
bootrom backup [ all | part ]
Views
User view
Predefined user roles
network-admin
Parameters
all: Backs up the entire BootWare image, including the basic segment and the extended segment. If you do not specify the all or part keyword, this command backs up the entire BootWare image.
part: Backs up the extended BootWare image section.
Usage guidelines
A BootWare is divided into a Normal area and a Backup area. The BootWare image is stored in the Normal area and backed up to the Backup area. At startup, the system reads the BootWare image automatically from the Normal area. If the image is inaccessible, the system reads the BootWare image from the Backup area.
If the BootWare image in the Normal area is corrupted or requires a version rollback, use the bootrom restore command to copy the BootWare image in the Backup area to the Normal area.
Examples
# Back up the entire BootWare image from the Normal area to the Backup area.
<Sysname> bootrom backup
Now backing up the Boot ROM, please wait...
......Done.
Related commands
bootrom restore
bootrom read
Use bootrom read to back up the BootWare image in the Normal area of a BootWare to the default file system.
Syntax
bootrom read [ all | part ]
Views
User view
Predefined user roles
network-admin
Parameters
all: Backs up the entire BootWare image, including the basic segment and the extended segment. If you do not specify the all or part keyword, this command backs up the entire BootWare image.
part: Backs up the extended BootWare image section.
Usage guidelines
For each BootWare image you are backing up, this command creates two files in the default file system: basicbtm.bin for the basic segment and extendbtm.bin for the extended segment.
Examples
# Back up the BootWare image from the Normal area of BootWare to the flash memory.
<Sysname> bootrom read
Now reading the Boot ROM, please wait...
.........Done.
Related commands
bootrom update
bootrom restore
Use bootrom restore to replace the BootWare image in the Normal area with the BootWare image in the Backup area for image restoration or version rollback.
Syntax
bootrom restore [ all | part ]
Views
User view
Predefined user roles
network-admin
Parameters
all: Restores the entire BootWare image, including the basic segment and the extended segment. If you do not specify the all or part keyword, this command restores the entire BootWare image.
part: Restores the extended BootWare image section.
Examples
# Restore the entire BootWare image.
<Sysname> bootrom restore all
This command will restore the Boot ROM file, Continue? [Y/N]:y
Now restoring the Boot ROM, please wait...
......Done.
Related commands
bootrom backup
bootrom update
Use bootrom update to load the BootWare image from a file system to the Normal BootWare area.
Syntax
bootrom update file file [ all | part ]
Views
User view
Predefined user roles
network-admin
Parameters
file file: Specifies the file that contains the BootWare image. The file argument represents the file name, a string of 1 to 63 characters.
all: Loads the entire BootWare image, including the basic segment and the extended segment. If you do not specify the all or part keyword, this command restores the entire BootWare image.
part: Loads the extended BootWare image section.
Usage guidelines
BootWare images are contained in the .bin Comware boot image file. You can specify a Comware boot image file in this command to upgrade the BootWares in the system before you upgrade the Comware images. If you do not upgrade BootWares before upgrading Comware images, the system automatically upgrades BootWares as necessary when loading Comware images.
The new BootWare images take effect after you reboot the device.
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
This command will update the Boot ROM file, 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
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display the current software images and startup software images.
<Sysname> display boot-loader
Software images on the device:
Current software images:
Image Version
flash:/boot.bin Release 0053
flash:/system.bin Release 0053
Main startup software images:
Image Version
flash:/boot.bin Releae 0054
flash:/system.bin Releae 0054
Backup startup software images:
Image Version
flash:/boot.bin --
flash:/system.bin --
Table 1 Command output
Field |
Description |
Current software images |
Comware images that have been loaded. |
Main startup software images |
Primary Comware images for the next startup. |
Image |
Image name. |
Version |
Image version. If an image is corrupted or deleted, this field displays two hyphens (--). |
Backup startup software images |
Backup Comware images for the next startup. If the backup startup software images are not specified, this field displays None. |
Related commands
boot-loader file