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.
Force configuration restore
The
cfg-restore
command fails if a reboot is required. The
Configuration restoration is not
allowed as the configuration has reboot required commands
error is displayed, along with lines
requiring a reboot. The force option in the
cfg-restore
command allows a user to force a reboot. The
command is:
cfg-restore {flash | tftp | sftp} <
FILE-NAME
> force
.
Before reboot,
config
is the active configuration. After the device reboots, the backup file becomes the new
active configuration.
id | act pri sec | name
---+-------------+---------------
1 | * * * | config
2 | | def
3 | | golden_config
4 | |
5 | |
switch(config)# cfg-restore flash golden_config
Current running-configuration will be replaced with 'golden_config'.
Continue (y/n)? y
Configuration restore is in progress, configuration changes are temporarily
disabled.
Configuration restoration is not allowed as the configuration has reboot required commands.
switch(config)# show cfg-restore status
Status : Failed
Config File Name : golden_config
Source : Flash
Time Taken : 5 Seconds
Last Run : Mon Oct 30 23:03:19 2017
Recovery Mode : Enabled
Failure Reason : Reboot required commands present.
Command : console terminal none
Number of Add Commands : 0
Number of Remove Commands : 1
Time Taken for Each Phase :
Calculating diff : 3 Seconds
Adding commands : 0 Seconds
Removing commands : 0 Seconds
switch# cfg-restore flash golden_config force
Device may be rebooted if the configuration file has reboot required or
system-wide change commands. Do you want to continue (y/n)?
Current running-configuration will be replaced with 'golden_config'.
Continue (y/n)?
Configuration restore is in progress, configuration changes are temporarily
disabled.
Successfully applied configuration 'golden_config' to running configuration.
Rebooting switch...
562
Aruba 2930F / 2930M Management and Configuration Guide
for ArubaOS-Switch 16.08