-1

I am using the below code to execute a TCL script inside a cisco router.

Router#tclsh
Router(tcl)#source tftp://tftp-server/tcl-script.tcl 

Everyday I wanted to execute same script in my router at 10 PM. how can I schedule it?

Regards,

Varghese

GrAnd
  • 10,141
  • 3
  • 31
  • 43
user3424922
  • 22
  • 1
  • 4
  • Possible duplicate of [How to write a Cisco IOS script to run a set of commands at a certain time each day?](http://stackoverflow.com/questions/21454227/how-to-write-a-cisco-ios-script-to-run-a-set-of-commands-at-a-certain-time-each) – nobody Apr 12 '16 at 00:31

1 Answers1

2

You need look at kron command. See Cisco command reference. And write something like this:

configure terminal
    kron policy-list policy-day10pm
        cli tclsh tftp://tftp-server/tcl-script.tcl 
        exit
    kron occurrence day10pm at 22:00 recurring
        policy-list policy-day10pm
        exit
    exit
show kron schedule
>> policy-day10pm inactive, will run again in 0 days 08:05:41 at 22:00 on
user207421
  • 305,947
  • 44
  • 307
  • 483
GrAnd
  • 10,141
  • 3
  • 31
  • 43