show cfg-restore status

Syntax

show cfg-restore status

Description

Shows the status of latest restore performed. The running configuration is updated based on the configuration of the restored file.

Command context

config

Usage

show cfg-restore {status | latest-diff}
This command provides information on:
  • how a restore is performed

  • whether a flash file was used from SFTP or TFTP server

  • the total time taken to restore

  • the time when last restore was initiated

  • 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
NOTE:

The number of add and delete commands is calculated excluding the exit commands in the configuration file.