Event-Options Configuration Statement Hierarchy

To configure event policies, use the configuration statements in the event-options configuration hierarchy. The statements that are not described in this chapter are common to a variety of devices running Junos OS and are described in the Junos Configuration and Operations Automation Guide.

event-options {destinations { destination-name {archive-sites {url password password ;}transfer-delay seconds ;}}event-script {file script-name ;traceoptions {file filename <files number > <size maximum-file-size ><world-readable | no-world-readable>;flag flag ;}}generate-event event-name {time-interval seconds ;time-of-day hh : mm : ss ;}policy policy-name {attributes-match { event1 . attribute-name equals event2 . attribute-name ; event .attribute-name matches regular-expression ; event1 . attribute-name starts-with event2 . attribute-name ;}events [ events ];then {event-script script-name .xml {arguments { name value ;}destination destination-name {retry-count number {retry-interval seconds ;}transfer-delay seconds ;}output-filename filename ;output-format (text | xml);user-name user-name ;}execute-commands {commands { “command”;}destination destination-name {retry-count number {retry-interval seconds ;}transfer-delay seconds ;}output-file-name filename ;output-format (text | xml);user-name user-name ;}ignore;raise-trap;upload filename committed destination destination-name ;upload filename filename destination destination-name ;}within seconds not events [ events ];}traceoptions {file filename <files number > <size maximum-file-size ><world-readable | no-world-readable>;flag flag ;}}