Last Updated : Nov 06, 2012 |

Configures an object tracker. Use no track to delete the object tracker.

You can configure two types of object trackers:

  • An object tracker that tracks the state of a single RTR object.

  • A track list that is composed of multiple previously-defined object trackers. Note that when configuring a track list you might also specify how to calculate the state of the list based on the states of the individual object trackers composing the list. If you do not specify how to calculate the state of the list, the boolean AND argument is used.

Note:

You cannot delete an object tracker which is a member of a track list. You must first remove the object tracker from the track list using the no object command. You cannot delete an object tracker which was linked to an application using the keepalive-track command. You must first use the no keepalive-track command to disable the link.

Syntax

[no] track track-id rtr rtr-id

[no] track track-id list [{boolean {and | or} | threshold count}]

Parameters

Parameter

Description

Possible Values

Default Value

track-id

The track list ID

1-50

rtr-id

The RTR operation ID

1-30

boolean

Keyword specifying that the state of the tracked list is based on a Boolean calculation

and

Keyword specifying that the list is up if all objects are up, or down if one or more of the objects are down. For example, when tracking two interfaces, up means that both interfaces are up, and down means that either interface is down.

or

Keyword specifying that the list is up if at least one object is up. For example, when tracking two interfaces, up means that either interface is up, and down means that both interfaces are down.

threshold count

Keyword specifying that the state of the tracked list is based on a threshold calculation, as follows:

  • When the list is in the down state, it switches to the up state if the number of the up objects is greater than or equal to the number specified in the threshold count up command.

  • When the list is in the up state, it switches to the down state if the number of up objects is less than or equal to the number specified in the threshold count down command.

User level

read-write

Context

general

Examples

To configure object tracker 1 which tracks RTR 2:

Gxxx-001(config)# track 1 rtr 2
Gxxx-001(config-track rtr 1)#

To create Track List 5 and specify that its state should be calculated using the Boolean OR argument:

Gxxx-001(config)# track 5 list boolean or
Gxxx-001(config-track list 5)#

To create Track List 3 and specify that its state should be calculated using a threshold calculation:

Gxxx-001(config)# track 3 list threshold count
Gxxx-001(config-track list 3)#