Your browser failed to load CSS style sheets. Your browser or web proxy might not support elliptic-curve TLS

Building network automation solutions

9 module online course

Start now!
back to overview

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.

Please read our Blog Commenting Policy before writing a comment.

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


Constructive courteous comments are most welcome. Anonymous trolling will be removed with prejudice.