
169
accumulate
accumulate-occurrences
: Specifies the total number of probe failures in a test. The value is in
the range of 1 to 15.
consecutive
consecutive-occurrences
: Specifies the number of consecutive probe failures since the NQA
test group starts. The value is in the range of 1 to 16.
action-type
: Specifies what action to be triggered to react to certain measurement conditions and it
defaults to
none
.
none
: Specifies to only record events for terminal display, and not to send any trap messages.
trap-only
: Specifies to record events and send SNMP trap messages. This keyword is not supported in
DNS test view.
Description
Use the
reaction checked-element probe-fail
command to configure a reaction entry for monitoring the
probe failures. You cannot edit a reaction entry. To change the attributes in a reaction entry, use the
undo
reaction
command to delete this entire entry and start over.
Use the
undo reaction
command to delete the specified reaction entry.
By default, no reaction entry for monitoring probe failures is configured.
Examples
# Create reaction entry 1 for monitoring the probe failures in ICMP echo tests. Before the NQA test group
starts, the initial state of the reaction entry is invalid. After each test, if the total number of probe failures
exceeds 10 (included), the state of the entry is set to over-threshold; otherwise, the state of the entry is set
to below-threshold. Once the state of the reaction entry changes, a trap message is generated and sent
to the network management server.
<Sysname> system-view
[Sysname] nqa entry admin test
[Sysname-nqa-admin-test] type icmp-echo
[Sysname-nqa-admin-test-icmp-echo] reaction 1 checked-element probe-fail threshold-type
accumulate 10 action-type trap-only
# Create reaction entry 2 for monitoring the probe failures in ICMP echo tests. Before the NQA test group
starts, the initial state of the reaction entry is invalid. If probe failure occurs consecutively for 10 times or
more since the test group starts, the state of the entry is set to over-threshold; otherwise, the state of the
entry is set to below-threshold. Once the state of the reaction entry changes, a trap message is generated
and sent to the network management server.
<Sysname> system-view
[Sysname] nqa entry admin test
[Sysname-nqa-admin-test] type icmp-echo
[Sysname-nqa-admin-test-icmp-echo] reaction 2 checked-element probe-fail threshold-type
consecutive 10 action-type trap-only
reaction checked-element probe-fail (for trigger)
Syntax
reaction
item-number
checked-element probe-fail threshold-type consecutive
consecutive-occurrences
action-type
trigger-only
undo reaction
item-number