Taky bych pozadal o skript, jestli je to mozne, abych si ho pripadne zakomponoval do jiz pouzivaneho:
:local DSTIP "10.55.111.2"
:local INTERFACE "wlan60-station-1"
:local timer 0
:local pause false
:global hystereze start
while ($hystereze != "stop") do={
if ($timer = 0) do={
if ([/ping $DSTIP count=3] = 0) do={
if ($pause = false) do={
:set timer 30
:set pause true
:log error "Vypadek 3 pingu po sobe - aktivovana zaloha."
/tool e-mail send to=ccccc@vvvvv.cz subject="Aktivovana zaloha." body="- $[/system clock get date] $[/system clock get time]"
/routing ospf interface set [find where interface=$INTERFACE] passive=yes
}
} else={
if ($pause = true) do={
:set pause false
/routing ospf interface set [find where interface=$INTERFACE] passive=no
:log error "Ping v poradku, zaloha vypnuta."
/tool e-mail send to=ggfgf@gfgfgfgf.cz subject="Vypnuta zaloha." body="- $[/system clock get date] $[/system clock get time]"
}
}
}
if ($timer > 0) do={:set timer ($timer-1)}
delay 1
}