Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

then (Event Policy)

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
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 count 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;
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit event-options policy policy-name]

Description

Define event policy actions that are executed when an event occurs that triggers the policy. For each event policy, you can configure multiple actions.

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.

footer-navigation