Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

How to schedule a router configuration

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
Cisco Employee

Re: How to schedule a router configuration

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"

New Member

Re: How to schedule a router configuration

Mr. Clarke,

Thanks very much. This should work for my routers.

Hugh

309
Views
0
Helpful
2
Replies
CreatePlease to create content