cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2485
Views
0
Helpful
3
Replies

ASR 9K Automatic backup

presto_bsnl-noc
Level 1
Level 1

Can anyone write a script for taking backup ( Show run ) automatically in ASR 9k . I implemented a script that is working in 1905 router and ASR 1 k routers , 

archive
path tftp://10.10.10.1/BACKUP/$h

kron occurrence RTR-DAILY-BACKUP at 05:00 recurring
policy-list POLICY-RTR-DAILY-BACKUP
!

kron policy-list POLICY-RTR-DAILY-BACKUP conditional
cli archive config

Regards

Bichus 

sbichus@gmail.com

3 Replies 3

Aleksandar Vidakovic
Cisco Employee
Cisco Employee

hi Bichus,

IOS XR allows you to roll back the configuration to any point in the past. Hence the archiving of the running configuration is not necessary as it is the case on Classic IOS.

If you still want to do it, you can create an EEM/Tcl script for this purpose. You can find good examples at:

https://supportforums.cisco.com/document/12292156/asr9000-eem-script-repository

regards,

/Aleksandar

Thank you Aleksandar

joshuacmoore
Level 1
Level 1

Have you looked into RANCID or Oxidize? Their config backup methods work with IOS-XR. You can look at their templates and get an idea of how they do it.