Information about object tracking
Object tracking is a feature that allows you to monitor specific objects on a device and take action when their state changes.
-
Tracks objects such as interface line protocol state, IP routing, and route reachability.
-
Enables actions to be triggered when the tracked object’s state changes.
-
Increases network availability and shortens recovery time if an object state goes down.
Object tracking overview
Object tracking is a feature that enables monitoring of specific objects on a device and allows actions to be taken when the state of those objects changes.
-
Tracks objects such as interface line protocol state, IP routing state, and route reachability.
-
Allows multiple clients to register interest and take action when a tracked object changes state.
-
Each tracked object is identified by a unique number for client configuration.
Clients and object types for object tracking
The object tracking feature allows multiple clients to use tracked objects to modify their behavior when the object state changes. Clients register with the tracking process and can take different actions based on the tracked object's state.
Clients that use object tracking include:
-
Embedded Event Manager (EEM)
-
Hot Standby Redundancy Protocol (HSRP)
-
Virtual port channel (vPC)
-
Virtual Router Redundancy Protocol (VRRP) and VRRPv3
The following object types can be tracked:
-
Interface line protocol state—Tracks whether the line protocol state is up or down.
-
Interface IP routing state—Tracks whether the interface has an IPv4 or IPv6 address and if IPv4 or IPv6 routing is enabled and active.
-
IP route reachability—Tracks whether an IPv4 or IPv6 route exists and is reachable from the local device.
Example of object tracking with HSRP
For example, you can configure HSRP to track the line protocol of the interface that connects one of the redundant routers to the rest of the network. If that link protocol goes down, you can modify the priority of the affected HSRP router and cause a switchover to a backup router that has better network connectivity.
Object track list
An object track list is a mechanism that enables tracking of the combined states of multiple objects using Boolean logic or threshold-based evaluation.
-
Supports Boolean "and" function: All objects in the track list must be up for the track list to be up.
-
Supports Boolean "or" function: At least one object in the track list must be up for the track list to be up.
-
Supports threshold percentage and threshold weight evaluation for determining the up or down state of the track list.
Object track list capabilities and usage
Object track lists support the following capabilities:
-
Boolean "and" function —Each object defined within the track list must be in an up state so that the track list object can become up.
-
Boolean "or" function —At least one object defined within the track list must be in an up state so that the tracked object can become up.
-
Threshold percentage —The percentage of up objects in the tracked list must be greater than the configured up threshold for the tracked list to be in the up state. If the percentage of down objects in the tracked list is above the configured track list down threshold, the tracked list is marked as down.
-
Threshold weight —Assign a weight value to each object in the tracked list and a weight threshold for the track list. If the combined weights of all up objects exceed the track list weight up threshold, the track list is in an up state. If the combined weights of all the down objects exceed the track list weight down threshold, the track list is in the down state.
Other entities, such as virtual port channels (vPCs), can use an object track list to modify the state of a vPC based on the state of the multiple peer links that create the vPC.
See the Cisco Nexus 9000 Series NX-OS Interfaces Configuration Guide for more information on vPCs.
See the Configuring an Object Track List with a Boolean Expression section for more information on track lists.
High availability
High availability is a network feature that ensures continuous operation by minimizing downtime through mechanisms such as stateful restarts and switchovers.
-
Object tracking supports high availability through stateful restarts when the tracking process crashes.
-
Object tracking supports stateful switchover on dual-supervisor systems.
-
Object tracking can modify client behavior to improve overall network availability.
Object tracking enables high availability by maintaining configuration and state during process restarts and supervisor switchovers.
Virtualization support
Virtualization support in object tracking enables monitoring of route reachability for objects within different VRF instances.
-
By default, Cisco NX-OS tracks the route reachability state of objects in the default VRF.
-
You can configure object tracking for nondefault VRFs by assigning the object to the desired VRF.
Object tracking supports both default and nondefault VRF instances. To track objects in a nondefault VRF, configure the object as a member of that VRF.
For more information, see the Configuring Object Tracking for a Nondefault VRF section.
Feedback