F3215-HP Load Balancing Module High Availability Command Reference-6PW101
102
action-type: Specifies what action to be triggered. The default action is none.
none: Specifies the action of only 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 supported for the DNS operation.
Usage guidelines
Only successful operations are monitored. Failed operations are not counted.
Examples
# Create reaction entry 1 for monitoring the average duration of ICMP echo operation. Set the upper
threshold to 50 milliseconds and lower threshold 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 threshold, the state is set to over-threshold. If it is below the lower threshold, 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 duration of ICMP echo operation. Set the upper threshold to
50 milliseconds, and the lower threshold to 5 milliseconds. Before the NQA operation starts, the initial
state of the reaction entry is invalid. After the operation, the probe duration is checked against the
threshold range. If the total number of threshold violations exceeds 10 (included), 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 duration time of ICMP echo operation. Set the upper
threshold to 50 milliseconds, and the lower threshold to 5 milliseconds. Before the NQA operation starts,
the initial state of the reaction entry is invalid. After the operation, the probe duration is checked against
the threshold range. If the consecutive threshold violations exceed 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 results of
the operation. If the number of consecutive probe failures reaches the threshold, collaboration with other
modules is triggered. You cannot edit a reaction entry. To change the attributes in a reaction entry, use
undo reaction to delete the entry first and then configure a new one.