I have been working on a script which checks all the wireless clients for bad signal strength and emails me a list of the bad signal clients…
When I check the signal strength of each client I get an output like “-83dBm@6Mbps” How do I filter the output to display just the digits? ie -83??
Here is my script:
:foreach i in=[ /int wir reg find ap=no] do={ :if ([int wir reg get $i signal-strength]<-73) do={
:log info (" SignalStrength: " . [int wir reg get $i signal-strength] . " SNR: " . [int wir reg get $i signal-to-noise] )
}}
If the script were to work then it will display the info into the log. But nothing happens when I run the script..