Had a problem with one AP where for whatever reason the PPPoE server disappeared was not listed in winbox and after receiving calls from customers I became aware of this, a simple reboot solved the issue but I would like to avoid such calls?
Is it possible with a script to monitor and reboot if;
(1)Wireless package and interface Wlan1 is present and clients are registered (depending on number of clients on that AP if there for example 30 it would reboot if there was less than 5?)
(2)PPPoE server is present and once again using the above number if less than 5 active connections it would reboot.
Any ideas how this task(s) could be accomplished
first of - what RouterOS version you are running?
you can check number of connected clients via script. If you have one wireless interface then, /interface wireless registration-table print count-only will give you number of connected devices.
Also, take note that you have to address issue of false positives as in less active time router would go into endless reboot loop due to script.
Thanks for reply,
V5.20
Yes endless loop I would have concerns about and would delay running scipt after startup to say 10mins but as mentioned in my example if there was 30 registered PPPoE clients on a AP then it would be safe to set a minimum of more than just one client, allowing for some may power off CPE overnight, in my case the AP had Wlan1 registered clients but PPPoE server had disappeared
More requests?
Is it possible to have client-name with mac address in logs rather than just mac-address
Jun/03/2013 02:27:16 wireless,info XX:CA:6D:2E:6B:XX@wlan1: disconnected, control frame timeout
Also is it possible to send emails from logs that generate key words for example “control frame timeout”
This way i am aware of possible wireless connectivity issues long before the customer rings to complain?
And still awaiting help or suggestions on
Script for checking
(1)/interface wireless registration-table>
If less than 5 clients are registered (depending on number of clients on that AP if there for example was 30 clients it would reboot if there was less than 5?)
(2)/ppp active>
and once again using the above number if less than 5 active connections it would reboot.