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.
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.
(device)# show file defaultconfig.standalone
(device)# show startup-config
(device)# show running-config
Note
Theshow startup-database
command is deprecated.
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.
SLX(config)# no auto-persistence disable
SLX(config)# auto-persistence disable
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) #