Community discussions

MikroTik App
 
letabawireless
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Thu Jul 26, 2012 5:11 pm

Scripting Virtual Interfaces

Mon Aug 06, 2012 12:22 pm

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
 
psamsig
Member Candidate
Member Candidate
Posts: 161
Joined: Sun Dec 06, 2009 1:36 pm
Location: Denmark

Re: Scripting Virtual Interfaces

Mon Aug 06, 2012 12:56 pm

 /interface wireless set [find interface-type="virtual-AP"] default-authentication=no hide-ssid=yes
 
letabawireless
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Thu Jul 26, 2012 5:11 pm

Re: Scripting Virtual Interfaces

Mon Aug 06, 2012 1:07 pm

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:
 
psamsig
Member Candidate
Member Candidate
Posts: 161
Joined: Sun Dec 06, 2009 1:36 pm
Location: Denmark

Re: Scripting Virtual Interfaces

Mon Aug 06, 2012 7:39 pm

Many thanks !!!
That's what karma is for :)

Who is online

Users browsing this forum: Geyonk and 18 guests