You are on page 1of 1

#scheduler interval 1 menit

/sys scr run ping

#script
:local HOST "www.google.com"
:local PINGCOUNT "30"
:local DELAY "3s"
:local sub1 ([/system identity get name])
:local sub2 ([/system clock get time])
:local sub3 ([/system clock get date])
:if ([/ping $HOST interval=1 count=$PINGCOUNT] = 0) do={
} else {
:log warning "HOST $HOST ping is ok, no need to take any action ...";
}

You might also like