Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

within (Event Policy)

Syntax

Hierarchy Level

Description

Configure events that must (or must not) occur within a specified time interval before one of the trigger events in order for the event policy to be triggered.

You can configure multiple events in the same within statement. The event policy triggers if any of the correlating events defined in the within seconds events statement occur within the configured number of seconds before any of the trigger events. You can also configure multiple within statements for the same event policy. Each within statement must specify a different time interval. When you configure multiple within statements, every statement must have one matching event that occurs within its respective time frame for the policy to trigger. Thus, the system evaluates a single within statement that has multiple events using a logical OR, and the system evaluates multiple within statements using a logical AND.

The remaining statements are explained separately. See CLI Explorer.

Options

seconds

Time interval between a correlated event and a trigger event.

  • Range: 60 through 604,800 seconds

Required Privilege Level

maintenance—To view or add this statement in the configuration.

Release Information

Statement introduced in Junos OS Release 7.5.