A-22
Catalyst 2960 and 2960-S Switch Software Configuration Guide
OL-8603-09
Appendix A Working with the Cisco IOS File System, Configuration Files, and Software Images
Working with Configuration Files
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:
Step 5 time-period minutes (Optional) Set the time increment for automatically saving an archive file of
the running configuration in the configuration archive.
minutes—Specify how often, in minutes, to automatically save an archive file
of the running configuration in the configuration archive.
Step 6 end Return to privileged EXEC mode.
Step 7 show running-config Verify the configuration.
Step 8 copy running-config
startup-config
(Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step 1 archive config (Optional) Save the running configuration file to the configuration archive.
Note Enter the path archive configuration command before using this
command.
Step 2 configure terminal Enter global configuration mode.
Step 3 Make necessary changes to the running configuration.
Step 4 exit Return to privileged EXEC mode.
Step 5 configure replace target-url [list]
[force] [time seconds] [nolock]
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 a s the configuration file
created in Step 2 by using the archive config privileged EXEC command.
listDisplay 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).
Note You must first enable the configuration archive before you can use the
time seconds command line option.
nolockDisable the locking of the running configuration file that prevents
other users from changing the running configuration durin g a configuration
replacement operation.