Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    commands (Event Policy Execute Commands)

    Syntax

    commands {"command";}

    Hierarchy Level

    Release Information

    Statement introduced in Junos OS Release 7.5.

    Statement introduced in Junos OS Release 9.0 for EX Series switches.

    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.

    Required Privilege Level

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

    Published: 2013-03-05