Scripting help

Dear all,

I am trying the following script to scan each frequency individually… But the script stops before it finishes in the remote device.
Please take a look and tell me what I am doing wrong…

for counter=i from=5000 to=5100 step=10 do={/interface wireless set 0 scan-list=[$i]; /interface wireless scan 0 duration=3}; /interface wireless set 0 scan-list=4920-6100

When I run it in the wired device it works fine, but it stops working in the remote device… please help!!!

“remote device” - means connected via wireless? If so - wireless scan disconnects the connection for the time of running the scan. Maybe that’s the problem?

Yeah, it means wireless… but I found a way using telnet… since it endures disconnection… but the counter stops somewhere in the process.

My theory is that the counter for the variable runs in the device I am using and not in the remote device since it stops after it is disconnected… is that possible??? Please help… Any suggestion is appreciated.