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

commands

Syntax

commands {
"command";
}

Hierarchy Level

[edit event-options policy policy-name then execute-commands]

Release Information

Statement introduced in JUNOS Release 7.5.

Description

Specify an operational mode command to be issued on receipt of an event.

Options

command—Command to be issued. Enclose each command in quotation marks (“ ”). The event process (eventd) issues the commands in the order in which they appear in the configuration.

You can include variables in commands. The eventd process replaces each variable with values contained in the event that triggers the policy. You can use command variables of the following forms:

Usage Guidelines

See Executing Operational Mode Commands and Representing the Correlating Event in an Event Policy.

Required Privilege Level

maintenance—To view this statement in the configuration.
maintenance-control—To add this statement to the configuration.


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