227
Syntax
reaction trap
{
path-change
|
probe-failure consecutive-probe-failures
|
test-complete
|
test-failure
[
cumulate-probe-failures
] }
undo reaction trap
{
path-change
|
probe-failure
|
test-complete
|
test-failure
}
Default
No traps are sent to the NMS.
Views
DHCP/DLSw/DNS/FTP/HTTP/SNMP/TCP/voice operation view
ICMP/UDP echo operation view
UDP jitter operation view
UDP tracert operation view
Predefined user roles
network-admin
Parameters
path-change
: Sends a trap when the UDP tracert operation detects a different path to the
destination.
probe-failure consecutive-probe-failures
: Sends a trap to the NMS if the number of consecutive
probe failures in an operation is greater than or equal to
consecutive-probe-failures.
The value range
for the
consecutive-probe-failures
argument is 1 to 15. The system counts the number of
consecutive probe failures for each operation, so multiple traps might be sent.
test-complete
: Sends a trap to indicate that the operation is completed.
test-failure
: Sends a trap when an operation fails. For operations other than UDP tracert operation,
the system counts the total number of probe failures in an operation. If the number reaches or
exceeds the value for the
cumulate-probe-failures
argument, a trap is sent for the operation failure.
cumulate-probe-failures
: Specifies the total number of probe failures in an operation. The value
range for the
cumulate-probe-failures
argument is 1 to 15. This argument is not supported by the
UDP tracert operation.
Usage guidelines
The UDP jitter and voice operations support only the
test-complete
keyword.
The UDP tracert operation supports the following keywords:
•
path-change
.
•
test-complete
.
•
test-failure
without the
cumulate-probe-failures
argument.
Examples
# Configure the system to send a trap if five or more consecutive probe failures occur in an ICMP
echo operation.
<Sysname> system-view
[Sysname] nqa entry admin test
[Sysname-nqa-admin-test] type icmp-echo
[Sysname-nqa-admin-test-icmp-echo] reaction trap probe-failure 5