Auto-Persistence of Configuration Data

All configuration changes performed on the device are automatically persisted. You do not need to run the copy running-config startup-config command to persist these changes.

Configurations are saved to a persistent configuration data store. After a device reboots, or, is brought up, configurations are restored from this data store. If this data store becomes unusable for any reason, configurations are then replayed from the startup-config file.

Initially, the startup-config file has the factory-default configuration. When the copy running-config startup-config command is executed, the configurations in the running-config data store is copied to the startup-config data store. The same configuration changes are also updated to the startup-config file.

Controlling Configuration Replay During Device Boot

By default, configurations are restored from the startup data store when the device boots up after a reboot. To ensure that the device uses the startup-config file instead of the startup-config data store, execute one of the following commands:
  • copy default-config startup-config
  • Copy <tftp:/scp:/ftp:/usb:/flash:>/<file> startup-config
followed by the device reboot.

Before Upgrading or Downgrading

Before upgrading or downgrading the device's firmware, it is recommended that you execute copy running-config startup-config command. This will ensure that the startup-config data store and startup-config file are updated with the changes stored in the running-config data store.

Viewing the Various Configurations

The following examples illustrate how to display the default, startup, and running configurations.
  • Displaying the Default Configuration:
    To display the default configuration, enter show file with the default configuration filename, in privileged EXEC mode.
    (device)# show file defaultconfig.standalone
  • Displaying the Startup Configuration
    To display the contents of the startup configuration, enter show startup-config, in privileged EXEC mode.
    (device)# show startup-config
  • Displaying the Running Configuration
    To display the contents of the running configuration, enter show running-config in privileged EXEC mode.
    (device)# show running-config
Note

Note

The show startup-database command is deprecated.

Examples

The following example displays the status of auto persistence in a SLX device.

SLX(config) # show auto-persistence status
                Auto persistence: Enabled            
                SLX(config) #
            

The following examples illustrate how to enable and disable the auto persistence on a SLX device. Auto persistence is enabled by default. When you use the auto-persistence disable command, you disable this feature.

To copy the running configuration to the startup configuration manually, use the SLX(config)# copy running-config startup-config command.

SLX (config)# copy running-config startup-config

                This operation will back up the current configuration. Do you want to continue? [y/n]:y
                Running-config was committed to startup-config successfully.

To view the contents of the startup-configuration or the running-configuration data stores, use the show startup-database or the running-database commands.

SLX (config)# show startup-database VLAN
vlan 1
!
vlan 2
!
vlan 3
!
vlan 4
!
vlan 5
!
vlan dot1q tag native
SLX(config) #