Hello
I have this script that tell me if the IP of another router has been change
:global Old [/interface eoip get eoip-tunnel1 remote-address];
:global Router1 [/file get Router1.txt contents];
if ($Old !=$Router1) do={:log warning "The new IP for Router1 is-$Router1";/interface eoip set eoip-tunnel1 remote-address=$Router1} else={:log warning "Router1 didn't change"};
when I run it manually it work just fine
but when I press “RUN” or on schedule it doesn’t work (I always get “Router1 didn’t change” ).
even when I know for sure I have change the IP in the text
any idea why ?