01-Fundamentals

HomeSupportResource CenterH3C Access Controllers Command References(E5208P03 E5215P01 R5215P01)-6W10201-Fundamentals
07-Software upgrade commands
Title Size Download
07-Software upgrade commands 63.89 KB

Software upgrade commands

The WX1800H series, WX2500H series, and WX3000H series access controllers do not support the slot keyword or the slot-number argument.

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 a .bin boot image file in the [filesystemlocation]filesystemname:/filename.bin format. The file must be stored in the root directory of a file system on the device. The filesystemname:/filename.bin section can have a maximum of 63 characters. For more information about specifying a file, see file system management in Fundamentals Configuration Guide.

system system-package: Specifies a .bin system image file in the [filesystemlocation]filesystemname:/filename.bin format. The file must be stored in the root directory of a file system on the device. The filesystemname:/filename.bin section can have a maximum of 63 characters. For more information about specifying a file, see file system management in Fundamentals Configuration Guide.

feature feature-package: Specifies a space-separated list of up to 30 .bin feature image files. Specify each .bin file in the [filesystemlocation]filesystemname:/filename.bin format. The files must be stored in the root directory of a file system on the device. The filesystemname:/filename.bin section 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 [filesystemlocation]filesystemname:/filename.ipe format. The file must be stored in the root directory of a file system on the device. The filesystemname:/filename.ipe section can have a maximum of 63 characters. For more information about specifying a file, see file system management in Fundamentals Configuration Guide.

all: Specifies startup images for all IRF member devices. If you specify this keyword, the system upgrades all IRF member devices in an IRF fabric.

The following matrix shows the all keyword and hardware compatibility:

 

Hardware series

Model

Keyword compatibility

WX1800H series

WX1804H

WX1810H

WX1820H

No

WX2500H series

WX2510H

WX2540H

WX2560H

No

WX3000H series

WX3010H

WX3010H-L

WX3010H-X

WX3024H

WX3024H-L

No

WX3500H series

WX3508H

WX3510H

WX3520H

WX3540H

Yes

WX5500E series

WX5510E

WX5540E

Yes

WX5500H series

WX5540H

WX5560H

WX5580H

Yes

Access controller modules

EWPXM1MAC0F

EWPXM1WCME0

EWPXM2WCMD0F

LSQM1WCMX20

LSQM1WCMX40

LSUM1WCME0

LSUM1WCMX20RT

LSUM1WCMX40RT

Yes

 

slot slot-number: Specifies the IRF member ID of a member device.

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

To avoid configuration failure, make sure no other users are configuring or managing the device.

Use this command to upgrade software images. To load the startup software images, you must reboot the system.

Before you specify startup software image files, perform the following tasks:

·     On an IRF-incapable or standalone device, save the upgrade files to the root directory of the file system.

·     On an IRF fabric, save the upgrade files to the root directory of the file system on an IRF member device.

·     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:

¡     If you specify .bin files, the command cannot be executed.

¡     If you specify an .ipe file, the command sets all images as startup images except for the image that does not have a license.

For more information about licensing, see Fundamentals Configuration Guide.

If you specify a subordinate device, the system examines the root directory of the file system on the specified device for any file with the same name as the specified startup upgrade file. If no such a file exists, the system copies the specified file to the specified device and sets it as a startup image file. If a file with the same name exists, you must choose whether to overwrite the file already on the specified device.

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.

Examples

# (IRF-incapable devices.) Specify flash:/all.ipe as the main startup image file.

<Sysname> boot-loader file flash:/all.ipe main

Verifying the IPE file and the images............Done.

H3C WX2510H 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 the existing files? [Y/N]:Y

Decompressing file boot.bin to flash:/boot.bin........................Done.

Decompressing file system.bin to flash:/system.bin...............................Done.

The images that have passed all examinations will be used as the main startup software images at the next reboot on the device.

# (IRF-incapable devices.) 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.

# (IRF-capable devices.) Specify cfa0:/all.ipe as the main startup image file for IRF member device 1.

<Sysname> boot-loader file cfa0:/all.ipe slot 1 main

Verifying the IPE file and the images............Done.

H3C WX5510E images in IPE:

  boot.bin

  system.bin

This command will set the main startup software images. Continue? [Y/N]:Y

Add images to slot 1.

File cfa0:/boot.bin already exists on slot 1.

File cfa0:/system.bin already exists on slot 1.

Overwrite the existing files? [Y/N]:Y

Decompressing file boot.bin to cfa0:/boot.bin........................Done.

Decompressing file system.bin to cfa0:/system.bin...............................Done.

The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 1.

# (IRF-capable devices.) Specify cfa0:/all.ipe as the main startup image file for all IRF member devices.

<Sysname> boot-loader file slot2#cfa0:/all.ipe all main

Verifying the IPE file and the images..........................................................................Done.

H3C WX5510E images in IPE:

  boot.bin

  system.bin

This command will set the main startup software images. Continue? [Y/N]:y

Add images to slot 1.

File cfa0:/boot.bin already exists on slot 1.

File cfa0:/system.bin already exists on slot 1.

Overwrite the existing files? [Y/N]:y

Decompressing file boot.bin to cfa0:/boot.bin........................Done.

Decompressing file system.bin to cfa0:/system.bin........................Done.

The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 1.

File cfa0:/boot.bin already exists on slot 2.

Do you want to overwrite the file?

 Y: Overwrite the file.

 N: Not overwrite the file.

 A: From now on, overwrite or not overwrite without prompt.

Please make a choice. [Y/N/A]:a

What type of overwrite operation do you want to perform?

 Y: Overwrite without prompt.

 N: Not overwrite or display prompt.

 Q: Return to the previous step.

Please make a choice. [Y/N/Q]:y

An existing file will be overwritten without prompt if it has the same name as any upgrade file.

Loading......................Done.

Loading......................Done.

Loading......................Done.

Loading......................Done.

Loading......................Done.

Loading......................Done.

The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 2.

The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 3.

Decompression completed.

Do you want to delete cfa0:/all.ipe now? [Y/N]:n

Related commands

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

The following matrix shows the command and hardware compatibility:

 

Hardware series

Model

Command compatibility

WX1800H series

WX1804H

WX1810H

WX1820H

No

WX2500H series

WX2510H

WX2540H

WX2560H

No

WX3000H series

WX3010H

WX3010H-L

WX3010H-X

WX3024H

WX3024H-L

No

WX3500H series

WX3508H

WX3510H

WX3520H

WX3540H

Yes

WX5500E series

WX5510E

WX5540E

Yes

WX5500H series

WX5540H

WX5560H

WX5580H

Yes

Access controller modules

EWPXM1MAC0F

EWPXM1WCME0

EWPXM2WCMD0F

LSQM1WCMX20

LSQM1WCMX40

LSQM1WCMX40RT

LSUM1WCME0

LSUM1WCMX20RT

Yes

 

You can use this command to synchronize startup images after adding new member devices.

If any of the startup software images require a license, register and activate a license for the image on the new subordinate device before executing this command. Use the display license feature command to verify the licensing state of software images.

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 on the master device.

·     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 on the master device.

Startup image synchronization fails if any software image being synchronized is not available or is corrupted.

Examples

# Synchronize startup images from the master device to subordinate device 1.

<Sysname> boot-loader update slot 1

This command will update the specified standby MPU. Continue? [Y/N]:y

Updating. Please wait...

Copying main startup software images to slot 1. Please wait...

Done.

Setting copied images as main startup software images for slot 1...

Done.

Successfully updated the startup software images of slot 1.

Related commands

display boot-loader

bootrom backup

Use bootrom backup to back up the Boot ROM image in the Normal area to the Backup area on a Boot ROM.

Syntax

bootrom backup slot slot-number-list [ all | part ]

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies an IRF member device by its member ID or a range of IRF member devices 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.

all: Backs up the entire Boot ROM image, including the basic segment and the extended segment. If you do not specify either all or part, this command backs up the entire Boot ROM image.

part: Backs up the extended Boot ROM image section.

Usage guidelines

A Boot ROM is divided into a Normal area and a Backup area. The Boot ROM image is stored in the Normal area and backed up to the Backup area. At startup, the system reads the Boot ROM image automatically from the Normal area. If the image is inaccessible, the system reads the Boot ROM image from the Backup area.

If the Boot ROM image in the Normal area is corrupted or requires a version rollback, use the bootrom restore command to copy the Boot ROM image in the Backup area to the Normal area.

Examples

# Back up the entire ROM image from the Normal area to the Backup area.

<Sysname> bootrom backup all

Now backing up the Boot ROM, please wait.........Done.

Related commands

bootrom restore

bootrom read

Use bootrom read to back up the Boot ROM image in the Normal area of a Boot ROM to the file system.

Syntax

bootrom read slot slot-number-list [ all | part ]

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies an IRF member device by its member ID or a range of IRF member devices 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.

all: Backs up the entire Boot ROM image, including the basic segment and the extended segment. If you do not specify either all or part, this command backs up the entire Boot ROM image.

part: Backs up the extended Boot ROM image section.

Usage guidelines

For each Boot ROM image you are backing up, this command creates two files (basicbtm.bin and extendbtm.bin) for the basic segment and the extended segment in the file system. If the Boot ROM image in the Normal area of a Boot ROM is corrupted or requires a version rollback, use the bootrom update command to read the two backup files from the file system to the Boot ROM.

Examples

# Back up the Boot ROM image from the Normal area of Boot ROM to the file system.

<Sysname> bootrom read all

  Now reading the Boot ROM, please wait............Done.

Related commands

bootrom update

bootrom restore

Use bootrom restore to replace the Boot ROM image in the Normal area with the Boot ROM image in the Backup area for image restoration or version rollback.

Syntax

bootrom restore slot slot-number-list [ all | part ]

Views

User view

Predefined user roles

network-admin

Parameters

slot slot-number-list: Specifies a space-separated list of up to seven slot number items. An item specifies an IRF member device by its member ID or a range of IRF member devices 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.

all: Restores the entire Boot ROM image, including the basic segment and the extended segment. If you do not specify either all or part, this command restores the entire Boot ROM image.

part: Restores the extended Boot ROM image section.

Examples

# Restore the entire Boot ROM 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 Boot ROM image in the file system to the Normal area of Boot ROM.

Syntax

bootrom update file file-url slot slot-number-list [ all | part ]

Views

User view

Predefined user roles

network-admin

Parameters

file file-url: Specifies the file that contains the Boot ROM image in the file system. 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 specifies an IRF member device by its member ID or a range of IRF member devices 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.

all: Loads the entire Boot ROM image, including the basic segment and the extended segment. If you do not specify either all or part, this command restores the entire Boot ROM image.

part: Loads the extended Boot ROM image section.

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 file system 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, this command displays the software images on each IRF member device.

Examples

# (IRF-incapable devices.) Display the current software images and startup software images.

<Sysname> display boot-loader

Software images on the device:

Current software images:

  flash:/boot.bin

  flash:/system.bin

Main startup software images:

  flash:/boot.bin

  flash:/system.bin

Backup startup software images:

  flash:/boot.bin

  flash:/system.bin

# (IRF-capable devices.) Display the current software images and startup software images.

<Sysname> display boot-loader

Software images on slot 1:

Current software images:

  cfa0:/boot.bin

  cfa0:/system.bin

Main startup software images:

  cfa0:/boot.bin

  cfa0:/system.bin

Backup startup software images:

  cfa0:/boot.bin

  cfa0:/system.bin

Table 1 Command output

Field

Description

Software images on the device

Comware images on the device.

This field is available only on IRF-incapable devices.

Software images on slot slot-number

Comware images on the member device. The slot number represents the device's IRF member ID.

This field is available only on IRF-capable devices.

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