We have two Tunnel interfaces configured on a router Tunnel0 and Tunnel1 running BGP. If Tunnel0 is consistenly bouncing over a set period of time and we received 5 BGP down messages in 180 seconds then shut, however first check the status of Tunnel1 and if down do nothing, but if up perform the shut on Tunnel 0.
I am guessing that during the scripts actions there is a way to show int Tunnel1 and record/set a variable for the interface status that I can then check against before I shut down the problem interface.