Appendix A
Working with the Cisco IOS File System, Configuration Files, and Software Images
Performing a Configuration Replacement or Rollback Operation
Starting in privileged EXEC mode, follow these steps to replace the running configuration file with a
saved configuration file:
Command
Step 1
archive config
Step 2
configure terminal
Step 3
Step 4
exit
Step 5
configure replace target-url [list]
[force] [time seconds] [nolock]
Step 6
configure confirm
Step 7
copy running-config
startup-config
OL-26520-01
Purpose
(Optional) Save the running configuration file to the configuration archive.
Enter the path archive configuration command before using this
Note
command.
Enter global configuration mode.
Make necessary changes to the running configuration.
Return to privileged EXEC mode.
Replace the running configuration file with a saved configuration file.
target-url—URL (accessible by the file system) of the saved configuration file
that is to replace the running configuration, such as the configuration file
created in Step 2 by using the archive config privileged EXEC command.
list—Display a list of the command entries applied by the software parser
during each pass of the configuration replacement operation. The total number
of passes also appears.
force— Replace the running configuration file with the specified saved
configuration file without prompting you for confirmation.
time seconds—Specify the time (in seconds) within which you must enter the
configure confirm command to confirm replacement of the running
configuration file. If you do not enter the configure confirm command within
the specified time limit, the configuration replacement operation is
automatically stopped. (In other words, the running configuration file is
restored to the configuration that existed before you entered the configure
replace command).
You must first enable the configuration archive before you can use the
Note
time seconds command line option.
nolock—Disable the locking of the running configuration file that prevents
other users from changing the running configuration during a configuration
replacement operation.
(Optional) Confirm replacement of the running configuration with a saved
configuration file.
Use this command only if the time seconds keyword and argument of
Note
the configure replace command are specified.
(Optional) Save your entries in the configuration file.
Catalyst 2960 and 2960-S Switches Software Configuration Guide, Release 15.0(1)SE
Working with Configuration Files
A-23