I tried to do it but it doesn't work.
Code: Select all
:local ipone "10.10.1.254";
:local iptwo "10.10.1.8";
:local pingsofone [ping $ipone count=3];
:local pingsoftwo [ping $iptwo count=3];
if (($pingsofone<1)&&($pingsoftwo<1)) do={/ip address enable [find comment="rezerv"];};
if (($pingsofone>1)||($pingsoftwo>1)) do={/ip address disable [find comment="rezerv"]}