Community discussions

MikroTik App
 
User avatar
paoloaga
Member Candidate
Member Candidate
Topic Author
Posts: 227
Joined: Tue Mar 08, 2011 2:52 am
Location: Lugano - Switzerland
Contact:

How can I know if a client is connected to the right AP?

Tue Jun 17, 2014 8:03 pm

Hello!
I need to check with a script if a client is connected to the correct AP. Actually I have a connect-list populated with a few access-points in order of importance: first entry is the ideal AP, second entry is a backup and so on.
I am trying to write a script that disconnects the wireless interface every <n> minutes if it's not connected to the best AP.

I am using "area-prefix" to identify the APs, however I don't find any place where I can check on which wireless "area" I am connected to. Am I missing something?

Thanks in advance for any hint.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How can I know if a client is connected to the right AP?

Wed Jun 18, 2014 1:41 pm

Is like the script must be on CPE side?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How can I know if a client is connected to the right AP?

Wed Jun 18, 2014 2:02 pm

I check 5.26 and I not find any way to read by script "area"

Now I check 6.16rc2
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How can I know if a client is connected to the right AP?

Wed Jun 18, 2014 2:55 pm

 
User avatar
paoloaga
Member Candidate
Member Candidate
Topic Author
Posts: 227
Joined: Tue Mar 08, 2011 2:52 am
Location: Lugano - Switzerland
Contact:

Re: How can I know if a client is connected to the right AP?

Thu Jun 19, 2014 3:25 am

Is like the script must be on CPE side?
Yes, it should be done on the CPE side.

I wanted to periodically run a script which checks if the client is connected to the AP specified in the first connect-list entry, and if not, disconnects itself in order to try to associate to the best AP (useful for fixed links).

Unfortunately the only detail available is the mac-address, but it's problematic because if for any reason an AP is replaced (damage, hw upgrade...) all clients need to be reconfigured. By using the area info, the AP can be replaced because the "role" is represented by the "area" label.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How can I know if a client is connected to the right AP?

Thu Jun 19, 2014 11:26 am

Is like the script must be on CPE side?
Yes, it should be done on the CPE side.

I wanted to periodically run a script which checks if the client is connected to the AP specified in the first connect-list entry, and if not, disconnects itself in order to try to associate to the best AP (useful for fixed links).

Unfortunately the only detail available is the mac-address, but it's problematic because if for any reason an AP is replaced (damage, hw upgrade...) all clients need to be reconfigured. By using the area info, the AP can be replaced because the "role" is represented by the "area" label.
Really you can change and mantain MAC address between each replace....
 
User avatar
paoloaga
Member Candidate
Member Candidate
Topic Author
Posts: 227
Joined: Tue Mar 08, 2011 2:52 am
Location: Lugano - Switzerland
Contact:

Re: How can I know if a client is connected to the right AP?

Thu Jun 19, 2014 3:10 pm

Really you can change and mantain MAC address between each replace....
Of course, everything can be done... but using the "area" information it doesn't require any maintenance at all!
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: How can I know if a client is connected to the right AP?

Thu Jun 19, 2014 8:34 pm

Really you can change and mantain MAC address between each replace....
Of course, everything can be done... but using the "area" information it doesn't require any maintenance at all!
I hope you read this:

http://forum.mikrotik.com/viewtopic.php ... 50#p432113
 
User avatar
paoloaga
Member Candidate
Member Candidate
Topic Author
Posts: 227
Joined: Tue Mar 08, 2011 2:52 am
Location: Lugano - Switzerland
Contact:

Re: How can I know if a client is connected to the right AP?

Fri Jun 20, 2014 12:01 am

[/quote]

Of course I did, and thanks for your support! ;-)

Who is online

Users browsing this forum: akkurad, nonolk and 34 guests