[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Event-Options Configuration Statement Hierarchy

To configure event policies, use the following statements at the [edit event-options] hierarchy level.

Shared JUNOS statements in the event-options hierarchy are shown in normal font and are documented in the JUNOS Configuration and Diagnostic 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 ;
}
}

[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]