Page 1 of 1

Scripting Virtual Interfaces

Posted: Mon Aug 06, 2012 12:22 pm
by letabawireless
Hi there

I always run Virtual AP's for my sectors. I still use ACL for my clients, (need to move to Radius Auth I Know), but we sometimes forget to close the AP after adding a new client. So the goal is as follows:

I have a RB433 running 2 Virtual AP's:

VAP1
VAP2

I need to have a scripting something to the following lines:

interface wireless set [/interface wireless find where type=virtual-AP] default-authentication=no hide-ssid=yes

So the command needs to go through all wireless interfaces, and only apply the rules to the virtual AP's.

Thanks

Re: Scripting Virtual Interfaces

Posted: Mon Aug 06, 2012 12:56 pm
by psamsig
 /interface wireless set [find interface-type="virtual-AP"] default-authentication=no hide-ssid=yes

Re: Scripting Virtual Interfaces

Posted: Mon Aug 06, 2012 1:07 pm
by letabawireless
Hi

I have tried that, it executes without error, but it doesn't do what the command says ....

:(

Sorry, my bad..... needed to have the " " in ....

Many thanks !!!
:lol: :lol:

Re: Scripting Virtual Interfaces

Posted: Mon Aug 06, 2012 7:39 pm
by psamsig
Many thanks !!!
That's what karma is for :)