piti2
/system scheduler
add interval=1m name=kontrola_ping on-event=script policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup
- Samotnej script v /system script
:local ip "192.168.10.9";
:log info "Poustim kontrolu"
:if ([/interface ethernet get ether4 running]=true)\
do={ :if ([/ping $ip count=3] = 0)\
do={
/interface ethernet disable ether4
/delay 5s
/interface ethernet enable ether4
:log info "Vypnul a zapnul jsem port 4"
}
}