I am trying to write a script to reboot one of my routers daily at midnight. I have never even looked at the scripting feature before today. Everything I am reading in the manual shows complicated scriptng but nothing on something as smple as a scheduled reboot. Can anyone help me out with this little script.
Yep, this is wonderful idea, but in real life our wifi channel hangs up every day
and the only workaround solution found at now is to reboot AP periodically.
make sure you have latest RouterOS version, and have enabled wireless debug logs (http://wiki.mikrotik.com/wiki/Manual:Wireless_Debug_Logs) when hangup happens, make supout.rif file as soon as possible (you can even make a script that does this after reboot) and send to support.
Bad Software basically that doesn’t handle Memory well (normal reason).
Linux isn’t Microsoft.
Hang-up can be Fixed, and generally is fixed when the fault is found.
Without any data about why it Hung Up, the programmer has no where to look.
No data = no Programmer = no Fix.
We can all moan about how a Vendor can issue Firmware that doesn’t work properly (i.e. all the time), but this is the world we live in (again Thanks M$).
If you could please follow the supout instructions, then maybe you will never have to reboot again.
Rather than meat cleaver approach of rebooting every 8 hours whether router needs it or not, have you tried using /system watchdog to detect when your wifi channel hangs and rebooting THEN (with supout)? Or even disabling, delaying a few seconds, and re-enabling your wifi interface, which is less disruptive than rebooting the entire router? Also would beat waiting 1-7 hours to get channel back.
My 2011UiAS running 6.47 locks up its IPSEC tunnel and SIP-Trunk connection every week or so.
It’s paired with another Mikrotik one for IPSEC, which is on 6.33.
I plan to upgrade the 6.33 one to 6.47 tonight, but want to schedule a midnight reboot to cure the lockups, because they are really hurting me.
How do I schedule a reboot (I can write the script /system reboot) but how do I find it in the scheduler GUI once I’ve written it in the ‘script’ GUI?
(I’m a whole-site support guy so I don’t live in router command-line world.