I just currently using one of the scripts for failover.
i just want to understand some part of the script.
Code: Select all
/system script add name=pinging source={
:if ([/ping 1.1.1.1 count=5] = 0) do={
/tool e-mail send \
to=example@example.com \
subject="Can't ping 1.1.1.1"
}
}
The 2nd line
Code: Select all
:if ([/ping 1.1.1.1 count=5] = 0) do={
Is 0 the number of replies that is needed for the condition to be successful or is it sort of an exit status?