Noise floor via script...

Is it possible to get the noise floor via a script? Here’s what I want to do for a group of APs:

Set all to WDS-slave on boot.
If no WDS master connects within 60 seconds, it scans all channels and auto selects the least noisy channel, sets itself to AP-bridge to become the WDS master.

Check every 60 seconds for the AP WDS master, if it disappears, scan and become a WDS master.

I was thinking about using some preset parameter (such as the last 4 digits of the MAC address) to set the timeout, or make it random so that all units won’t try to become a master at the same time. I don’t want to set a single master for fear of failure, and then causing a systemwide chain reaction.

Something simlar to this

/ system script
add name=“log_rf_data” source=“#/int wir reg print
\n:log debug (
"log_rf_data::signal-to-noise=" . [int wir reg get [find
interface=wlan1] signal-to-noise] . ",tx-ccq=" . [int wir reg get
[find interface=wlan1] tx-ccq] . ",rx-ccq=" . [int wir reg get
[find interface=wlan1] rx-ccq] )
\n#:log debug "log_rf_data::script
debug"
\n
\n
\n” policy=ftp,reboot,read,write,policy,test,winbox,password
add name=“log_rf_data2” source=“/int wir monitor [find name=wlan1] once do
{:env; :log debug ("log_rf_data2::signal-to-noise=" .
$signal-to-noise . ",tx-ccq=" . $tx-ccq . ",rx-ccq=" . $rx-ccq .
",noise-floor=" . $noise-floor);}
\n#/int wir monitor [find
name=wlan1] once do {:env; :put ("log_rf_data2::signal-to-noise=" .
$signal-to-noise . ",tx-ccq=" . $tx-ccq . ",rx-ccq=" . $rx-ccq .
",noise-floor=" . $noise-floor);}”
policy=ftp,reboot,read,write,policy,test,winbox,password

system scheduler add
name=“log_rf_data2” on-event=log_rf_data2 start-date=may/13/2006
start-time=10:05:00 interval=5m

Hi,

can everybody give me this script for 3.x ??


thx

dingsingo