Page 1 of 1

SNMP OID for Qty of Wireless Clients Connected

Posted: Sun Jul 29, 2007 10:08 am
by pjulian
Hey guys, does anybody know how I can get the amount of wireless clients connected using SNMP ?
I have trolled through the SNMP walk and can't find anything that relates to this value.
I want to be able to graph the amount of clients connected to an AP every 5 minutes using MRTG.

Any suggestions would be appreciated.

Thanks
Paul

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Mon Jul 30, 2007 4:15 pm
by sergejs
Paul, currently such option is not available,
as you have two sections for SNMP monitor,

'interface wireless print oid', that allows to monitor the following values,
tx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.2.4010 rx-rate=.1.3.6.1.4.1.14988.1.1.1.1.1.3.4010 strength=.1.3.6.1.4.1.14988.1.1.1.1.1.4.4010 ssid=.1.3.6.1.4.1.14988.1.1.1.1.1.5.4010 bssid=.1.3.6.1.4.1.14988.1.1.1.1.1.6.4010 frequency=.1.3.6.1.4.1.14988.1.1.1.1.1.7.4010

'interface wireless registration-table print oid',
[sergejs@HotSpot] > in wireless registration-table print oid
0 strength=.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.11.107.77.4.42.2
tx-bytes=.1.3.6.1.4.1.14988.1.1.1.2.1.4.0.11.107.77.4.42.2
rx-bytes=.1.3.6.1.4.1.14988.1.1.1.2.1.5.0.11.107.77.4.42.2
tx-packets=.1.3.6.1.4.1.14988.1.1.1.2.1.6.0.11.107.77.4.42.2
rx-packets=.1.3.6.1.4.1.14988.1.1.1.2.1.7.0.11.107.77.4.42.2
tx-rate=.1.3.6.1.4.1.14988.1.1.1.2.1.8.0.11.107.77.4.42.2
rx-rate=.1.3.6.1.4.1.14988.1.1.1.2.1.9.0.11.107.77.4.42.2

Total number of client is not available over snmp.
'interface wireless registration-table print count-only interface=name_of_the_ap'

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Wed Aug 01, 2007 2:42 pm
by dinfotec
Hi,

We use this; and work fine

[array_size(oid_column("iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrWireless.mtxrWlRtabTable.mtxrWlRtabEntry.mtxrWlRtabStrength"))] Wireless Clients

Regards,

Fran.

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Sat Aug 23, 2008 5:55 am
by jo2jo
what do you enter that into? Dude? MRTG?

thanks

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Fri Sep 12, 2008 5:55 pm
by pjulian
Mate, you are a legend, this works a treat thanks !

Regards
Paul

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Tue Sep 16, 2008 4:09 am
by jo2jo
pjulian, can you answer my question:


what do you enter that:

([array_size(oid_column("iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrWireless.mtxrWlRtabTable.mtxrWlRtabEntry.mtxrWlRtabStrength"))] Wireless Clients)

into? Dude? MRTG?

thanks

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Wed Apr 29, 2009 5:52 am
by anpena
Hello "dinfotec"

This is great, this array works great in Dude, just one question, I want to graph the same in Dude, I tried to create same array as function into a new graph, but unfortunately is not graphing, can you tell me how to graph the same array in Dude

Really appreciated your help

Antonio

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Fri Jun 26, 2009 11:10 am
by Pikoro
Here's how you do this:

In dude, go to "Functions" and create a new function called: wireless_clients
under "Code" paste in the following:
array_size(oid_column("iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrWireless.mtxrWlRtabTable.mtxrWlRtabEntry.mtxrWlRtabStrength"))
click on Ok and go back to your network map
right click on one of your wireless devices and select "Appearance"
click on the "Label" box and paste the following:
[Device.Name]
[device_performance()][Device.ServicesDown][wireless_clients()] Wireless Clients
Click on Ok and see your handy work.

Here's to graph it:
Right click on your network object and go to "Settings"
on the "Services" tab, add a new service
click on the 3 dots next to "Probe"
Fill out the following settings:

Name: wireless_probe
type: Function
Available: wireless_clients()
Error: if(wireless_clients(), "", "")
Value: wireless_clients()
Unit: Clients
rate: None

click on "ok" and select the wireless_probe as your probe
Hit Ok again and you should be graphing the number of wireless clients now.

Cheers

Edit: Added to the wiki: http://wiki.mikrotik.com/wiki/Number_of ... ss_Clients

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Tue Mar 23, 2010 5:16 am
by noamsheffi
Thanks for that

can you help me on how to add TX & RX probe ? I would like to monitor tx rx rate on device without using link

Thanks

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Tue Mar 23, 2010 10:13 am
by sergejs
noamsheffi,
'interface wireless registration-table print oid',
[sergejs@HotSpot] > in wireless registration-table print oid
0 strength=.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.11.107.77.4.42.2
tx-bytes=.1.3.6.1.4.1.14988.1.1.1.2.1.4.0.11.107.77.4.42.2
rx-bytes=.1.3.6.1.4.1.14988.1.1.1.2.1.5.0.11.107.77.4.42.2
tx-packets=.1.3.6.1.4.1.14988.1.1.1.2.1.6.0.11.107.77.4.42.2
rx-packets=.1.3.6.1.4.1.14988.1.1.1.2.1.7.0.11.107.77.4.42.2
tx-rate=.1.3.6.1.4.1.14988.1.1.1.2.1.8.0.11.107.77.4.42.2
rx-rate=.1.3.6.1.4.1.14988.1.1.1.2.1.9.0.11.107.77.4.42.2

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Tue Mar 23, 2010 10:22 am
by Pikoro
BTW, I never asked, but back when I added this all to the wiki, I think they were giving out free MT licenses and I never claimed one.

Any chance of picking one up still?

Thanks

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Thu Sep 09, 2010 10:15 am
by angboontiong
Hi..

would you mind to print screen on that...

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Mon Apr 30, 2012 11:45 pm
by slech
As I understand
iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrWireless.mtxrWlRtabTable.mtxrWlRtabEntry.mtxrWlRtabStrength
Show signal strength, but I need Wirelles clients count.
How I can do this via SNMP ?

interface wireless registration-table print count-only

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Tue May 01, 2012 3:36 pm
by angboontiong
Hey guys, does anybody know how I can get the amount of wireless clients connected using SNMP ?
I have trolled through the SNMP walk and can't find anything that relates to this value.
I want to be able to graph the amount of clients connected to an AP every 5 minutes using MRTG.

Any suggestions would be appreciated.

Thanks
Paul
1.3.6.1.4.1.14988.1.1.5.1.1.1

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Tue May 01, 2012 5:07 pm
by slech
1.3.6.1.4.1.14988.1.1.5.1.1.1
This is HotSpot active users ?

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Tue May 01, 2012 5:57 pm
by angboontiong
1.3.6.1.4.1.14988.1.1.5.1.1.1
This is HotSpot active users ?
Hi...
sorry, not look into it carefully as rushing just now...

ya, this is for the Hotspot active user but not the registered user under wireless registration table...

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Mon May 07, 2012 1:31 pm
by angboontiong
The RouterOS V5.15 have such oid...

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Fri Mar 14, 2014 9:30 am
by sergey1369
Hello, please advice.

Does Mikrotik RouterOS have an OID for total number of Wifi sessions/users/clients since power on?

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Fri Mar 14, 2014 9:32 am
by sergey1369
Hello, please advice. Does Router OS have OID for total number of users/sessions/clients since power on?

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Sat May 17, 2014 10:46 pm
by dohmniq
Just to add: I've raised ticket #2014051566000304 asking for more OIDs for the wireless registration table.

Specifically I asked for mac-address (so I can see WHO is connected!) and tx/rx ccq.

It wouldn't hurt for other people to ask too!

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Sun May 18, 2014 12:19 am
by dohmniq
Also...
/interface wireless> pr oid
 0 tx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.2.2 rx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.3.2 ssid=.1.3.6.1.4.1.14988.1.1.1.3.1.4.2 bssid=.1.3.6.1.4.1.14988.1.1.1.3.1.5.2
   client-count=.1.3.6.1.4.1.14988.1.1.1.3.1.6.2 frequency=.1.3.6.1.4.1.14988.1.1.1.3.1.7.2 band=.1.3.6.1.4.1.14988.1.1.1.3.1.8.2 noise-floor=.1.3.6.1.4.1.14988.1.1.1.3.1.9.2
   overall-ccq=.1.3.6.1.4.1.14988.1.1.1.3.1.10.2
client-count (on a per interface basis) seems to be .1.3.6.1.4.1.14988.1.1.1.3.1.6.2

Any use to you?

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Wed Feb 25, 2015 12:30 pm
by rekeds
client-count=.1.3.6.1.4.1.14988.1.1.1.3.1.6.6

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Fri May 29, 2015 9:58 am
by mitzone
this is the OID I use :


.1.3.6.1.4.1.14988.1.1.1.2.1.1

It returns number of MAC addresses of the clients connected. It returns an error if no client is connected.
Cheers!

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Fri Dec 11, 2015 5:53 pm
by SolarW
RB SXT 2 ROS 6.33.2 work as AP
interface wireless print oid
0 tx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.2.2 rx-rate=.1.3.6.1.4.1.14988.1.1.1.3.1.3.2 ssid=.1.3.6.1.4.1.14988.1.1.1.3.1.4.2 bssid=.1.3.6.1.4.1.14988.1.1.1.3.1.5.2
client-count=.1.3.6.1.4.1.14988.1.1.1.3.1.6.2 frequency=.1.3.6.1.4.1.14988.1.1.1.3.1.7.2 band=.1.3.6.1.4.1.14988.1.1.1.3.1.8.2
noise-floor=.1.3.6.1.4.1.14988.1.1.1.3.1.9.2 overall-ccq=.1.3.6.1.4.1.14988.1.1.1.3.1.10.2


RB951Ui-2HnD ROS 6.33.2 work as AP
interface wireless print oid
0 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




Why?

Posted: Sat Dec 26, 2015 9:35 am
by jarda
Because of internal port numbering. In sxt the wlan is the second port in 951 it is the sixth port.

Re: SNMP OID for Qty of Wireless Clients Connected

Posted: Sat Sep 16, 2017 4:30 pm
by Hrobocop
I was just playing a bit with MIB browser and in my case it seems to be available on three places:
  • mtxrWlApClientCount
    • OID: .1.3.6.1.4.1.14988.1.1.1.3.1.6.11
      Simple MIB: MIKROTIK-MIB::mtxrWlApClientCount.11
      Full MIB: .iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrWireless.mtxrWlApTable.mtxrWlApEntry.mtxrWlApClientCount.11
  • mtxrWlApAuthClientCount
    • OID: .1.3.6.1.4.1.14988.1.1.1.3.1.11.11
      Simple MIB: MIKROTIK-MIB::mtxrWlApAuthClientCount.11
      Full MIB: .iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrWireless.mtxrWlApTable.mtxrWlApEntry.mtxrWlApAuthClientCount.11
  • mtxrWlRtabEntryCount
    • OID: .1.3.6.1.4.1.14988.1.1.1.4.0
      Simple MIB: MIKROTIK-MIB::mtxrWlRtabEntryCount.0
      Full MIB: .iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrWireless.mtxrWlRtabEntryCount.0
PS: Im'm not sure what is the difference between ApClientCount and ApAuthClientCount - I always have the same number/count (sure, the second should be authenticated).