boolean
To enable boolen logic while configuring a tracker group, use the boolean command in endpoint tracker configuration mode. To disable boolean logic, use the no form of this command.
boolean { and | or }
no boolean { and | or }
Syntax Description
{and | or} |
Specifies boolean AND or OR logic that is used to configure a tracker group. OR logic ensures that the endpoint status is reported as active if either one of the associated trackers of the tracker group report that the endpoint is active. AND logic ensures that the endpoint status is reported as active if both the associated trackers of the tracker group report that the endpoint is active. |
Command Default
OR is enabled.
Command Modes
Endpoint-tracker configuration (config-endpoint-tracker)
Command History
Release | Modification |
---|---|
Cisco IOS XE Catalyst SD-WAN Release 17.7.1a |
This command was introduced. |
Usage Guidelines
Tracker boolean is set to OR as default.
A tracker group can have a mix of endpoint trackers. For example, to create a static route group, you can combine an IP address tracker and a TCP/UDP tracker. Similarly, to create a NAT Direct Internet Access (DIA) tracker group, you can combine an IP address tracker and a DNS tracker. You can apply only one tracker to a static route endpoint.
The following example shows how to configure a tracker group with two static route trackers (two endpoints) using the tracker boolean AND or OR:
Device(config)# endpoint-tracker tcp-10001
Device(config-endpoint-tracker)# tracker-type static-route
Device(config-endpoint-tracker)# endpoint-ip 10.1.1.1 tcp 10001
Device(config-endpoint-tracker)# threshold 100
Device(config-endpoint-tracker)# multiplier 10
Device(config-endpoint-tracker)# interval 1
Device(config-endpoint-tracker)# exit
Device(config)# track tcp-10001 endpoint-tracker
Device(config)# endpoint-tracker udp-10002
Device(config-endpoint-tracker)# tracker-type static-route
Device(config-endpoint-tracker)# endpoint-ip 10.2.2.2 udp 10002
Device(config-endpoint-tracker)# threshold 100
Device(config-endpoint-tracker)# multiplier 5
Device(config-endpoint-tracker)# interval 2
Device(config)# track udp-10002 endpoint-tracker
Device(config-endpoint-tracker)# exit
Device(config)# endpoint-tracker static-route-group
Device(config-endpoint-tracker)# tracker-type tracker-group
Device(config-endpoint-tracker)# tracker-elements tcp-10001 udp-10002
Device(config-endpoint-tracker)# boolean and
Device(config)# track static-route-group endpoint-tracker
Device(config-endpoint-tracker)# exit
The following example shows how to configure tracker groups using boolean logic to probe NAT DIA interface:
Device(config)# endpoint-tracker tracker1
Device(config-endpoint-tracker)# tracker-type interface
Device(config-endpoint-tracker)# endpoint-ip 10.1.1.1
Device(config-endpoint-tracker)# threshold 100
Device(config-endpoint-tracker)# multiplier 10
Device(config-endpoint-tracker)# interval 1
Device(config-endpoint-tracker)# exit
Device(config)# endpoint-tracker tracker2
Device(config-endpoint-tracker)# tracker-type interface
Device(config-endpoint-tracker)# endpoint-dns-name www.diatracker.com
Device(config-endpoint-tracker)# threshold 1000
Device(config-endpoint-tracker)# multiplier 10
Device(config-endpoint-tracker)# interval 600
Device(config-endpoint-tracker)# exit
Device(config)# endpoint-tracker group1
Device(config-endpoint-tracker)# tracker-type tracker-group
Device(config-endpoint-tracker)# tracker-elements tracker1 tracker2
Device(config-endpoint-tracker)# boolean or
Device(config-endpoint-tracker)# exit