Switching to a new configuration
Procedure
1. Back up the configuration using cfg-backup running-config config <config_name> command. In
the following example, the configuration name used is “stable”.
cfg-backup running-config config stable
2. Check the backup configuration using show config files command.
switch(config)# show config files
Configuration files:
id | act pri sec | name
---+-------------+--------
1 | * * * | config
2 | | stable
3 | |
4 | |
5 | |
3. Change the running configuration as required, and backup the new configuration as “newfile”.
cfg-backup running-config config newfile
switch(config)# show config files
Configuration files:
id | act pri sec | name
---+-------------+---------
1 | * * * | config
2 | | stable
3 | | newfile
4 | |
5 | |
4. Check the difference between the “newfile” (running configuration) and “stable” (backed up configuration)
using cfg-restore flash stable diff command. Based on the difference, apply the backed-up
configuration using cfg-restore flash stable command.
5. Check the status of the configuration restore using show cfg-restore status command.
switch(config)# show cfg-restore status
Status : Success
Config File Name : stable
Source : Flash
Time Taken : 3 Seconds
Last Run : Tue Nov 28 18:24:09 2017
Recovery Mode : Enabled
Failure Reason : -
Number of Add Commands : 14
Number of Remove Commands : 0
Time Taken for Each Phase :
Calculating diff : 1 Seconds
Chapter 15 Configuration backup and restore without reboot 555