Example: Generating an Internal Event at Midnight

In the following example, the internal event called IT-IS-MIDNIGHT is generated at 12:00 AM every night (00:00:00). When the eventd process receives the IT-IS-MIDNIGHT event, certain actions are taken.

[edit event-options]generate-event it-is-midnight time-of-day 00:00:00;policy midnight-chores {events it-is-midnight;then {... actions ...}}