04-12-2025 04:49 AM - edited 04-12-2025 04:51 AM
I am trying to Set up tracking to check either Google (8.8.8.8) or Open (208.67.222.222) DNS or both constantly. and log the tracking object to generate an alert
Solved! Go to Solution.
04-12-2025 06:29 AM
Hello @Sow2534
Configure ip sla:
ip sla 1
icmp-echo 8.8.8.8 source-interface <your_WAN_interface>
frequency 10
timeout 1000
threshold 2
exit
ip sla 2
icmp-echo 208.67.222.222 source-interface <your_WAN_interface>
frequency 10
timeout 1000
threshold 2
exit
Then start ip sla operation:
ip sla schedule 1 life forever start-time now
ip sla schedule 2 life forever start-time now
--
Track each SLA probe:
track 1 ip sla 1 reachability
track 2 ip sla 2 reachability
Or do a track with boolean objet (https://learningnetwork.cisco.com/s/question/0D53i00000Kt3FlCAJ/cisco-track-list
track 10 list boolean and
object 1
object 2
--
Use EEM to take action based on track 10 result:
event manager applet DNS_Failure_Alert
event track 10 state down
action 1.0 syslog msg "ALERT: Both DNS servers unreachable via IP SLA!"
action 2.0 cli command "enable"
action 3.0 cli command "show track 1"
action 4.0 cli command "show track 2"
04-12-2025 06:29 AM
Hello @Sow2534
Configure ip sla:
ip sla 1
icmp-echo 8.8.8.8 source-interface <your_WAN_interface>
frequency 10
timeout 1000
threshold 2
exit
ip sla 2
icmp-echo 208.67.222.222 source-interface <your_WAN_interface>
frequency 10
timeout 1000
threshold 2
exit
Then start ip sla operation:
ip sla schedule 1 life forever start-time now
ip sla schedule 2 life forever start-time now
--
Track each SLA probe:
track 1 ip sla 1 reachability
track 2 ip sla 2 reachability
Or do a track with boolean objet (https://learningnetwork.cisco.com/s/question/0D53i00000Kt3FlCAJ/cisco-track-list
track 10 list boolean and
object 1
object 2
--
Use EEM to take action based on track 10 result:
event manager applet DNS_Failure_Alert
event track 10 state down
action 1.0 syslog msg "ALERT: Both DNS servers unreachable via IP SLA!"
action 2.0 cli command "enable"
action 3.0 cli command "show track 1"
action 4.0 cli command "show track 2"
04-12-2025 07:18 AM
BTW, just wondering, if Google or Open has any policy using their resources for your purpose.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide