User Guide
3-8
Cisco IOS XR Getting Started Guide
Chapter 3 Configuring Additional Router Features
Managing Configuration History and Rollback
Tip To preview the commands that undo the configuration during a rollback, use the show configuration
rollback changes command.
To roll back to the last x commits made, enter the rollback configuration last x command; x is a number
ranging from 1 to the number of saved commits in the commit database.
In the following example, a request is made to roll back the configuration changes made during the
previous two commits:
RP/0/RP0/CPU0:router# rollback configuration last 2
Loading Rollback Changes.
Loaded Rollback Changes in 1 sec
Committing.
1 items committed in 1 sec (0)items/sec
Updating.
Updated Commit database in 1 sec
Configuration successfully rolled back 2 commits.
Loading the Configuration Changes for a Specific CommitID
You can load the configuration changes recorded by any commitID by entering the load commit changes
command in global configuration mode. The load commit changes command must be followed by a
commitID number, as shown in the following example:
RP/0/0/CPU0:router(config)# load commit changes 1000000066
Building configuration...
Loading.
21 bytes parsed in 1 sec (20)bytes/sec
The configuration changes are added to the target configuration and are not applied until you enter the
commit command.
Tip To display the target configuration, enter the show configuration command.
Loading Rollback Configuration Changes to the Target Configuration
You can load rollback configuration changes to the target configuration by entering the load rollback
changes command in global configuration mode. This command is similar to the rollback
configuration command. The difference between the commands is that the load rollback changes
command copies the rollback changes to the target configuration and does not commit the changes.
Tip To display the rollback changes, enter the show configuration rollback changes command.