- policy policy-name {
-
events [ events ];
-
within seconds not events [ events ];
-
-
attributes-match {
-
event1.attribute-name equals event2.attribute-name;
-
event.attribute-name matches regular-expression;
-
event1.attribute-name starts-with event2.attribute-name;
- }
-
-
then {
-
-
event-script filename {
-
-
arguments {
-
name;
- }
-
output-filename filename;
-
destination destination-name;
- }
-
-
execute-commands {
-
-
commands {
- "command";
- }
-
output-filename filename;
-
output-format (text | xml);
-
destination destination-name;
- }
-
ignore;
-
raise-trap;
-
upload filename committed destination destination-name;
-
upload filename filename destination destination-name;
- }
- }
- [edit event-options]
Statement introduced in JUNOS Release 7.5.
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 to ignore the event, no policies that follow the ignore statement are executed.
If you do not configure a policy for an event, the event is recorded in the system log.
policy-name—Name of an event policy.
The statements are explained separately.
maintenance—To view this
statement in the configuration.
maintenance-control—To
add this statement to the configuration.