Configure replace commands

From: <wdpauw_at_gmail.com>
Date: Thu, 24 Dec 2009 07:26:38 -0500

Hi,

 
I'm testing the configure replace option but I'm not really getting what I
want:

 
The idea is to use configure replace command with a specific timer when you do
a configuration change. If you would loose your connection you will not be able
to confirm the configuration change and the switch will revert back to his
original configuration and your connection will be restored.

 
On our switches we already have the archiving setup towards a TFTP server in
our mgmt subnet, and this is the subnet also where we work from . So we will
need to put the configuration on the nvram, flash,... because if we loose our
connection we will not be able to get the config from the tftp server.

 
I have a config on my disk 0: and I typed the following command

 
configure replace disk0:test.txt-Dec-24-09-12-08-0 revert trigger timer 1

 
After a minute it starts the replacement but it takes the config from the
tftp server although I specified the disk0: in the configure replace command.

In the config guides you can see that configure replace works together with the
archive so I presume the software will take the latest file from the archiving.

 
PS: I tested it with the configure replace disk0:test.txt-Dec-24-09-12-08-0
force command and than it works fine. It seems that as soon as you use the
time command it goes "wrong".

 
 
Example:

 
 
Router#$eplace disk0:test.txt-Dec-24-09-12-08-0 revert trigger timer 1
!Rollback Confirmed Change: Backing up current running config to
tftp://192.168.1.2/test.txt-Dec-24-09-17-06-0

This will apply all necessary additions and deletions
to replace the current running configuration with the
contents of the specified configuration file, which is
assumed to be a complete configuration, not a partial
configuration. Enter Y if you are sure you want to proceed. ? [no]:
%ARCHIVE_DIFF-5-ROLLBK_CNFMD_CHG_BACKUP: Backing up current running config to
tftp://192.168.1.2/test.txt-Dec-24-09-17-06-0yes

Rollback:Acquired Configuration lock.
Total number of passes: 2
Rollback Done

Router#Rollback Confirmed Change: Rollback will begin in one minute. Enter
"configure confirm" if you wish to keep what you've configured

%PARSER-6-EXPOSEDLOCKRELEASED: Exclusive configuration lock released from
terminal '0' -Process= "Exec", ipl= 0, pid= 304
%ARCHIVE_DIFF-5-ROLLBK_CNFMD_CHG_START_ABSTIMER: User: console: Scheduled to
rollback to config tftp://192.168.1.2/test.txt-Dec-24-09-17-06-0 in 1 minutes
%ARCHIVE_DIFF-5-ROLLBK_CNFMD_CHG_WARNING_ABSTIMER: System will rollback to
config tftp://192.168.1.2/test.txt-Dec-24-09-17-06-0 in one minute. Enter
"configure confirm" if you wish to keep what you've configuredRollback
Confirmed Change: rolling to:tftp://192.168.1.2/test.txt-Dec-24-09-17-06-0

Loading test.txt-Dec-24-09-17-06-0 from 192.168.1.2 (via Vlan10): !
Loading test.txt-Dec-24-09-17-06-0 from 192.168.1.2 (via Vlan10): !
[OK - 7864 bytes]

%ARCHIVE_DIFF-5-ROLLBK_CNFMD_CHG_ROLLBACK_START: Start rolling to:
tftp://192.168.1.2/test.txt-Dec-24-09-17-06-0
Rollback:Acquired Configuration lock.

Blogs and organic groups at http://www.ccie.net
Received on Thu Dec 24 2009 - 07:26:38 ART

This archive was generated by hypermail 2.2.0 : Sat Jan 02 2010 - 11:11:08 ART