cfg-restore

Syntax

cfg-restore {flash | tftp <IP-ADDRESS> | sftp <IP-ADDRESS>} <FILE-NAME> [diff | force | non-blocking | recovery-mode | verbose]

Description

Restores the given configuration as the running configuration without reboot. If the configuration is not suitable to successfully restore without reboot, the command will return a failure message with details.
NOTE:

The restored configuration commands will be executed on a running configuration, so the name of the current active configuration does not change after configuration restore, except for the force option.

Command context

config

Parameters

flash
Copies file from flash.
tftp

Copies file from TFTP server.

sftp

Copies file from SFTP server.

<IP-ADDRESS>

IP address of the TFTP server.

<FILE-NAME>

Name of the backup configuration file to restore into the running configuration.

diff

Provides the list of changes that will be applied on the running configuration.

force

Forces a reboot if configuration in restored configuration requires a reboot. Applies the configuration with reboot if the configuration has reboot required commands or system-wide change commands. After a forced reboot, the name of the configuration changes.

non-blocking

Configuration restoration in non-blocking mode, where actual process happens in the background.

recovery-mode

Enables or disables recovery-mode. Recovery-mode is enabled by default and this retains the current running configuration if configuration restoration fails.

verbose

Provides the details of configuration restore status and the list of commands to be added or deleted.

Usage

  • cfg-restore flash <FILE-NAME> [non-blocking | diff | force | recovery-mode{enable | disable}]] | [verbose [force | [recovery-mode{enable | disable}] | [diff |force]

  • cfg-restore tftp {<IPV4-ADDR> | <IPV6-ADDR> | <HOSTNAME-STR> <FILE-NAME> [non-blocking | diff | force | recovery-mode{enable | disable}]] | [verbose [force | [recovery-mode{enable | disable}]] | [diff |force]

  • cfg-restore sftp {<IPV4-ADDR> | <IPV6-ADDR> | <HOSTNAME-STR> | user <name> {<IP-ADDRESS|IPV6-ADDRESS|HOSTNAME-STR>} | <USERNAME@>{<HOST-NAME> | <IPV4-ADDR> | <IPV6-ADDR>}} [port <1-65535>] <FILE-NAME> [non-blocking | diff | force | recovery-mode{enable | disable}]] | [verbose [force | [recovery-mode{enable | disable}]] | [diff |force]

Examples

switch# cfg-restore
 flash              Copy file from flash. 
 sftp               Copy file from SFTP Server. 
 tftp               Copy file from TFTP Server. 

switch# cfg-restore flash
 FILE-NAME          Name of the backup configuration file to restore into the running 
	                   configuration. 

switch# cfg-restore flash config_file
 diff               Provide the list of changes that will be applied on the
                    running configuration.
 force              Apply the configuration with reboot if the
                    configuration has reboot required commands or
                    system-wide change commands present.
 non-blocking       Config restoration in non-blocking mode.
 recovery-mode      To enable/disable recovery-mode.
 verbose	           Provide the details of config restore status and the list of commands to be added 
                    or deleted.		

switch# cfg-restore tftp
 HOSTNAME-STR       Specify hostname of TFTP Server.
 IP-ADDR            IP Address of the TFTP Server.
 IPV6-ADDR          IPV6 Address of the TFTP Server.

switch# cfg-restore tftp 10.100.0.12
 FILE-NAME          Name of the backup configuration file to restore into the running 
	                   configuration. 

switch# cfg-restore tftp 10.100.0.12 config_file
 diff                Provide the list of changes that will be applied on the
                     running configuration.
 force               Apply the configuration with reboot if the
                     configuration has reboot required commands or
                     system-wide change commands present.
 non-blocking        Config restoration in non-blocking mode.
 recovery-mode       To enable/disable recovery-mode.
 verbose	            Provide the details of config restore status and the list of commands to be added 
                     or deleted.

switch(config)# cfg-restore flash add non-blocking
 diff                Provide the list of changes that will be applied on
                     the running configuration.
 force               Apply the configuration with reboot if the configuration has reboot required commands or
                     system-wide change commands present.
 recovery-mode       To enable/disable recovery-mode.