222
Use
undo reaction
to delete the specified reaction entry.
Syntax
reaction
item-number
checked-element probe-duration threshold-type
{
accumulate
accumulate-occurrences
|
average
|
consecutive
consecutive-occurrences
}
threshold-value
upper-threshold lower-threshold
[
action-type
{
none
|
trap-only
} ]
undo reaction item-number
Default
No reaction entry for monitoring the probe duration is configured.
Views
DHCP/DLSw/DNS/FTP/HTTP/SNMP/TCP operation view
ICMP/UDP echo operation view
Predefined user roles
network-admin
Parameters
item-number
: Assigns an ID to the reaction entry, in the range of 1 to 10.
threshold-type
: Specifies a threshold type.
accumulate
accumulate-occurrences
: Checks the total number of threshold violations. The value is
in the range of 1 to 15.
average
: Checks the average probe duration.
consecutive
consecutive-occurrences
: Specifies the number of consecutive threshold violations
after the NQA operation starts. The value is in the range of 1 to 16.
threshold-value
: Specifies threshold range in milliseconds.
upper-threshold
: Specifies the upper limit in the range of 0 to 3600000.
lower-threshold
: Specifies the lower limit in the range of 0 to 3600000. It must not be greater than the
upper threshold.
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