react (tplt-icmp-ech)
To configure reaction and proactive threshold monitoring parameters in an auto IP Service Level Agreements (SLAs) operation template for an Internet Control Message Protocol (ICMP) echo operation, use the react command in the ICMP echo submode of IP SLA template configuration mode. To disable all threshold monitoring or to disable individual monitored elements, use the no form of this command.
react [monitored-element [ [action-type type-of-action] [threshold-type {average [number-of-measurements] | consecutive [occurrences] | immediate | never | xofy [x-value y-value]}] [threshold-value upper-threshold lower-threshold]]]
no react [monitored-element]
Syntax Description
monitored-element |
(Optional) Element to be monitored for threshold violations. Valid keywords are:
|
||
action-type |
(Optional) Specifies action to be taken when threshold violations occur. |
||
type-of-action |
(Optional) Keywords fortype-of-action are:
|
||
threshold-type average |
(Optional) Specifies that the reaction occurs when the average of a specified number of measurements for the monitored element either exceeds the upperthreshold or drops below the lowerthreshold . |
||
number-of-measurement |
(Optional) Number of averaged measurements. Range is 1 to 16. Default is 5. For example, if the number-of-measurement for threshold-typeaverage is 3 and the upper threshold is 5000 ms and the last three results of the operation are 6000, 6000, and 5000 ms, the average would be 6000 + 6000 + 5000 = 17000/3 = 5667 ms and the average exceeds the upper threshold of 5000 ms. |
||
threshold-type consecutive |
(Optional) Specifies that the reaction occurs when threshold violation is consecutively met for a specified number of times. |
||
occurrences |
(Optional) Number of consecutive occurrences. Range is 1 to 16. Default is 5. |
||
threshold-type immediate |
(Optional) Specifies that the reaction occurs each time the threshold violation is met. |
||
threshold-type never |
(Optional) Specifies that threshold violations should not be monitored. This is the default threshold type.
|
||
threshold-type xofy |
(Optional) Specifies that the reaction occurs when violation threshold for the monitored element is met x number of times within the last y number of measurements. |
||
x-value y-value |
(Optional) Range for the x-value and for the y-value is 1 to 16. Default is 5 for both values. |
||
threshold-value |
(Optional) Specifies upper-threshold and lower-threshold values for monitored elements |
||
upper-threshold |
Value in milliseconds. For defaults, see the table below. |
||
lower-threshold |
Value in milliseconds. For defaults, see the table below. |
Command Default
IP SLAs proactive threshold monitoring is disabled.
Command Modes
ICMP echo submode of IP SLA template configuration (config-tplt-icmp-ech)
Command History
Release |
Modification |
---|---|
15.1(1)T |
This command was introduced. |
Usage Guidelines
This command enables proactive threshold monitoring for one or more elements in the auto IP SLAs operation template being configured and defines the conditions under which the operation makes the transition from pending to active.
You can configure this command multiple times so as to allow reactions for multiple monitored elements.
The noformof this command with one or more keywords can be used to disable individual monitored elements or use the no react command without keywords to disable all proactive threshold monitoring in the auto IP SLAs operation template.
The table below lists the default upper and lower thresholds for specific monitored elements.
Monitored Element Keyword |
Upper Threshold |
Lower Threshold |
---|---|---|
rtt |
5000 ms |
3000 ms |
Only SNMP traps are supported for round-trip time (RTT) violations during non-Jitter operations.
Only syslog messages are supported for non-RTT violations other than timeout, connectionLoss, or verifyError.
Both SNMP traps and syslog messages are supported for timeout, connectionLoss, or verifyError violations only.
SNMP traps for IP SLAs are supported by the CISCO-RTTMON-MIB and CISCO-SYSLOG-MIB. Use the ipslaloggingtraps command to enable the generation of SNMP system logging messages specific to IP SLAs trap notifications. Use the snmp-serverenabletrapsrtr or snmp-serverenabletrapssyslog command to enable the sending of IP SLAs SNMP trap notifications.
To display the current threshold monitoring configuration for an auto IP SLAs operation, use the showipslaautotemplate command.
Examples
The following example shows how to configure operation parameters and proactive threshold monitoring using an auto IP SLAs operation template. In this example, the proactive threshold monitoring configuration for the ICMP echo operation specifies that when three consecutive timeout events occur, an SNMP trap notification should be sent.
Router(config)#ip sla auto template type ip icmp-echo react-to
Router(config-tplt-icmp-ech)#react timeout action-type traponly threshold-type conecutive 3
Router(config-tplt-icmp-ech)#end
Router# show ip sla auto template type ip icmp-echo
IP SLAs Auto Template: react-to
Measure Type: icmp-echo
Description:
.
.
.
Reaction Configuration:
Reaction Index : 1
Reaction : timeout
Threshold Type : Consecutive
Threshold CountX : 3
Threshold CountY : 5
Action Type : Trap Only