Hi all, as the title suggests I'd like to be able to automate the monitoring and remediation of shifting traffic off a degraded link. In my environment, we have two corp DIA circuits for internet-bound traffic which we perform ECMP load balancing on. The problem we have is if one of the two links is degraded and suffering substantial packet loss but not a complete outage, traffic continues to flow across both links.
I had the idea of using Ansible via API call to send pings out of each link and if the packet loss exceeded a certain threshold, then raise the metric of the static route for the affected link so that traffic would only use the healthy link until the affected link returned to normal. However, that's when I realized there's no way to send a ping command via API call so there's really no way to automate the link monitoring for degredation. Am I missing something here or is there some other way to accomplish this?
Thanks, @JimmyHolland. We already have path monitoring in place but that only helps when there's a complete outage, not when the link is degraded and suffering < 100% packet loss. I realize SD-WAN is meant to address this shortcoming but I wish this was a native feature of the firewalls.
What about TCL Expect? As some things are not available through the Palo Alto API and because of this Ansible is not an option you can use my script to ssh to the device and run ping.
You will need to play around as you can make bash script triggering the tcp expect script and then the bash script can trigger an Ansible playbook that will dissable an interface or whatever else you want.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!