Community discussions

 
waelhawa
just joined
Topic Author
Posts: 5
Joined: Thu Jul 07, 2011 2:51 pm

Scripting help

Mon Jul 25, 2011 3:28 pm

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!!!
 
User avatar
dasiu
Trainer
Trainer
Posts: 232
Joined: Fri Jan 30, 2009 11:41 am
Location: Reading, UK
Contact:

Re: Scripting help

Mon Jul 25, 2011 4:07 pm

"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?
 
waelhawa
just joined
Topic Author
Posts: 5
Joined: Thu Jul 07, 2011 2:51 pm

Re: Scripting help

Tue Jul 26, 2011 12:07 pm

Yeah, it means wireless... but I found a way using telnet... since it endures disconnection... but the counter stops somewhere in the process.
 
waelhawa
just joined
Topic Author
Posts: 5
Joined: Thu Jul 07, 2011 2:51 pm

Re: Scripting help

Sat Jul 30, 2011 4:05 pm

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.

Who is online

Users browsing this forum: No registered users and 9 guests