object (tracking)
To specify an object for a tracked list, use the object command in tracking configuration mode. To remove the object from the tracked list, use the no form of this command.
object object-number [not]
no object object-number
Syntax Description
object-number |
Specifies the tracked object number in a tracked list. The range is from 1–1000. |
||
not |
(Optional) Negates the state of an object.
|
Command Default
The object isn't included in the tracked list.
Command Modes
Tracking configuration (config-track)
Command History
Release |
Modification |
---|---|
Cisco IOS XE Catalyst SD-WAN Release 17.7.1a |
This command was introduced. |
Usage Guidelines
For usage guidelines, see the Cisco IOS XE object (tracking) command.
The following example shows two serial interfaces (objects) that are in tracked list 100. The Boolean “not” negates the state of object 2, resulting in the tracked list regarding object 2 as down when it's up:
Device(config)# track 1 interface serial2/0 line-protocol
Device(config-track)# exit
Device(config)# track 2 interface serial2/1 line-protocol
Device(config-track)# exit
Device(config)# track 100 list boolean and
Device(config-track)# object 1
Device(config-track)# object 2 not