Building Network Automation Solutions
6 week online course starting in September 2017

Debugging time-based configuration

Debugging time-based configurations could be a nightmare, as you have to switch router's time back and forth trying to debug your configuration and wait for the desired event to occur. When I was debugging my EEM-based solution to time-based BGP policy routing, I simply defined two aliases that would set the clock to 30 seconds before the event I wanted to test:

alias exec 859 clock set 08:59:30
alias exec 900 clock set 09:00:30

Obviously, these tests are best done in a lab setup … and you have to turn off NTP or any other form of time synchronization.

1 comment:

  1. Hello,

    On specific platforms you need to specify the day, month, year.


    alias exec 991 clock set 08:00:00 3 march 2008


You don't have to log in to post a comment, but please do provide your real name/URL. Anonymous comments might get deleted.