×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Kron

Unanswered Question
Dec 15th, 2011
User Badges:

Is Kron capable of dropping in commands in config mode?  So far, I havn't been able to get this to work.  I basically want to drop in a static route at a certain time, then remove it at another time.


kron policy-list LAB-STORAGE-CONFIG

cli configure terminal

cli ip route 7.7.7.7 255.255.255.255 8.8.8.8 name LAB-STORAGE

cli exit

!

kron occurrence LAB-STORAGE-CONFIG at 16:00 recurring

policy-list LAB-STORAGE-CONFIG

!

!

kron policy-list LAB-STORAGE-REMOVE

cli configure terminal

cli no ip route 7.7.7.7 255.255.255.255 8.8.8.8 name LAB-STORAGE

cli exit

!

kron occurrence LAB-STORAGE-REMOVE at 05:30 recurring

policy-list LAB-STORAGE-REMOVE

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
cadet alain Thu, 12/15/2011 - 08:51
User Badges:
  • Purple, 4500 points or more

Hi,


I think kron only accepts exec mode command but not config ones but you can do it with EEM or a TCL script.


Regards.


Alain

Actions

This Discussion