Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


policy (Event Policy)



Hierarchy Level

Release Information

Statement introduced in Junos OS Release 7.5.

Statement introduced in Junos OS Release 9.0 for EX Series switches.

Statement introduced in Junos OS Release 13.2X51-D10 for QFX Series switches.


Define an event policy to be processed by the eventd process. If you configure a policy, the events and then statements are mandatory.

You can configure multiple policies to be processed for an event. The policies are executed in the order in which they appear in the configuration. If you configure more than one policy for an event, and if one of the policies is configured to ignore the event, no policies that follow the policy with the ignore statement are executed.


If you do not configure a policy for an event, the event is recorded in the system log.


policy-nameName of an event policy.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

maintenance—To view this statement in the configuration.

maintenance-control—To add this statement to the configuration.