cfg-restore recovery-mode

Syntax

cfg-restore {flash | tftp | sftp} <FILE-NAME> recovery-mode {enable | disable}

Description

Restores the current running configuration, if a restore to the backup configuration fails. By default, recovery-mode is enabled.

Command context

config

Usage

To disable recovery mode, use cfg-restore {flash | tftp | sftp} <FILE-NAME> recovery-mode disable.

Example

With the following running configuration, a restore to the backup file modify fails, but this configuration will be retained as recovery mode is enabled.

switch(config)# show running-config

Running configuration:

; JL255A Configuration Editor; Created on release #WC.16.05.0000x
; Ver #12:08.1d.9b.3f.bf.bb.ef.7c.59.fc.6b.fb.9f.fc.ff.ff.37.ef:ba
hostname "Aruba-2930F-24G-PoEP-4SFPP"
module 1 type jl255a
ip routing
snmp-server community "public" unrestricted
vlan 1
   name "DEFAULT_VLAN"
   untagged 1-28
   ip address dhcp-bootp
   exit
vlan 10
   name "VLAN10"
   no ip address
   exit

switch(config)# show config modify
; JL255A Configuration Editor; Created on release #WC.16.05.0000x
; Ver #12:08.1d.9b.3f.bf.bb.ef.7c.59.fc.6b.fb.9f.fc.ff.ff.37.ef:ba
hostname "Aruba-2930F-24G-PoEP-4SFPP"
module 1 type jl255a
ip default-gateway 172.20.0.1
ip routing
snmp-server community "public" unrestricted
vlan 1
   name "DEFAULT_VLAN"
   untagged 1-28
   ip address dhcp-bootp
   exit
vlan 100
   name "VLAN100"
   no ip address
   exit

switch(config)# cfg-restore flash modify
Current running-configuration will be replaced with 'modify'.
Continue (y/n)? y
Configuration restore is in progress, configuration changes are
 temporarily disabled.

Configuration restore to config 'modify' failed, restored source
 configuration to running configuration.

switch(config)# show running-config

Running configuration:

; JL255A Configuration Editor; Created on release #WC.16.05.0000x
; Ver #12:08.1d.9b.3f.bf.bb.ef.7c.59.fc.6b.fb.9f.fc.ff.ff.37.ef:ba
hostname "Aruba-2930F-24G-PoEP-4SFPP"
module 1 type jl255a
ip routing
snmp-server community "public" unrestricted
vlan 1
   name "DEFAULT_VLAN"
   untagged 1-28
   ip address dhcp-bootp
   exit
vlan 10
   name "VLAN10"
   no ip address
   exit

switch(config)# cfg-restore flash modify recovery-mode disable
Current running-configuration will be replaced with 'modify'.
Continue (y/n)? y
Configuration restore is in progress, configuration changes are
 temporarily disabled.

Partially applied configuration 'modify' to running configuration.
Aruba-2930F-24G-PoEP-4SFPP(config)# show running-config

Running configuration:

; JL255A Configuration Editor; Created on release #WC.16.05.0000x
; Ver #12:08.1d.9b.3f.bf.bb.ef.7c.59.fc.6b.fb.9f.fc.ff.ff.37.ef:ba
hostname "Aruba-2930F-24G-PoEP-4SFPP"
module 1 type jl255a
ip routing
snmp-server community "public" unrestricted
vlan 1
   name "DEFAULT_VLAN"
   untagged 1-28
   ip address dhcp-bootp
   exit
vlan 100
   name "VLAN100"
   no ip address
   exit