then (Event Policy)
Syntax
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
[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.