One of my regular readers asked this question:
I want to shut my particular interface after 6:oo pm every day. Right now I have just the general idea as to how EEM works. What I guessed is that when the router's clock ticks 6:00 pm a syslog message might be generated and event manager will catch it and execute the particular command. But I don’t understand how EEM monitors the clock so that it knows its 6:00 pm now and it has to generate a syslog message.
If you want a quick answer, you’ll find the exact solution in the Time-based wireless interface activity article in the EEM category in the CT3 wiki. However, you might want to get a bit more out of this question.
If you want to use EEM, the best investment of your time would be to spend an hour or two reading its introductory documentation, particularly the section describing the event detectors. It nicely describes four time-based event detectors available in EEM. You can also try searching my blog and CT3 wiki. For example, I’ve written about EEM timer cron event more than two years ago. The blog labels and wiki categorization should be of great help: start with the EEM label in the blog and the EEM category in the CT3 wiki.
Last but not least, there’s always more than one way to solve a problem with Cisco IOS. If you’re not happy with EEM, you can use Kron.