H3C Router Software Upgrade Guide-6W100

HomeSupportInstall & UpgradeUpgrade GuidesH3C Router Software Upgrade Guide-6W100
04-Preparing for the upgrade
Title Size Download
04-Preparing for the upgrade 133.81 KB

Preparing for the upgrade

This chapter contains the following sections:

·     Preparing tools

·     Selecting an upgrade method

·     Setting up an upgrade environment

·     Logging in to the switch

·     Obtaining the upgrade file

·     Verifying the running software version

·     Verifying the device operating status

·     Backing up important files

·     Checking the storage space

Preparing tools

Prepare the following tools:

·     A terminal, such as a PC or laptop.

·     Network cable and console cable.

·     FTP server program or TFTP server program.

·     Terminal emulation program.

 

 

NOTE:

The FTP server program or TFTP server program is not shipped with the switch. Purpose it by yourself.

 

Selecting an upgrade method

Select an appropriate upgrade method as shown in Table 1 according to your situation.

Table 1 Upgrade method

Upgrade method

Software types

Remarks

Upgrading from the CLI by using the boot loader method

·     Boot image

·     System image

·     IPE package

·     BootWare image

This method is disruptive. You must reboot the entire switch to complete the upgrade.

Upgrading by using install commands

·     Patch image

·     Feature image

This method does not require the reboot of the switch and has a small impact on services.

Performing an ISSU from the CLI

·     Boot image

·     System image

·     IPE package

This method is supported on an IRF fabric.

This method has a small impact on services.

Upgrading from the BootWare menu

·     IPE package

·     BootWare image

Use this method when the device cannot start up correctly.

To use this method, you must log in to the switch through the console port.

 

Setting up an upgrade environment

Set up an upgrade environment as follows:

1.     Use the console cable to connect the serial port on the PC and the console port on the switch.

2.     Use the network cable to connect the network port on the PC and the management Ethernet port on the switch.

 

 

NOTE:

If the switch does not have a management Ethernet port, connect the network port on the PC and an Ethernet interface on the switch.

 

Figure 1 Setting up an upgrade environment

 

Logging in to the switch

To upgrade software from the BootWare menu, you can log in to the switch through only the console port.

To upgrade software at the CLI, you can log in to the switch through either the console port or the management Ethernet port. If the device does not have a management Ethernet port, you can log in to the switch through a VLAN interface or Layer 3 Ethernet interface. The procedure for configuring a VLAN interface or Layer 3 Ethernet interface for login is similar to that for configuring the management Ethernet port.

Before you log in to the device through the console port, disable login authentication on the console port as a best practice.

Logging in to the switch through the console port

1.     Run a terminal emulation program on the PC and configure the following parameters:

¡     Bits per second—9600.

¡     Data bits—8.

¡     Stop bits—1.

¡     ParityNone.

¡     Flow controlNone.

2.     Power on the switch. The following information is displayed. After you press Enter, the command prompt appears (such as <Sysname>).

****************************************************************************

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

* Without the owner's prior written consent,                               *

* no decompiling or reverse-engineering shall be allowed.                  *

****************************************************************************

Line aux0 is available.

Press ENTER to get started.

<Sysname>%Mar 30 09:52:58:243 2022 H3C SHELL/5/SHELL_LOGIN:TTY logged in from aux0.

<Sysname>

Logging in to the switch through the management Ethernet port

1.     Log in to the switch through the console port, enter system view, and enable the Telnet service.

<Sysname> system-view

[Sysname] telnet server enable

2.     Assign an IP address to the management Ethernet port. The IP address must be in the same network segment as the IP address of the PC.

[Sysname] interface M-GigabitEthernet 0/0/0

[Sysname-M-GigabitEthernet0/0/0] ip address 192.168.0.105 24

[Sysname-M-GigabitEthernet0/0/0] quit

3.     Configure common attributes for the VTY line.

[Sysname] line vty 0 63

[Sysname-line-vty0-63] authentication-mode none

[Sysname-line-vty0-63] user-role network-admin

[Sysname-line-vty0-63] idle-timeout 0 0

[Sysname-line-vty0-63] quit

4.     Open the terminal emulation program on the PC, and log in to the switch through Telnet.

****************************************************************************

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

* Without the owner's prior written consent,                               *

* no decompiling or reverse-engineering shall be allowed.                  *

****************************************************************************

<Sysname>

Obtaining the upgrade file

CAUTION

CAUTION:

Make sure the obtained upgrade file is compatible with the device model. An incompatible software version can lead to a failure in the software upgrade.

 

You can obtain the upgrade file by using the following methods:

·     Log in to the H3C website at https://www.h3c.com/en and navigate to Support > Resource Center > Software Download > Switches. Then, find the target switch model and download its software image file.

·     Contact H3C Support to obtain the upgrade file.

Verifying the running software version

# View the running software version on the switch and use the release notes to verify that the running software version can be upgraded to the target software version.

The command output might vary by switch model. This section uses a CR16000-F router as an example.

<Sysname> display version

H3C Comware Software, Version 7.1.075, Release 8260P22

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

H3C CR16010H-F uptime is 0 weeks, 0 days, 0 hours, 59 minutes

Last reboot reason : USER reboot

 

Boot image: cfa0:/CR16000-CMW710-BOOT-R8260P22.bin

Boot image version: 7.1.075, Release 8260P22

  Compiled Dec 17 2021 11:00:00

System image: cfa0:/CR16000-CMW710-SYSTEM-R8260P22.bin

System image version: 7.1.075, Release 8260P22

  Compiled Dec 17 2021 11:00:00

Feature image(s) list:

  cfa0:/CR16000-CMW710-DEVKIT-R8260P22.bin, version: 7.1.075

    Compiled Dec 17 2021 11:00:00

...

Verifying the device operating status

Verifying the device status

# Verify that the system is stable. The system is stable if the System State field displays Stable.

If the system is unstable, contact H3C Support to confirm whether the upgrade can be performed.

The command output might vary by router model. This section uses a CR16000-F router as an example.

<Sysname> display system stable state

System state     : Stable

Redundancy state : No redundancy

  Slot    CPU    Role       State

  0       0      Active     Stable

  6       0      Other      Stable

  6       1      Other      Stable

  13      0      Other      Stable

Verifying the card or subcard status

# Verify that the status of a card or subcard is normal. The card or subcard is normal if the Brd Status field displays Normal.

If the status of a card or subcard is abnormal, contact H3C Support to confirm whether the card or subcard needs to be replaced, and record the status of the card or subcard.

The command output might vary by router model. This section uses a CR16000-F router as an example.

<Sysname> display device

Slot No. Brd Type           Brd Status   Software Version

 0       CSR05SRP1P3        Master       CR16000-CMW710-R8260P22

 1       NONE               Absent       NONE

 2       NONE               Absent       NONE

 3       NONE               Absent       NONE

 4       CSPEX-1504X        Normal       CR16000-CMW710-R8260P22

 5       NONE               Absent       NONE

 6       CSPEX-1504X        Normal       CR16000-CMW710-R8260P22

 7       NONE               Absent       NONE

 8       NONE               Absent       NONE

 9       NONE               Absent       NONE

 10      NONE               Absent       NONE

 11      NONE               Absent       NONE

 12      NONE               Absent       NONE

 13      CSFC-08E1          Normal       CR16000-CMW710-R8260P22

 14      NONE               Absent       NONE

Verifying the CPU usage

# Verify that the CPU usage is lower than 80%.

The command output might vary by switch model. This section uses a CR16000-F router as an example.

<Sysname> display cpu-usage

Slot 1 CPU 0 CPU usage:

       1% in last 5 seconds

       1% in last 1 minute

       1% in last 5 minutes

Verifying the alarm information

# Use the display alarm command to verify that no alarms are generated for the switch, cards, and subcards.

If an alarm of the Error level exists, contact H3C Support to confirm whether the upgrade can be performed.

 

 

NOTE:

The display alarm command is supported only some switch models. On switch models that do  not support the display alarm command, you can use the display logbuffer command to view the alarm information in buffered logs.

 

Backing up important files

Back up the current software images, configuration files, and login passwords.

This section uses backing up configuration files in the CF card as an example.

# Save the running configuration to the CF card.

<Sysname> save

The current configuration will be written to the switch. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[cfa0:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):cfa0:/startup.cfg

 Validating file. Please wait.........................

 The current configuration is saved to the active main board successfully.

 Configuration is saved to device successfully.

# Back up all files (including configuration files and log files) to the PC through FTP.

 

 

NOTE:

The operation of uploading files by using FTP is similar to that of uploading files by using TFTP. This section uses FTP as an example. For the detailed uploading operation, see "Appendix A Downloading the upgrade file."

 

<Sysname>ftp 192.168.33.77

Trying 192.168.33.77 ...

Press CTRL+K to abort

Connected to 192.168.33.77.

220 3Com 3CDaemon FTP Server Version 2.0

User(192.168.33.77:(none)):Username1

331 User name ok, need password

Password:

230 User logged in

ftp> binary

200 Type is Image (Binary)

ftp> put startup.cfg

227 Entering Passive Mode (192,168,77,3,8,222)

150 "D:\FTP\ startup.cfg " file ready to receive in BIN mode

226 Transfer finished successfully.

FTP: 6360 byte(s) sent in 0.170 second(s), 37.00Kbyte(s)/sec.

Checking the storage space

Check the free storage space of the storage medium to which the upgrade file will be saved to verify that the router has sufficient storage for the upgrade file.

If the free storage space is not sufficient on the router, delete unused files.

If an .ipe file is used, make sure the free storage space is greater than the sum of the size of the .ipe file and the size of the .bin files decompressed. If the free storage space is insufficient you can download only the required .bin files (including the boot image and system image).

If the storage medium can only store software images in one version, you can first delete the software images in the old version, and then directly download the .bin files in the new version (including the boot and system images).

Checking the storage space at the CLI

Identifying the storage medium

# Use the display boot-loader command to identify the storage medium. The following command output shows that the storage medium is the CF card.

The command output might vary by router model. This section uses a CR16000-F router as an example.

<Sysname> display boot-loader

Software images on slot 0:

Current software images:

  cfa0:/CR16000-CMW710-BOOT-R8260P22.bin

  cfa0:/CR16000-CMW710-SYSTEM-R8260P22.bin

Main startup software images:

  cfa0:/CR16000-CMW710-BOOT-R8260P22.bin

  cfa0:/CR16000-CMW710-SYSTEM-R8260P22.bin

Backup startup software images:

  cfa0:/CR16000-CMW710-BOOT-R7751P01.bin

  cfa0:/CR16000-CMW710-SYSTEM-R7751P01.bin

Verifying the free storage space

# Use the dir command to view the free storage space.

The command output might vary by router model. This section uses a CR16000-F router as an example.

 

 

NOTE:

If the dir command does not display the file information on the storage medium of startup software images by default, first use the cd command to access the storage medium of the startup software images.

 

<Sysname> cd cfa0:/

<Sysname> dir

Directory of cfa0:

   0 -rw-    40403968 Aug 24 2021 13:03:11   CR16000-CMW710-BOOT-R8260P22.bin

   1 -rw-    40434688 Sep 27 2021 12:43:18   CR16000-CMW710-BOOT-R7751P01.bin

...

   6 -rw-   361966592 Aug 24 2021 13:11:46   CR16000-CMW710-SYSTEM-R8260P22.bin

   7 -rw-   354719744 Sep 27 2021 12:50:55   CR16000-CMW710-SYSTEM-R7751P01.bin

 

2044256 KB total (1773684 KB free)

Deleting unused files

·     Use the delete /unreserved command to delete an unused file permanently.

<Sysname> delete /unreserved boot.bin

The file cannot be restored. Delete cfa0:/boot.bin? [Y/N]:y

Deleting the file permanently will take a long time. Please wait...

Deleting file cfa0:/boot.bin...Done.

·     Use the delete command to delete an unused file.

# Delete an unused file.

<Sysname> delete boot.bin

Delete cfa0:/boot.bin? [Y/N]:y

Deleting file cfa0:/boot.bin...Done.

# Clear the recycle bin.

<Sysname> reset recycle-bin

Clear cfa0:/boot.bin? [Y/N]:y

Clearing file cfa0:/boot.bin... Done

 

 

NOTE:

To delete a file permanently, use the delete /unreserved command. If you use the delete command, the file is moved to the recycle bin and still occupies the storage space. To release the storage space, you must execute the reset recycle-bin command in the file's original directory.

 

Checking the storage space from the BootWare menu

Identifying the storage medium from the BootWare menu

 

NOTE:

The BootWare menu varies by switch model and BootWare version. This section uses a CR16000-F router as an example.

 

·     Identify the storage medium from the EXTENDED-BOOTWARE menu.

a.     Access the EXTENDED-BOOTWARE menu.

==========================<EXTENDED-BOOTWARE MENU>==========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> Skip Current System Configuration                                     |

|<7> BootWare Operation Menu                                               |

|<8> Skip Authentication for Console Login                                 |

|<9> Storage Device Operation                                              |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+C: Display Copyright

Ctrl+F: Format File System

Enter your choice(0-9):

b.     Enter 4 to access the file control submenu.

===============================<File CONTROL>===============================

|Note:the operating device is cfa0                                         |

|<1> Display All File(s)                                                   |

|<2> Set Image File type                                                   |

|<3> Set Bin File type                                                     |

|<4> Delete File                                                           |

|<5> Copy File                                                             |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-5):

c.     Enter 1 to display all files.

Display all file(s) in cfa0:

 'M' = MAIN      'B' = BACKUP      'N/A' = NOT ASSIGNED

============================================================================

|1   33086464  Nov/15/2021 17:21:50 M      cfa0:/CR16000-CMW710-BOOT-R8260P|

|22.bin                                                                    |

|2   278083584 Nov/15/2021 17:15:07 M      cfa0:/CR16000-CMW710-SYSTEM-R826|

|0P22.bin                                                                  |

|3   6952      Nov/15/2021 18:36:51 N/A    cfa0:/info/info_5_3.bin         |

============================================================================

 

===============================<File CONTROL>===============================

|Note:the operating device is cfa0                                         |

|<1> Display All File(s)                                                   |

|<2> Set Image File type                                                   |

|<3> Set Bin File type                                                     |

|<4> Delete File                                                           |

|<5> Copy File                                                             |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-5):

d.     Enter 0 to exit the file control submenu.

The image file of the M type shows that the storage medium is the CF card. If no image file is the M type, change the storage device to be operated.

·     Change the storage device to be operated.

a.     Access the EXTENDED-BOOTWARE menu.

==========================<EXTENDED-BOOTWARE MENU>==========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> Skip Current System Configuration                                     |

|<7> BootWare Operation Menu                                               |

|<8> Skip Authentication for Console Login                                 |

|<9> Storage Device Operation                                              |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+F: Format File System

Ctrl+C: Display Copyright

Enter your choice(0-9):

b.     Enter 9 to access the storage device submenu.

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

c.     Enter 2 to set the operated storage medium.

Please set the operating device:

============================================================================

|Note:the operating device is cfa0                                         |

|NO.  Device Name  File System  Total Size  Available Space                |

|1    flash        JFFS2        262144KB    224937KB                       |

|2    cfa0         FAT          2044256KB   1173684KB                      |

|0    Exit                                                                 |

============================================================================

Enter your choice(0-2):

d.     Enter 2 to set the operated storage medium to CF card.

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

e.     Enter 3 to set the default storage medium.

Please set the default device:

============================================================================

|Note:the default device is cfa0                                           |

|NO.  Device Name  File System  Total Size  Available Space                |

|1    flash        JFFS2        262144KB    224937KB                       |

|2    cfa0         FAT          2044256KB   1173684KB                      |

|0    Exit                                                                 |

============================================================================

Enter your choice(0-2):

f.     Enter 2 to set the default storage medium to CF card.

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

g.     Enter 0 to exit the storage device submenu.

Verifying the free storage space

 

NOTE:

The BootWare menu varies by router model and BootWare version. This section uses a CR16000-F router as an example.

 

# Access the EXTENDED-BOOTWARE menu.

==========================<EXTENDED-BOOTWARE MENU>==========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> Skip Current System Configuration                                     |

|<7> BootWare Operation Menu                                               |

|<8> Skip Authentication for Console Login                                 |

|<9> Storage Device Operation                                              |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+F: Format File System

Ctrl+C: Display Copyright

Enter your choice(0-9):

# Enter 9 to access the storage device submenu.

==============================<DEVICE CONTROL>==============================

|<1> Display All Available Nonvolatile Storage Device(s)                   |

|<2> Set The Operating Device                                              |

|<3> Set The Default Boot Device                                           |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-3):

# Enter 1 to view the free storage space.

Display all available nonvolatile storage device(s):

============================================================================

|NO.  Device Name  File System  Total Size  Available Space                |

|1    flash        JFFS2        262144KB    224937KB                       |

|2    cfa0         FAT          2044256KB   1173684KB                      |

============================================================================

Deleting unused files

 

NOTE:

The BootWare menu varies by router model and BootWare version. This section uses a CR16000-F router as an example.

 

# Access the EXTENDED-BOOTWARE menu.

==========================<EXTENDED-BOOTWARE MENU>==========================

|<1> Boot System                                                           |

|<2> Enter Serial SubMenu                                                  |

|<3> Enter Ethernet SubMenu                                                |

|<4> File Control                                                          |

|<5> Restore to Factory Default Configuration                              |

|<6> Skip Current System Configuration                                     |

|<7> BootWare Operation Menu                                               |

|<8> Skip Authentication for Console Login                                 |

|<9> Storage Device Operation                                              |

|<0> Reboot                                                                |

============================================================================

Ctrl+Z: Access EXTENDED ASSISTANT MENU

Ctrl+F: Format File System

Ctrl+C: Display Copyright

Enter your choice(0-9):

# Enter 4 to access the File Control submenu.

===============================<File CONTROL>===============================

|Note:the operating device is cfa0                                         |

|<1> Display All File(s)                                                   |

|<2> Set Image File type                                                   |

|<3> Set Bin File type                                                     |

|<4> Delete File                                                           |

|<5> Copy File                                                             |

|<0> Exit To Main Menu                                                     |

============================================================================

Enter your choice(0-5):

# Enter 4, and enter the number of the file to delete.

Deleting the file in cfa0:

 'M' = MAIN      'B' = BACKUP      'N/A' = NOT ASSIGNED

============================================================================

|NO. Size(B)   Time                 Type   Name                            |

|1   361966592 Aug/24/2021 13:04:32 N/A    cfa0:/CR16000-CMW710-SYSTEM-R826|

|0P22.bin                                                                  |

|2   24333312  Aug/24/2021 13:04:03 N/A    cfa0:/CR16000-CMW710-PACKET-CAPT|

|URE-R8260P22.bin                                                          |

|0   Exit                                                                  |

============================================================================

Enter file No.:2

The file you selected is

cfa0:/CR16000-CMW710-PACKET-CAPTURE-R8260P22.bin,Delete it? [Y/N]Y

Deleting....................................................Done.

 

  • 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 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
新华三官网