Hi there
Im fairly new to Mikrotik. Long story short.... I need a way to monitor a wireless link's signal (If possible) and once it hits a threshold to run a script.
Any idea on how I can do this if I can do it.
Thanks
{
:local "ss";
:set $ss [/interface wireless registration-table get 0 signal-strength];
:set $ss [:pick $ss 0 [:find $ss "dBm"]];
:put $ss;
}
{
:local "ss";
:while (true) do={
:set $ss [/interface wireless registration-table get 0 signal-strength];
:set $ss [:pick "$ss" 0 [:find "$ss" "dBm"]];
:delay 1;
:if ($ss > -50) do={:put "Shrek2"} else={/system script run yolo}
}
}