68
action-type
: Specifies what action to be triggered. The default action is
none
.
none
: Specifies the action of displaying results on the terminal display.
trap-only
: Specifies the action of displaying results on the terminal display and meanwhile sending
SNMP trap messages to the NMS. This keyword is not available for the DNS operation.
Usage guidelines
You cannot edit a reaction entry after it is created. To change the attributes in a reaction entry, use
the
undo reaction
command to delete the entry, and then configure a new one.
Only successful probe packets are monitored. Statistics about failed probe packets are not collected.
Examples
# Create reaction entry 1 for monitoring the average probe duration of ICMP echo operation, and set
the upper limit to 50 milliseconds and lower limit to 5 milliseconds. Before the NQA operation starts,
the initial state of the reaction entry is invalid. After the operation, the average probe duration is
checked. If it exceeds the upper limit, the state is set to over-threshold. If it is below the lower limit,
the state of the reaction entry is set to below-threshold. Once the state of the reaction entry changes,
a trap message is generated and sent to the NMS.
<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-duration
threshold-type average threshold-value 50 5 action-type trap-only
# Create reaction entry 2 for monitoring the probe duration of ICMP echo operation, and set the
upper limit to 50 milliseconds and the lower limit to 5 milliseconds. Before the NQA operation starts,
the initial state of the reaction entry is invalid. After the operation, the accumulated probe duration is
checked against the threshold range. If the total number of threshold violations reaches or exceeds
10, the state of the entry is set to over-threshold. If it is below the lower threshold, 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 NMS.
<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-duration
threshold-type accumulate 10 threshold-value 50 5 action-type trap-only
# Create reaction entry 3 for monitoring the probe duration time of ICMP echo operation, and set the
upper limit to 50 milliseconds and the lower limit to 5 milliseconds. Before the NQA operation starts,
the initial state of the reaction entry is invalid. After the operation, the consecutive probe duration is
checked against the threshold range. If the total number of consecutive threshold violations reaches
or exceeds 10, the state of the entry is set to over-threshold. If it is below the lower threshold, 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 NMS.
<Sysname> system-view
[Sysname] nqa entry admin test
[Sysname-nqa-admin-test] type icmp-echo