Supported Platforms
Related Documentation
attributes-match
Syntax
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
Execute the policy only if the attributes of two events are correlated or if the attribute of one event matches a regular expression.
If the attributes-match statement includes the equals or starts-with options, or if it includes a matches option that includes a clause for an event that is not specified at the [edit event-options policy policy-name events] hierarchy level, you must include one or more within statements in the same policy configuration.
Starting with Junos OS Release 11.1, you can include event policy variables within the statement to differentiate between a trigger event attribute and a correlated event attribute. You can use 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 variable is replaced by the value of the attribute 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 of the most recent event that matches event.
The statements are explained separately.
Required Privilege Level
maintenance—To view this
statement in the configuration.
maintenance-control—To
add this statement to the configuration.