Two companies are connected with Mikrotik over IPsec. Each one have two internet connections (main internet provider and backup internet provider).
The configuration of IPsec works with static destinations, but, when one connection still offline, automatically the Mikrotik change his route considering the route distance, requesting changes on configuration of IPsec (IP address of backup internet provider on both locals, company 1 and 2).
There is a way to one Mikrotik (which have backup connetion activated) runs commands on another Mikrotik (company 2) by terminal to change his IPsec configuration?