Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- :local pingit "103.170.100.1"
- :local avgRtt 0
- :local comm "via_metro"
- :local status [/ip route get [find comment=$comm] active]
- :if ($status = false) do={
- /tool flood-ping $pingit count=20 do={
- :set avgRtt $"avg-rtt"
- # jika avgRtt lebih besar dari 30ms maka
- :if ($avgRtt > 30) do={
- :delay 1s
- /ip route disable [find comment=$comm]
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement