I'm not English
my english not so good , excuse me
i have a question :
i found this script in Web
i want customized this
plaese help me
goal : IF ping 4.2.2.4 and time out count is 10 then , SMS Send ! ( Down )
the when 4.2.2.4 is Replay , then SMS Send ( UP )
is now , the when 4.2.2.4 is 2-3 count time out , SMS sending !
my script is :
Code: Select all
:local result [/ping 4.2.2.4 src-address=192.168.1.1 count=9]
:global status
:if ($result = 10 && $status != true) do={
/tool sms send "usb4" "+100000000" message="Internet - UP"
/tool sms send "usb4" "+100000000" message="Internet - UP"
:set status true
} else={
:if ($result = 0 && $status != false) do={
/tool sms send "usb4" "+100000000" message="Internet - Down"
/tool sms send "usb4" "+100000000" message="Internet - Down"
:set status false
}
}