within (Event Policy)
Syntax
within seconds {
events [ events ];
not events [ events ];
trigger (after | on | until) event-count;
}
Hierarchy Level
[edit event-options policy policy-name]
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.
|
Required Privilege Level
maintenance—To view or add this statement in the configuration.
Release Information
Statement introduced in Junos OS Release 7.5.