I have a Flint 2 router, with WAN1 set as my primary internet connection and WAN2 as my backup (using a hotspot connected via Ethernet).
I’ve tested the failover process by disconnecting the WAN1 Ethernet cable, and the router successfully switches to the WAN2 hotspot.
My question is: I want to receive an email alert when this failover happens. I’ve set up a PowerShell script that runs SSH commands on my machine via Windows Task Scheduler, checking every minute. The script checks if WAN1 is UP, and if it’s DOWN, it successfully sends an email alert.
However, I’m wondering how to track the situation when WAN1 is UP, but there’s no internet connection, and the router switches over to WAN2. How can this scenario be detected via SSH commands?