01-Fundamentals Command Reference

HomeSupportReference GuidesCommand ReferencesH3C S5580X-EI[HI] & S5580S-EI Switch Series Command References-R1330Pxx-6W10001-Fundamentals Command Reference
07-Software upgrade commands
Title Size Download
07-Software upgrade commands 103.02 KB

Software upgrade commands

As a best practice, store the startup images in a fixed storage medium. 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> ] [ patch filename&<1-30> ] { all | slot slot-number } { backup | main }

boot-loader file ipe-filename [ patch filename&<1-30> ] { all | slot slot-number } { 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.

patch: Specifies a space-separated list of up to 30 incremental patch image files or 16 non-incremental patch image files. Because the boot, system, and feature images each can have one non-incremental patch image file, you can specify a maximum of 16 non-incremental patch 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 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 Fundamentals Configuration Guide.

all: Specifies all hardware components to which the specified images apply.

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

Application scenarios

When the current software cannot meet the requirements of network operation or user services, you can use this command to upgrade the software to optimize device performance to meet the requirements.

Operating mechanism

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.

If the upgrade images are not found in the file system on the slot specified to upgrade, the system automatically copies the images to that file system. The destination directory is the root directory of the file system. If the destination root directory already contains a startup image with the same name as an upgrade image, you must choose whether to overwrite the image.

Restrictions and guidelines

The system will verify the digital signature of the specified images before it updates the startup image list with the specified images. If the digital signature verification fails, the system will not update the startup image list and you will receive a digital signature verification failure message.

To load the specified startup software images, you must reboot the system.

Examples

# Specify flash:/all.ipe as the main startup image file.

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

Verifying the file flash:/all.ipe on slot 1..............Done.

H3C S5580S-24T6X-EI 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 flash:/boot.bin already exists on slot 1.

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

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.

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 main 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.

Syntax

boot-loader update { all | slot slot-number }

Views

User view

Predefined user roles

network-admin

Parameters

all: Synchronizes startup images from the master to all subordinate devices.

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

Usage guidelines

Application scenarios

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

Operating mechanism

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.

Examples

# Synchronize startup images to a slot.

<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 1...Done.

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

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

Done.

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

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

Done.

Successfully updated the startup software images of slot 2.

Related commands

display boot-loader

install commit

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

# Display the current software images and startup software images.

<Sysname> display boot-loader

Software images on slot 1:

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_backup.bin

  flash:/system_backup.bin

# Display the current software images and startup software images.

<Sysname> display boot-loader

Software images on slot 1:

Current software images:

  Image                 Version

  flash:/boot.bin       Release 0053

  flash:/system.bin     Release 0053

Main startup software images:

  Image                 Version

  flash:/boot.bin       Release 0054

  flash:/system.bin     Release 0054

Backup startup software images:

  Image                 Version

  flash:/b-boot.bin     --

  flash:/b-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.

 

Related commands

boot-loader file

display version

Use display version to display system version information.

Syntax

display version

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display system version information.

<Sysname> display version

H3C Comware Software, Version 9.1.055, Alpha 1112

Copyright (c) 2004-2022 New H3C Technologies Co., Ltd. All rights reserved.

H3C S5580S-24T6X-EI uptime is 0 weeks, 0 days, 2 hours, 14 minutes

Last reboot reason : User reboot

Boot image: flash:/s5580s_ei-cmw910-boot-a1112.bin

Boot image version: 9.1.055, Alpha 1112

  Compiled Aug 30 2022 14:00:00

System image: flash:/s5580s_ei-cmw910-system-a1112.bin

System image version: 9.1.055, Alpha 1112

  Compiled Aug 30 2022 14:00:00

Table 2 Command output

Field

Description

Last reboot reason

Reason for the last reboot:

·     User rebootThe reboot was manually initiated from a user interface, such as the CLI or SNMP.

·     Cold rebootThe reboot was caused by a power cycle.

·     Kernel abnormality rebootThe reboot was caused by kernel exceptions.

·     DeadLoop rebootThe reboot was caused by a kernel thread dead loop.

·     DEV HandShake rebootThe reboot was caused by a device management handshake failure.

·     SlaveSwitch rebootThe reboot was caused by a master/subordinate switchover.

·     Auto Update rebootThe reboot was caused by an automatic software upgrade.

·     Memory exhaust rebootThe reboot was caused by a card-memory-exhausted event.

·     Critical process abnormality rebootThe reboot was caused by core process abnormality.

display version-update-record

Use display version-update-record to display startup software image upgrade records.

Syntax

display version-update-record

Views

Any view

Predefined user roles

network-admin

network-operator

Usage guidelines

The device records its current startup software version information whenever it starts up, and records all software version update information. Such information can survive reboots.

Examples

# Display the startup software image upgrade records.

Record 1  (updated on Jan 18 2020 at 06:23:54):

 *Name        : comware-cmw710-boot.bin

  Version     : 7.1.070 Test 0001

  Compile time: Jan 25 2020 15:52:43

 

 *Name        : comware-cmw710-system.bin

  Version     : 7.1.070 Test 0001

  Compile time: Jan 25 2020 15:52:43

Table 3 Command output

Field

Description

Record n  (updated on Jan 18 2020 at 06:23:54)

Number of the startup software image upgrade record. Record 1 is the most recent record. The time in parentheses is UTC time.

Name

Software image file name.

*

The software image version changed during the upgrade.

 

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