Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
keyboard_arrow_right

event-options

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
event-options {
    destinations {
        destination-name {
            archive-sites {
                url <password password>;
            }
            transfer-delay seconds;
        }
    }
    event-script {
        dampen {
            dampen-options {
                cpu-factor cpu-factor;
                line-interval line-interval;
                time-interval time-interval;
            }
        }
        file filename {
            checksum hash-algorithm hash-value;
            dampen {
                dampen-options {
                    cpu-factor cpu-factor;
                    line-interval line-interval;
                    time-interval time-interval;
                }
            }
            python-script-user username;
            refresh;
            refresh-from url;
            remote-execution {
                remote-hostname {
                    passphrase user-password;
                    username user-login;
                }
            }
            routing-instance routing-instance-name;
            source url;
            start {
                start-options {
                    mem-factor percentage;
                }
            }
        }
        max-datasize size;
        optional;
        refresh;
        refresh-from url;
        start {
            start-options {
                mem-factor percentage;
            }
        }
        traceoptions {
            file <filename> <files number> <size size> <world-readable | no-world-readable>;
            flag flag;
            no-remote-trace;
        }
    }
    generate-event {
        event-name (time-interval seconds <start-time start-time> | time-of-day hh:mm:ss) <no-drift>;
    }
    max-policies policies;
    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 {
            change-configuration {
                commands {
                    "command";
                }
                commit-options {
                    check <synchronize>;
                    force;
                    log "comment-string";
                    synchronize;
                }
                retry count number interval seconds;
                user-name username;
            }
            event-script filename {
                arguments {
                    argument-name argument-value;
                }
                destination destination-name {
                    retry-count number retry-interval seconds;
                    transfer-delay seconds;
                }
                output-filename filename;
                output-format (text | xml);
                user-name username;
            }
            execute-commands {
                commands {
                    "command";
                }
                destination destination-name {
                    retry-count count retry-interval seconds;
                    transfer-delay seconds;
                }
                output-filename filename;
                output-format (text | xml);
                user-name username;
            }
            ignore;
            priority-override {
                facility facility-type;
                severity severity-level;
            }
            raise-trap;
            upload filename (filename | committed) destination destination-name {
                retry-count count retry-interval seconds;
                transfer-delay seconds;
                user-name username;
            }
        }
        within seconds {
            events [ events ];
            not events [ events ];
            trigger (after number | on number | until number);
        }
    }
    traceoptions {
        file filename <files number> <size size> <world-readable | no-world-readable>;
        flag flag;
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit]

Description

Configure event policies and event scripts.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

maintenance—To view or add this statement in the configuration.

Release Information

Statement introduced in Junos OS Release 7.5.

external-footer-nav