commands (Event Policy Execute Commands)
Syntax
commands { "command"; }
Hierarchy Level
[edit event-options policy policy-name then execute-commands]
Description
Specify the operational mode commands to be issued when the corresponding event policy is triggered. When the event policy is triggered, the event process (eventd) executes the commands in the order in which they appear in the event policy configuration.
If you include the op url
command to execute
a remote script as an event policy action, Python scripts are always
executed using the access privileges of the generic, unprivileged
user and group nobody
. If you do not configure the user-name
statement, SLAX and XSLT scripts are executed with
root privileges.
Options
command | Operational mode command to be executed. Enclose each command
in quotation marks ( You can include variables in commands. The eventd process replaces each variable with values contained in the events that trigger the policy. You can use command variables of the following forms:
|
Required Privilege Level
maintenance—To view or add this statement in the configuration.
Release Information
Statement introduced in Junos OS Release 7.5.