[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:
-
{$$.attribute-name}—The
double dollar sign ($$) notation represents the event that
is triggering a policy. When combined with an attribute name, the
command variable is replaced by the value of the attribute name of
the triggering event.
-
{$event.attribute-name}—The dollar sign with the event name ($event) notation represents the most recent event
that matches the specified event. The variable is replaced by the
value of the attribute name of the most recent event that matches event.
-
{$*.attribute-name}—The dollar sign with the asterisk ($*) notation represents
the most recent event that matches any of the correlating events.
The variable is replaced by the value of the attribute name of the
most recent event that matches any of the events specified in the
policy configuration.
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]