Use this command to exit to user EXEC mode.
Example:
Device#
exit
Device>
Configuration Examples for Configuration Replace and
Configuration Rollback
Creating a Configuration Archive
The following example shows how to perform the initial configuration of the Cisco IOS configuration archive.
In this example, flash:myconfiguration is specified as the location and filename prefix for the files in the
configuration archive and a value of 10 is set as the maximum number of archive files to be saved.
configure terminal
!
archive
path flash:myconfiguration
maximum 10
end
Replacing the Current Running Configuration with a Saved Cisco IOS
Configuration File
The following example shows how to replace the current running configuration with a saved Cisco IOS
configuration file named flash:myconfiguration. The
configure replace
command interactively prompts you
to confirm the operation.
Device#
configure replace flash:myconfiguration
This will apply all necessary additions and deletions
to replace the current running configuration with the
contents of the specified configuration file, which is
assumed to be a complete configuration, not a partial
configuration. Enter Y if you are sure you want to proceed. ? [no]:
Y
Total number of passes: 1
Rollback Done
In the following example, the
list
keyword is specified in order to display the command lines that were applied
during the configuration replace operation:
Device#
configure replace flash:myconfiguration list
This will apply all necessary additions and deletions
to replace the current running configuration with the
contents of the specified configuration file, which is
assumed to be a complete configuration, not a partial
configuration. Enter Y if you are sure you want to proceed. ? [no]:
Y
System Management Configuration Guide, Cisco IOS XE Fuji 16.8.x (Catalyst 9500 Switches)
227
Configuration Replace and Configuration Rollback
Configuration Examples for Configuration Replace and Configuration Rollback