Scripting a scan on a remote radio

On a recurring basis on a CPE radio run the following:

  1. The radio is running normally.
  2. Run a scan and dump the output to a file.
  3. Re-register with its access point.
  4. Get the file off the CPE radio onto a file server (or input into a database).
  5. Analyze the output for frequency conflicts, etc.
  6. Analyze the picture the CPEs present based on geography and MAC’s and signal strengths.

The above could paint a pretty good picture of the RF model in a geographical area.

How do I do all of the above? Or even just steps 1-4?

Thanks,

Lorell

I now know how to get the scan to run for a given number of seconds.

/interface wireless scan 0 duration=20
Flags: A - active, B - bss, P - privacy, R - routeros-network, N - nstreme
ADDRESS SSID BAND FREQ SIG NF SNR RADIO-NAME
ABP 00:23:69:76:1C:F1 linksys_wps_3732 5ghz 5200 -89 -94 5
AB RN 00:15:6D:64:3E:D3 5ghz 5210 -51 -94 43 SFSSE BH
AB RN 00:15:6D:64:67:2F 5ghz 5740 -56 -94 38 SE.S
AB RN 00:15:6D:65:21:59 5ghz 5740 -76 -94 18 SF2EE
AB RN 00:15:6D:64:FA:60 5ghz 5805 -86 -94 8 SF2CHV
AB RN 00:02:6F:5D:15:1D SNS 5ghz 5240 -75 -94 19 Transco W. Secto
B R 00:15:6D:5C:64:F4 ROC 5ghz 5185 -85 -94 9 ROC-Station

Now, how do I get it dumped into a file?

bump,
I would also like to know…

OK. I have chased it this far…

Why does this not work?

:global scanstr [/interface wireless scan wlan1 duration=10];
:put “$scanstr”;

:environment print
“scanstr”=[:nothing]