guys.. need some in help here
can u please teach me to make a script "if" "do" "then" for monitoring packet loss on ping for 10 times, when packet loss reach for 90% then the script will "do" disable interface and "then" enable another interface.
:local ipPing ("8.8.8.8")
:local pingip
:set pingip [/ping $ipPing count=10]
:if ($pingip = 1) do={
:log info ("90% lost")
/interface ethernet disable ether1
} else={
/interface ethernet enable ether1
}
Thank you sir, exactly what i was looking for. Netwatch is just not good enoughHi.
Try this script.
Code: Select all:local ipPing ("8.8.8.8") :local pingip :set pingip [/ping $ipPing count=10] :if ($pingip = 1) do={ :log info ("90% lost") /interface ethernet disable ether1 } else={ /interface ethernet enable ether1 }
Is it possible to run the script forever without using schedules?Thank you sir, exactly what i was looking for. Netwatch is just not good enoughHi.
Try this script.
Code: Select all:local ipPing ("8.8.8.8") :local pingip :set pingip [/ping $ipPing count=10] :if ($pingip = 1) do={ :log info ("90% lost") /interface ethernet disable ether1 } else={ /interface ethernet enable ether1 }
btw if packet loss is between 91 and 100% wont work as intendedHi.
Try this script.
Code: Select all:local ipPing ("8.8.8.8") :local pingip :set pingip [/ping $ipPing count=10] :if ($pingip = 1) do={ :log info ("90% lost") /interface ethernet disable ether1 } else={ /interface ethernet enable ether1 }
When you reply to the post above you, quote is not needed, since its a continuation of the conversation.Why on earth would you have a quote button if it is not to quote the comment that you want to thank
This past is true. But how did some learn to click this button " (quote buttotn) to reply, when there is a Post Reply button?forum etiquette is not something you are born with
I need help with a script similar to this one, I use 700 Mbps and I would like the script to ping 8.8.8.8 and when the internet goes down to 250 Mbps send the router to restart. Thanks for the help.Hi.
Try this script.
Code: Select all:local ipPing ("8.8.8.8") :local pingip :set pingip [/ping $ipPing count=10] :if ($pingip = 1) do={ :log info ("90% lost") /interface ethernet disable ether1 } else={ /interface ethernet enable ether1 }
You should check the speed-test results. If the speed goes down to 250, then run the restart command: /system/rebootI need help with a script similar to this one, I use 700 Mbps and I would like the script to ping 8.8.8.8 and when the internet goes down to 250 Mbps send the router to restart. Thanks for the help.Hi.
Try this script.
Code: Select all:local ipPing ("8.8.8.8") :local pingip :set pingip [/ping $ipPing count=10] :if ($pingip = 1) do={ :log info ("90% lost") /interface ethernet disable ether1 } else={ /interface ethernet enable ether1 }
Higuys.. need some in help here
can u please teach me to make a script "if" "do" "then" for monitoring packet loss on ping for 10 times, when packet loss reach for 90% then the script will "do" disable interface and "then" enable another interface.