Use this command to track the state of an IP Service Level Agreements (SLAs) operation and to enter tracking configuration mode.
| Default | Disabled |
| Format | track object-number ip sla operation-number [reachability | state] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| object-number | Identifies the object to be tracked. The range is from 1 to 128. |
| operation-number | Identifies the IP SLAs operation to be tracked. |
| reachability | Tracks whether the route is reachable. |
| state | Tracks the operation return code. |
Usage Guidelines
An operation return-code value is maintained by every IP SLAs operation. This return code is interpreted by the tracking process. The return code may return OK, OverThreshold, and Timeout.
Two facets of an IP SLAs operation can be tracked: reachability and state. The acceptance of the OverThreshold return code is the difference between these facets. Table 1 below shows the comparision between the reachability and state facets of IP SLAs operations that can be tracked.
| Tracking | Return Code | Track State |
|---|---|---|
| Reachability | OK or OverThreshold Timeout | Up Down |
| State | OK Timeout, OverThreshold | Up Down |
Tracking of a maximum of 128 (IPv4 and IPv6 combined) track objects is supported. If neither of the optional keywords (reachability or state) is specified in a configured track ip sla CLI command, then the default tracking type value reachability gets configured.
Example: In the following example, the tracking process is configured to track the state of IP SLAs operation 5:
(Routing)(config)# track 2 ip sla 5 state
Example: In the following example, the tracking process is configured to track the reachability of IP SLAs operation 6:
(Routing)(config)# track 3 ip sla 6 reachability