Usage Scenario
If an error occurs during an upgrade and you need to cancel the upgrade, run the rollback command to roll back the system to the previous version. After the rollback, the configuration of the device is the same as the previous configuration.
Precautions
The rollback function takes effect only for an upgrade during which the reboot command is run to restart the device, and does not support other upgrade modes, such as the EasyDeploy upgrade and smooth stack upgrade. If the reboot command is run to complete an upgrade and then the system is upgraded using another mode, you can only run the rollback command to roll back the system to the latest version before the upgrade during which the reboot command is run. For example, if you run the reboot command to restart the device and upgrade the system from V1.0 to V1.1, and then upgrade the system to V1.2 using EasyDeploy, the system can only be rolled back to V1.0 when you run the rollback command to perform a system rollback.
If a device runs continuously for more than 48 hours after being upgraded, the rollback function does not take effect. If the device runs continuously for less than 48 hours and restarts, the system sets the remaining time to zero and the rollback function does not take effect. You can run the display rollback information command to check the remaining time for the rollback function to take effect.
If the system software, configuration file, or patch file required in the rollback is deleted using the delete (user view) command, the system prompts that the rollback function cannot be used when you run the rollback command.
Prerequisites
The device contains the system software, configuration file, and patch file that are used after the rollback and displayed in the display rollback information command output.
# Roll back the system to the previous version.
<HUAWEI> rollback
Info: Checking rollback version information...
Rollback software: flash:/basicsoft.cc
Rollback configuration: flash:/vrpcfg.zip
Rollback patch: NULL
Warning: The version running before the last reboot/reboot fast operation is performed will be restored, and the current configuration will be lost. Continue? [Y/N]:y