Cisco Systems Cisco IOS XR manual Previewing Rollback Configuration Changes

Models: Cisco IOS XR

1 222
Download 222 pages 13.32 Kb
Page 137
Image 137

Chapter 5 Configuring Additional Router Features

Managing Configuration History and Rollback

2000000021 Commit ID

2000000022 Commit ID

RP/0/RP1/CPU0:router(admin)# show configuration commit changes 2000000020

Building configuration...

username cisco

secret 5 $1$MgUH$xzUEW6jLfyAYLKJE.3p440 group root-system

!

end

Previewing Rollback Configuration Changes

The show configuration rollback changes command allows you to preview the configuration changes that take place if you roll back the configuration to a specific commitID. For example, if you want to roll back the configuration to a specific point, all configuration changes made after that point must be undone. This rollback process is often accomplished by executing the “no” version of commands that must be undone.

To display the prospective rollback configuration changes from the current configuration to a specific commitID, go to EXEC or administration EXEC mode and enter the show configuration rollback changes to commitId command. In the following example, the command help displays the available commitIDs, and then the rollback changes are displayed.

RP/0/RP1/CPU0:router# show configuration rollback changes to ?

1000000217 Commit ID

1000000218 Commit ID

1000000219 Commit ID

RP/0/RP1/CPU0:router# show configuration rollback changes to 1000000218

Building configuration...

no interface Loopback100 interface POS0/1/0/0

no ipv6 nd dad attempts

!

!

no route-policy xx end

To display the prospective rollback configuration changes from the current configuration to a specified number of previous sessions, go to EXEC or administration EXEC mode and enter the show configuration rollback changes last commit-rangecommand:

RP/0/RP0/CPU0:router# show configuration rollback changes last 2

Building configuration...

interface Loopback3 no description

no ipv4 address 10.0.1.1 255.0.0.0 exit

interface Loopback4 no description

no ipv4 address 10.0.0.1 255.0.0.0 end

In the preceding example, the command display shows the proposed rollback configuration changes for the last two commit IDs.

Cisco IOS XR Getting Started Guide

 

OL-10957-02

5-5

 

 

 

Page 137
Image 137
Cisco Systems Cisco IOS XR manual Previewing Rollback Configuration Changes