69-5
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 69 Configuring Enhanced Object Tracking
Configuring Enhanced Object Tracking Features
Configuring a Tracked List with a Boolean Expression
Configuring a tracked list with a Boolean expression enables calculation by using either “AND” or “OR”
operators. For example, when tracking two interfaces using the “AND” operator,
up
means that both
interfaces are up, and
down
means that either interface is down.
To configure a tracked list of objects with a Boolean expression, perform this task:
Use the
no
track
track-number
global configuration command to delete the tracked list.
This example configures track list 4 with a Boolean AND expression that contains two objects with one
object state negated. If the list is up, the list detects that object 2 is down:
Switch(config)#
track 4 list boolean and
Switch(config-track)#
object 1
Switch(config-track)#
object 2 not
Switch(config-track)#
exit
Command
Purpose
Step 1
configure terminal
Enters global configuration mode.
Step 2
track
track-number
list boolean
{
and
|
or
}
Configures a tracked list object, and enter tracking configuration mode. The
track-number
can be from 1 to 500.
•
boolean
—Specify the state of the tracked list based on a Boolean
calculation.
•
and
—Specify that the list is up if all objects are up or down if one or
more objects are down.
•
or
—Specify that the list is up if one object is up or down if all objects
are down.
Step 3
object
object-number
[
not
]
Specifies the object to be tracked. The range is from 1 to 500. The keyword
not
negates the state of the object, which means that when the object is up,
the tracked list detects the object as down.
Note
An object must exist before you can add it to a tracked list.
Step 4
delay
{
up
seconds
[
down
seconds
]
| [
up
seconds
]
down
seconds
}
(Optional) Specifies a period of time in seconds to delay communicating
state changes of a tracked object. The range is from 1 to 180 seconds.
Step 5
end
Returns to privileged EXEC mode.
Step 6
show track
object-number
Verifies that the specified objects are being tracked.
Step 7
copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...