To specify an element to be monitored for a reaction, use the react command in the appropriate configuration mode. To remove the specified reaction type, use the no form of this command.
react {connection-loss | jitter-average [dest-to-source | source-to-dest] | packet-loss {dest-to-source | source-to-dest} | rtt | timeout | verify-error}
no react {connection-loss | jitter-average [dest-to-source | source-to-dest] | packet-loss {dest-to-source | source-to-dest} | rtt | timeout | verify-error}
Syntax Description
connection-loss
|
Specifies that a reaction occurs if there is a connection-loss for the monitored operation.
|
jitter-average [dest-to-source | source-to-dest]
|
Specifies that a reaction occurs if the average round-trip jitter value violates the upper threshold or lower threshold. The
following options are listed for the jitter-average keyword:
- dest-to-source —(Optional) Specifies the jitter average destination to source (DS).
- source-to-dest —(Optional) Specifies the jitter average source to destination (SD).
|
packet-loss {dest-to-source | source-to-dest}
|
Specifies the reaction on packet loss value violation. The following options are listed for the packet-loss keyword:
- dest-to-source —(Optional) Specifies the packet loss destination to source (DS) violation.
- source-to-dest —(Optional) Specifies the packet loss source to destination (SD) violation.
|
rtt
|
Specifies that a reaction occurs if the round-trip value violates the upper threshold or lower threshold.
|
timeout
|
Specifies that a reaction occurs if there is a timeout for the monitored operation.
|
verify-error
|
Specifies that a reaction occurs if there is an error verification violation.
|
Command Default
If there is no default value, no reaction is configured.
Command Modes
IP SLA reaction configuration
IP SLA MPLS LSP monitor reaction configuration
Command History
Release
|
Modification
|
Release 6.0
|
This command was introduced.
|
Usage Guidelines
For the connection-loss keyword, jitter-average keyword, and rtt keyword, the reaction does not occur when the value violates the upper or the lower threshold. The reaction condition is
set when the upper threshold is passed, and it is cleared when values go below the lower threshold.
For the connection-loss keyword and verify-error keyword, thresholds do not apply to the monitored element.
For the jitter-average keyword, packet-loss keyword, and rtt keyword, if the upper threshold for react threshold type average 3 is configured as 5000 ms and the last three results of
the operation are 6000, 6000, and 5000 ms, the average is 6000 + 6000 + 5000=17000/3 = 5667—therefore violating the 5000-ms
upper threshold. The threshold type average must be configured when setting the type. These keywords are not available if
connection-loss, timeout, or verify-error is specified as the monitored element, because upper and lower thresholds do not
apply to these options.
In IP SLA MPLS LSP monitor reaction configuration mode, only the connection-loss and timeout keywords are available. If the react command is used in IP SLA MPLS LSP monitor reaction configuration mode, it configures all operations associated with the
monitored provider edge (PE) routers. The configuration is inherited by all LSP operations that are created automatically
by the PE discovery.
This table lists the Supported Reaction Configuration, by IP SLA Operation.
Table 1. Supported Reaction Configuration, by IP SLA Operation
Operation
|
ICMP Echo
|
Path Echo
|
UDP Jitter
|
UDP Echo
|
ICMP Path Jitter
|
MPLS LSP Ping
|
MPLS LSP Trace
|
Failure
|
--
|
--
|
--
|
--
|
--
|
--
|
--
|
RTT
|
Y
|
Y
|
Y
|
Y
|
Y
|
Y
|
Y
|
RTTAvg
|
--
|
--
|
--
|
--
|
--
|
--
|
--
|
Timeout
|
Y
|
Y
|
Y
|
Y
|
Y
|
Y
|
Y
|
connectionLoss
|
--
|
--
|
Y
|
Y
|
--
|
Y
|
Y
|
verifyError
|
--
|
--
|
Y
|
Y
|
--
|
--
|
--
|
jitterSDAvg
|
--
|
--
|
Y
|
--
|
--
|
--
|
--
|
jitterDSAvg
|
--
|
--
|
Y
|
--
|
--
|
--
|
--
|
jitterAvg
|
--
|
--
|
Y
|
--
|
--
|
--
|
--
|
PacketLossDS
|
--
|
--
|
Y
|
--
|
--
|
--
|
--
|
PacketLossSD
|
--
|
--
|
Y
|
--
|
--
|
--
|
--
|
PacketLoss
|
--
|
--
|
Y
|
--
|
--
|
--
|
--
|
Task ID
Task ID
|
Operations
|
monitor
|
read, write
|
Examples
The following example shows how to use the react command with the connection-loss keyword:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# ipsla
RP/0/RP0/CPU0:router(config-ipsla)# reaction operation 432
RP/0/RP0/CPU0:router(config-ipsla-react)# react connection-loss
RP/0/RP0/CPU0:router(config-ipsla-react-cond)#
The following example shows how to use the react command with the jitter-average keyword:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# ipsla
RP/0/RP0/CPU0:router(config-ipsla)# reaction operation 432
RP/0/RP0/CPU0:router(config-ipsla-react)# react jitter-average
RP/0/RP0/CPU0:router(config-ipsla-react-cond)#
The following example shows how to use the react command with the packet-loss keyword:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# ipsla
RP/0/RP0/CPU0:router(config-ipsla)# reaction operation 432
RP/0/RP0/CPU0:router(config-ipsla-react)# react packet-loss dest-to-source
RP/0/RP0/CPU0:router(config-ipsla-react-cond)#
The following example shows how to use the react command with the rtt keyword:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# ipsla
RP/0/RP0/CPU0:router(config-ipsla)# reaction operation 432
RP/0/RP0/CPU0:router(config-ipsla-react)# react rtt
RP/0/RP0/CPU0:router(config-ipsla-react-cond)#
The following example shows how to use the react command with the timeout keyword:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# ipsla
RP/0/RP0/CPU0:router(config-ipsla)# reaction operation 432
RP/0/RP0/CPU0:router(config-ipsla-react)# react timeout
RP/0/RP0/CPU0:router(config-ipsla-react-cond)#
The following example shows how to use the react command with the verify-error keyword:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# ipsla
RP/0/RP0/CPU0:router(config-ipsla)# reaction operation 432
RP/0/RP0/CPU0:router(config-ipsla-react)# react verify-error
RP/0/RP0/CPU0:router(config-ipsla-react-cond)#