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
Chapter 15 Configuration backup and restore without reboot
561