The Undo Button – Cisco Commit Confirmed

Standard

Hi All!

I suddenly remembered I had this blog and figured I should make a quick post before I forget.

I’ve been hearing over and over that Cisco really needs to borrow Juniper’s commit confirmed feature, guess what? They have several years ago!

The feature is called: Configuration Rollback Change Confirmed

To start we need to configure config archiving on the device

Cisco-R02(config)#archive
Cisco-R02(config-archive)#path flash:
Cisco-R02(config-archive)#maximum 10
Cisco-R02(config-archive)#exit
Cisco-R02(config)#end

Now we enter configuration mode but we add the revert timer keyword to enable config rollbacks.

Cisco-R02#configure terminal revert timer ?
Confirmation time in minutes
idle Idle time for which to wait for confirmation

You can either enter how many minutes to wait before rollback the config, or you can use the idle keyword to tell the router to wait until your no longer typing before starting the timer. This is handy if you have a lot of configuration in your change and don’t want to set the wait timer too high.

Let’s test this out!

Cisco-R02#term mon
Cisco-R02#configure terminal revert timer 1
Rollback Confirmed Change: Backing up current running config to flash:-Jun-16-19-32-31.853-1

Enter configuration commands, one per line.  End with CNTL/Z.
Cisco-R02(config)#hostname TEST
TEST(config)#end
TEST#
*Jun 16 19:33:31.934: %ARCHIVE_DIFF-5-ROLLBK_CNFMD_CHG_ROLLBACK_START: Start rolling to: flash:-Jun-16-19-32-31.853-1
*Jun 16 19:33:32.115: Rollback:Acquired Configuration lock.
Cisco-R02#

If we want to commit the changes we simply use configure confirm within the time limit we set.

TEST01#configure confirm  
TEST01#
*Jun 16 19:36:33.701: %ARCHIVE_DIFF-5-ROLLBK_CNFMD_CHG_CONFIRM: User: admin: Confirm the configuration change

2 thoughts on “The Undo Button – Cisco Commit Confirmed

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s