Page 1 of 1
VirtualAP question
Posted: Wed May 21, 2014 12:33 am
by cgreen
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??
Re: VirtualAP question
Posted: Wed May 21, 2014 11:52 pm
by jaykay2342
maybe it's a good idea to show us the code?
Re: VirtualAP question
Posted: Thu May 22, 2014 4:44 pm
by cgreen
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] >
Re: VirtualAP question
Posted: Thu May 22, 2014 4:50 pm
by normis
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
Re: VirtualAP question
Posted: Thu May 22, 2014 4:55 pm
by cgreen
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.
Re: VirtualAP question
Posted: Thu May 22, 2014 4:57 pm
by cgreen
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?
Re: VirtualAP question
Posted: Thu May 22, 2014 5:08 pm
by normis
same OID works with real interface, but all OIDs for virtual return empty. Maybe a bug. Thanks, we will see.
Re: VirtualAP question
Posted: Thu May 22, 2014 5:11 pm
by cgreen
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???
Re: VirtualAP question
Posted: Fri May 23, 2014 9:05 am
by normis
Like I said, it's a RouterOS bug, we need to fix it.
Re: VirtualAP question
Posted: Fri May 23, 2014 10:13 pm
by cgreen
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
![Smile :)](./images/smilies/icon_smile.gif)
is this possible or are we in the same boat as using the oid's?