Community discussions

MikroTik App
 
cgreen
newbie
Topic Author
Posts: 34
Joined: Wed Aug 15, 2012 7:54 am

VirtualAP question

Wed May 21, 2014 12:33 am

how do you configure wireless virtualap's in the terminal?

i have some code im trying to modify. it looks at registered users of the WLAN interface but i need it to show the registered user count associated with the VirtualAP's

any ideas??
 
jaykay2342
Member
Member
Posts: 336
Joined: Tue Dec 04, 2012 2:49 pm
Location: /Vigor/LocalGroup/Milky Way/Earth/Europe/Germany

Re: VirtualAP question

Wed May 21, 2014 11:52 pm

maybe it's a good idea to show us the code?
 
cgreen
newbie
Topic Author
Posts: 34
Joined: Wed Aug 15, 2012 7:54 am

Re: VirtualAP question

Thu May 22, 2014 4:44 pm

im trying to read the client-count oid for a wlan virtual ap and display it as a dude label for a device.
the reason im doing this is because we are using hardware that has 1 wireless card but we are broadcasting 2 SSID's so we do this by virtual ap's.
MAIN GOAL:: i want to be able to see how many wireless clients are connected to each device at a glance without having to pull up the wireless registration tables

this is the label
[Device.Name] [Device.FirstAddress]
[device_performance()][Device.ServicesDown]
Wireless Clients: [oid("1.3.6.1.4.1.14988.1.1.1.3.1.6.5")]
Wireless Clients: [oid("1.3.6.1.4.1.14988.1.1.1.3.1.6.6")]
Wireless Clients: [oid("1.3.6.1.4.1.14988.1.1.1.3.1.6.12")]
and here is the output from /interface wireless print oid
[admin@wap-solomon3] > interface wireless print oid 
 0 tx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.2.5 
   rx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.3.5 
   ssid=.1.3.6.1.4.1.14988.1.1.1.3.1.4.5 
   bssid=.1.3.6.1.4.1.14988.1.1.1.3.1.5.5 
   client-count=.1.3.6.1.4.1.14988.1.1.1.3.1.6.5 
   frequency=.1.3.6.1.4.1.14988.1.1.1.3.1.7.5 
   band=.1.3.6.1.4.1.14988.1.1.1.3.1.8.5 
   noise-floor=.1.3.6.1.4.1.14988.1.1.1.3.1.9.5 
   overall-ccq=.1.3.6.1.4.1.14988.1.1.1.3.1.10.5 

 1 tx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.2.6 
   rx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.3.6 
   ssid=.1.3.6.1.4.1.14988.1.1.1.3.1.4.6 
   bssid=.1.3.6.1.4.1.14988.1.1.1.3.1.5.6 
   client-count=.1.3.6.1.4.1.14988.1.1.1.3.1.6.6 
   frequency=.1.3.6.1.4.1.14988.1.1.1.3.1.7.6 
   band=.1.3.6.1.4.1.14988.1.1.1.3.1.8.6 
   noise-floor=.1.3.6.1.4.1.14988.1.1.1.3.1.9.6 
   overall-ccq=.1.3.6.1.4.1.14988.1.1.1.3.1.10.6 

 2 tx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.2.12 
   rx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.3.12 
   ssid=.1.3.6.1.4.1.14988.1.1.1.3.1.4.12 
   bssid=.1.3.6.1.4.1.14988.1.1.1.3.1.5.12 
   client-count=.1.3.6.1.4.1.14988.1.1.1.3.1.6.12 
   frequency=.1.3.6.1.4.1.14988.1.1.1.3.1.7.12 
   band=.1.3.6.1.4.1.14988.1.1.1.3.1.8.12 
   noise-floor=.1.3.6.1.4.1.14988.1.1.1.3.1.9.12 
   overall-ccq=.1.3.6.1.4.1.14988.1.1.1.3.1.10.12 

[admin@wap-solomon3] > 
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26968
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: VirtualAP question

Thu May 22, 2014 4:50 pm

You also asked this in support.

So what is the problem to use the " client-count " value from the VirtualAP interface? I guess it's second or third one in your list
 
cgreen
newbie
Topic Author
Posts: 34
Joined: Wed Aug 15, 2012 7:54 am

Re: VirtualAP question

Thu May 22, 2014 4:55 pm

yes i did ask in support.
the problem is that it wont work, it displays a blank space where the client-count value should be. i will attach a pic
Capture.PNG
did i miss something normis in the label syntax or does it look right.
i thought something like this would be simple.
You do not have the required permissions to view the files attached to this post.
 
cgreen
newbie
Topic Author
Posts: 34
Joined: Wed Aug 15, 2012 7:54 am

Re: VirtualAP question

Thu May 22, 2014 4:57 pm

as far as the output of the command /interface wireless print oid...

im guessing that the "0" is the physical WLAN interface, and the "1" and "2" are the VirtualAP interfaces.

maybe?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26968
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: VirtualAP question

Thu May 22, 2014 5:08 pm

same OID works with real interface, but all OIDs for virtual return empty. Maybe a bug. Thanks, we will see.
 
cgreen
newbie
Topic Author
Posts: 34
Joined: Wed Aug 15, 2012 7:54 am

Re: VirtualAP question

Thu May 22, 2014 5:11 pm

i tried this one also (which i believe is the same) with the same results.
[oid("iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrWireless.mtxrWlApTable.mtxrWlApEntry.mtxrWlApClientCount.12")]
any recommendations or maybe another approach to be able to display this information inside of the dude map???
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26968
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: VirtualAP question

Fri May 23, 2014 9:05 am

Like I said, it's a RouterOS bug, we need to fix it.
 
cgreen
newbie
Topic Author
Posts: 34
Joined: Wed Aug 15, 2012 7:54 am

Re: VirtualAP question

Fri May 23, 2014 10:13 pm

ok i was able to get this to work. i dont know if it has any relation or if it is a possible solution for my problem.
i can get what i want by running the command
/interface wireless registration-table print count-only 
if i can get this into a label.... im happy :)
is this possible or are we in the same boat as using the oid's?