Software image upgrade example

Upgrade requirements

As shown in Figure 7, the IRF fabric has two members.

Upgrade feature1 from R0201 to R0202. The two versions are compatible.

Figure 34: Network diagram

Upgrade procedure

# Save the running configuration.

<Sysname> save

# Download the .ipe file that contains the R0202 feature1 image from the TFTP server.

<Sysname> tftp 2.2.2.2 get feature1-r0202.ipe
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  256k  100  256k    0     0   764k      0 --:--:-- --:--:-- --:--:--  810k

# Decompress the .ipe file.

<Sysname> install add flash:/feature1-r0202.ipe flash:

# Display active software images.

<Sysname> display install active
Active packages on slot 1:
  flash:/boot-r0201.bin
  flash:/system-r0201.bin
  flash:/feature1-r0201.bin
Active packages on slot 2:
  flash:/boot-r0201.bin
  flash:/system-r0201.bin
  flash:/feature1-r0201.bin

# Identify the ISSU methods for the upgrade and view the possible impact of the upgrade.

<Sysname> install activate feature flash:/feature1-r0202.bin slot 2 test
Copying file flash:/feature1-r0202.bin to slot2#flash:/feature1-r0202.bin......Done.
Upgrade summary according to following table: 

flash:/feature1-r0202.bin 
  Running Version             New Version
  Alpha 0201                  Alpha 0202

  Slot                        Upgrade Way 
  2                           Service Upgrade

Influenced service according to following table on slot 2: 
  flash:/feature1-r0202.bin 
         feature1
<Sysname> install activate feature flash:/feature1-r0202.bin slot 1 test
Upgrade summary according to following table: 

flash:/feature1-r0202.bin 
  Running Version             New Version
  Alpha 0201                  Alpha 0202

  Slot                        Upgrade Way 
  1                           Service Upgrade

Influenced service according to following table on slot 1:
  flash:/feature1-r0202.bin
         feature1

The output shows that both members require a service upgrade and the feature1 module will be rebooted during the upgrade process.

# Activate the new feature1 image to upgrade feature1.

<Sysname> install activate feature flash:/feature1-r0202.bin slot 2
flash:/feature1-r0202.bin already exists on slot 2.
Overwrite it?[Y/N]:y
Copying file flash:/feature1-r0202.bin to slot2#flash:/feature1-r0202.bin......Done.
Upgrade summary according to following table: 

flash:/feature1-r0202.bin 
  Running Version             New Version
  Alpha 0201                  Alpha 0202

  Slot                        Upgrade Way 
  2                           Service Upgrade
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait...Done.
<Sysname> install activate feature flash:/feature1-r0202.bin slot 1
Upgrade summary according to following table: 

flash:/feature1-r0202.bin 
  Running Version             New Version
  Alpha 0201                  Alpha 0202

  Slot                        Upgrade Way 
  1                           Service Upgrade 
Upgrading software images to compatible versions. Continue? [Y/N]:y
This operation might take several minutes, please wait...Done.

# Display active software images.

<Sysname> display install active
Active packages on slot 1:
  flash:/boot-r0201.bin
  flash:/system-r0201.bin
  flash:/feature1-r0202.bin
Active packages on slot 2:
  flash:/boot-r0201.bin
  flash:/system-r0201.bin
  flash:/feature1-r0202.bin

# Confirm the software change.

<Sysname> install commit