• whether a recovery-mode was enabled
• the number of add and delete commands
• reboot commands present (if any), and
• the split time taken for each phase
Examples
switch(config)#
show cfg-restore
latest-diff Shows the difference between running and back-up
configuration.
status Show configuration restoration status.
switch(config)# show cfg-restore status
Status : [Failed| In progress | Success | Not Started]
Config File name : def
Source : [-|Tftp|sftp|Flash|REST]
Time taken : [-|20 Seconds.]
Last Run : [-|Tue March 07 22:12:16 2017.]
Recovery Mode : Enabled
Failure Reason : -
Number of Add Commands : 0
Number of Remove Commands : 3
Time Taken for Each Phase :
Calculating diff : 1 Seconds
Adding commands : 0 Seconds
Removing commands : 0 Seconds
If the configuration restoration fails, the line number and the failed commands are displayed:
switch(config)# show cfg-restore status
Status : Failed
Config File name : def
Source : Flash
Time taken : 20 Seconds
Last Run : Sun Oct 22 20:22:54 2017
Recovery Mode : Enabled
Failure Reason : Add commands have been failed
Number of Add Commands : 0
Number of Remove Commands : 3
Time Taken for Each Phase :
Calculating diff : 1 Seconds
Adding commands : 0 Seconds
Removing commands : 0 Seconds
Failed to remove commands:
Line: 12 vlan 10
Line: 15 no ipv6 nd snooping mac-check
Failed to add commands:
Line: 10 icmp 10.100.0.12 source-inter vlan 1
Line: 20 udp-echo 10.100.0.12 source vlan 1
Chapter 15 Configuration backup and restore without reboot
571