cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2609
Views
0
Helpful
4
Replies

Runnig TCL script manually?

noel-thompson
Level 1
Level 1

We are running a TCL script via a cron job with no issue, every 2 minutes and it working like a bomb.

When i try run the script manually via the event manager run xxx.tcl it say that it is not registered?

When i check the sh event manamger policy registed it says it is?

Any ideas?

Regards

Noel

4 Replies 4

Joe Clarke
Cisco Employee
Cisco Employee

You can only run EEM policies manually that are registered using the none event detector.  Take a look at the Testing section of this doc:

https://supportforums.cisco.com/docs/DOC-12757

If you can support multiple events and you register your policy using both the timer and none EDs, then you can run adhoc tests as well.

Hi Guys,

How to write tcl script and kron jobs that will backup the router config every 60 minutes.

CF

You don't need kron or Tcl for this.  You can use the built-in config archive feature of IOS:

http://www.cisco.com/en/US/docs/ios/12_3t/12_3t7/feature/guide/gtrollbk.html#wp1100253

If you do want to go the scheduled route with EEM, start a new thread for your issue.

mhnedirli
Level 1
Level 1

you can do with this

!

kron occurrence BACKUP_TIME in 30 recurring

policy-list BACKUP_POLICY

kron policy-list BACKUP_POLICY

cli copy run start