09-29-2009 07:49 AM
Hi,
I'm using 2800's and 3800's routers running OSPFv3 IPv4 address family and I would like to schedule an interface configuration so that it would take effect at a certain hour.
For example, I would like to crank up OSPF cost of interface f0/0 at 2300 hours(11PM) using static cost command:
int f0/0 "ospfv3 instance 64 cost 3000"
And at 0600 hours (6AM), I would like to undo the static ospf cost so that dynamic cost would be set by OSPF protocol:
int f0/0 "no ospfv3 instance 64 cost 3000"
Would you please give some advice on how to schedule the configuration. Thanks.
Hugh
09-29-2009 08:00 AM
You could use the Embedded Event MAnager for this. An applet like the following would work:
event manager applet ospf-cost-inc
event timer cron cron-entry "0 23 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "int fa0/0"
action 4.0 cli command "ospfv3 instance 64 cost 3000"
action 5.0 cli command "end"
event manager applet ospf-cost-dec
event timer cron cron-entry "0 6 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "int fa0/0"
action 4.0 cli command "no ospfv3 instance 64 cost 3000"
action 5.0 cli command "end"
09-29-2009 08:15 AM
Mr. Clarke,
Thanks very much. This should work for my routers.
Hugh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide