01-Fundamentals Command Reference

HomeSupportSwitchesS6300 SeriesReference GuidesCommand ReferencesH3C S6300 Switch Series Command References-Release 243x-6W10001-Fundamentals Command Reference
07-Software upgrade commands
Title Size Download
07-Software upgrade commands 46.68 KB

Software upgrade commands

The switch can start up from the built-in flash memory or the USB disk. As a best practice, store the startup images in the built-in flash memory. If you store the startup images on the USB disk, do not remove the 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 a storage medium in the system. The maximum length is 63 characters for the storage-medium:/base-filename.bin segments of the file path. This length limit does not include the IRF member ID or slot number in front of the storage medium segment. For more information about specifying a file path, see file system management in Fundamentals Configuration Guide.

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 in the system. The maximum length is 63 characters for the storage-medium:/base-filename.bin segments of the file path. This length limit does not include the IRF member ID or slot number information in front of the storage medium segment. For more information about specifying a file path, see file system management in Fundamentals Configuration Guide.

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 in the system. The maximum length is 63 characters for the storage-medium:/base-filename.bin segments of a file path. This length limit does not include the IRF member ID or slot number information in front of the storage medium segment. For more information about specifying a file path, see file system management in Fundamentals Configuration Guide.

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 in the system. The maximum length is 63 characters for the storage-medium:/base-filename.ipe segments of the file path. This length limit does not include the IRF member ID or slot number information in front of the storage medium segment.

all: Specifies startup images for all devices. If you specify this keyword, the system copies device-specific images automatically to the root directory of the storage medium on each device. For a successful upgrade, make sure the specified files include the upgrade images for all devices.

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, save the upgrade file to the root directory of a storage medium on the IRF fabric. 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:/6300.ipe as the backup startup image file for IRF member device 1.

<Sysname> boot-loader file flash:/6300.ipe slot 1 backup

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

S6300 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

Specify the backup startup software images for S6300.

Add images to slot 1.

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

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

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 backup startup software images at the next reboot on slot 1.

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

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 an ISSU 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...

Verifying the file flash:/boot.bin on slot 2..........Done.

Verifying the file flash:/system.bin on slot 2........................Done.

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.

Related commands

·     display boot-loader

·     install commit

bootrom update

Use bootrom update to load the Boot ROM image in the flash memory 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 memory. 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 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.

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 memory 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

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网