Using kron scheduler to backup a CME running config file

Unanswered Question
Jan 8th, 2010
User Badges:

I would like to use the kron command to schedule a backup of a CME configuration to an FTP server. How do I specify the host FTP server? I'm using the following link as a reference:


http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_tech_note09186a008020260d.shtml


Backup Configuration to a TFTP Server:


This example is to save the running config to a TFTP server (10.1.1.1) every Sunday at 23:00:


Router(config)#kron policy-list Backup

Router(config-kron-policy)#cli show run | redirect
tftp://10.1.1.1/test.cfg
Router(config-kron-policy)#exit
!
Router(config)#kron occurrence Backup at 23:00 Sun recurring
Router(config-kron-occurrence)#policy-list Backup



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Marwan ALshawi Sat, 01/09/2010 - 04:50
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

i think if you use EEM will be easier


try the follwoing:


event manager applet backup

event timer cron name "sundays" cron-entry " 0 0 * * 0"  ---trigger script midnight once a week on Sunday

action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "file prompt quiet"
action 4.0 cli command "end"
action 5.0 cli command "copy running tftp://serverIP"   use normal CLI copmmands
action 6.0 cli command "config t"
action 7.0 cli command "no file prompt quiet"
action 8.0 cli command "end"


if you still have issues i would recomnd you to open this discussion under network managment section



good luck

if helpful Rate

Actions

This Discussion

Related Content