cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
705
Views
0
Helpful
2
Replies

How to schedule a router configuration

hugh2_nguyen
Level 1
Level 1

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

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

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"

Mr. Clarke,

Thanks very much. This should work for my routers.

Hugh