Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Generating Internal Events to Trigger Event Policies

Internal events are events that you create to trigger a policy to be executed. They are not generated by Junos OS processes, and they do not have any associated system log messages. You can generate an internal event based on a time interval or the time of day.

To generate an event, include the following statements at the [edit event-options] hierarchy level:

[edit event-options]
generate-event event-name {time-interval seconds;time-of-day hh:mm:ss;}

In the time-interval statement, configure a frequency, in seconds, with which to repeatedly generate an event. The time interval can range from 60 through 2,592,000 seconds.

In the time-of-day statement, configure a time of day for the event to occur. Use the format hh:mm:ss.

Note: If you modify the system time by issuing the set date operational mode command, we recommend that you also issue the commit full or the restart event-process command. Otherwise, an internal event based on the time of day might not be generated at the configured time.

For example, if you configure an internal event to be generated at 15:55:00, and then you modify the system time from 15:47:17 to 15:53:00, the event is generated when the system time is approximately 16:00 instead of at the configured time, 15:55:00. You can correct this problem by issuing the commit full or the restart event-process command.

You can configure up to 10 internal events. If you attempt to commit a configuration with more than 10 internal events, Junos OS generates an error, and the commit fails.

For configuration examples, see Example: Generating an Internal Event.

Published: 2013-07-26

Published: 2013-07-26