cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4256
Views
0
Helpful
6
Comments
Eddie Chami
Cisco Employee
Cisco Employee

Ever wondered how to backup the running configuration in XR each time a commit is made? Many operators use offline scripts that do this periodically, that surely works well. Another simpler method is to have the system upload/backup its config each time the configuration is modified, this ensures the configuration is always up to date. Just add this command to the config:

This is an example with the server reachable inside a VRF(MGMT) on the router.

#configuration commit auto-save filename tftp://10.1.1.100;MGMT/XR_Nodes/asr9922_london.cfg

interface Loopback1
description in-band-mgmt
vrf MGMT
ipv4 address 10.1.1.1 255.255.255.0

This is an example with the FTP server reachable in the default routing table. RCP can be used. 

#configuration commit auto-save filename ftp://user:password@10.1.1.100/XR_Nodes/asr9922_london.cfg

 

More info in the command reference:

http://www.cisco.com/c/en/us/td/docs/routers/crs/software/crs_r5-3/sysman/command/reference/b-sysman-cr53xcrs/configuration_management_commands_on.pdf

Eddie.

Comments
Nishant Kumar
Level 1
Level 1

How to change file name to include date & time so that backup files are not overwritten.

Eddie Chami
Cisco Employee
Cisco Employee

Nishant,

The team just made a change in XR whereby we append the file with date/time stamps, so XR will take care of this.

RP/0/0/CPU0:T3(config)#

ios.0/0/CPU0:/disk0:ios.0/0/CPU0disk0: $ ls -lt
total 60
-rwx------ 1 zhaowan eng  399 Jul  3 17:34 CONF_BK_TS.20160703-173423
-rwx------ 1 zhaowan eng  399 Jul  3 17:34 CONF_BK_TS.20160703-173411
-rwx------ 1 zhaowan eng  399 Jul  3 17:34 CONF_BK_TS.20160703-173402
Nishant Kumar
Level 1
Level 1

Thats Good .. Do we need software IOS/module update for same ??

Eddie Chami
Cisco Employee
Cisco Employee

Yes, this is going in 6.1.2 which is ~Oct. 

Yong Zhao
Cisco Employee
Cisco Employee

That should support from 6.2.1, follow by CSCuu24747.

Have similar topic:

https://supportforums.cisco.com/discussion/12461536/configuration-commit-auto-save-filename

------------------

RP/0/RSP0/CPU0:ASR9001-A#dir disk0: | i user
Tue Jul 25 08:54:32.149 UTC
48743806 -rwx 506861 Tue Jul 25 08:54:21 2017 user.20170725-085410
RP/0/RSP0/CPU0:ASR9001-A#
RP/0/RSP0/CPU0:ASR9001-A#
RP/0/RSP0/CPU0:ASR9001-A#
RP/0/RSP0/CPU0:ASR9001-A#sh run | i auto-save
Tue Jul 25 08:56:16.256 UTC
Building configuration...
configuration commit auto-save filename disk0:/user
RP/0/RSP0/CPU0:ASR9001-A#
RP/0/RSP0/CPU0:ASR9001-A#show ins ac sum
Tue Jul 25 08:56:26.016 UTC
Default Profile:
SDRs:
Owner
Active Packages:
disk0:asr9k-mini-px-6.2.2
disk0:asr9k-mgbl-px-6.2.2
disk0:asr9k-k9sec-px-6.2.2
disk0:asr9k-mpls-px-6.2.2

HTCITC7408231
Level 1
Level 1

Hi Chami

When i configured comand .

#configuration commit auto-save filename tftp://10.1.1.100;MGMT/XR_Nodes/asr9922_london.cfg

Every time when i commit command. System confirm:

This could be a few minutes if your config is large. Confirm? [y/n][confirm]

I think It's quite inconvenient.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links