Hi TuanAnhVu,
Greetings,
As per my understanding you want to trigger a single policy when it matches the event which has multiple attributes.
As per our documentation, 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.
attributes-match {
chassisd_snmp_trap10.value5 matches "^FPC*";
chassisd_snmp_trap10.argument8 equals jnxFruOfflineReason; >> Has the equals option
chassisd_snmp_trap10.value8 equals 23; >> Has the equals option
}
For these equals options we need the within clause as per documentation.
Refer Link for more details: https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/attributes-match-edit-event-options.html
Hope this helps.
Please mark "Accept as solution" if this answers your query.
Kudos are appreciated too!
Regards,
Sharat Ainapur