R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)
59
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
[Sysname-nqa-admin-test-icmp-echo] reaction 3 checked-element probe-duration
threshold-type consecutive 10 threshold-value 50 5 action-type trap-only
reaction checked-element probe-fail (for trap)
Use reaction checked-element probe-fail to configure a reaction entry for monitoring the probe failures
of the operation.
Use undo reaction to delete the specified reaction entry.
Syntax
reaction item-number checked-element probe-fail threshold-type { accumulate accumulate-occurrences
| consecutive consecutive-occurrences } [ action-type { none | trap-only } ]
undo reaction item-number