upgrade2 image-file use-prev-config


The upgrade2 image-file use-prev-config command upgrades the system by using upgrade2 command, skip the un-compatible configuration and continue loading the remaining configuration after system starts up from the reboot.


Command Syntax

upgrade2 image-file <image-name> use-prev-config


Parameter

Parameter

Description

image-file <image-name>

Specifies the image name with bin format (*.bin).


Usage Guidelines

Before upgrading, save the important data in Flash to the local PC through FTP or TFTP, and then upload it to the switch after the upgrade is completed.

The main function of use-prev-config option is to decide whether to load the previous configuration file after a system reboot when performing upgrade2 or rollback to another version. If there is a command line in the old version configuration file that is not supported in the new system, with use-prev-config option that command will be skipped and continue loading the remaining configuration.

By default, upgrade2 or rollback is performed without use-prev-config option.

The following table describes the usage of use-prev-config option when performing upgrade2 or rollback.


upgrade2

(From old version to new version)

rollback

(From current version to old version)

with use-prev-config

1. Load the configuration file of old version after system reboot.

2. If there is a command line in the old version configuration file that is not supported in the new system, skip it and continue loading the remaining configuration.

1. Load the configuration file of current version after system reboot.

2. If there is a command line in the current configuration file that is not supported in the old system, skip it and continue loading the remaining configuration.

without use-prev-config

1. Load the configuration file of old version after reboot.

2. If there is a command in the old version configuration file that is not supported in the new system, load default configuration file.

Load the old version configuration file after rebooting.


Example

  • Upgrade the system by using upgrade2 command, skip the un-compatible configuration and continue loading the remaining configuration after system starts up from the reboot.
admin@Xorplus> upgrade2 image-file onie-installer-picos-3.7.3-91bb175-x86.bin use-prev-config


Copyright © 2024 Pica8 Inc. All Rights Reserved.