Community discussions

MikroTik App
 
pjulian
Member Candidate
Member Candidate
Topic Author
Posts: 267
Joined: Mon May 31, 2004 12:16 pm
Location: Sydney, Australia

SNMP OID for Qty of Wireless Clients Connected

Sun Jul 29, 2007 10:08 am

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
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6703
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: SNMP OID for Qty of Wireless Clients Connected

Mon Jul 30, 2007 4:15 pm

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'
 
dinfotec
newbie
Posts: 29
Joined: Wed Mar 21, 2007 9:59 pm

Re: SNMP OID for Qty of Wireless Clients Connected

Wed Aug 01, 2007 2:42 pm

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.
 
jo2jo
Forum Guru
Forum Guru
Posts: 1007
Joined: Fri May 26, 2006 1:25 am

Re: SNMP OID for Qty of Wireless Clients Connected

Sat Aug 23, 2008 5:55 am

what do you enter that into? Dude? MRTG?

thanks
 
pjulian
Member Candidate
Member Candidate
Topic Author
Posts: 267
Joined: Mon May 31, 2004 12:16 pm
Location: Sydney, Australia

Re: SNMP OID for Qty of Wireless Clients Connected

Fri Sep 12, 2008 5:55 pm

Mate, you are a legend, this works a treat thanks !

Regards
Paul
 
jo2jo
Forum Guru
Forum Guru
Posts: 1007
Joined: Fri May 26, 2006 1:25 am

Re: SNMP OID for Qty of Wireless Clients Connected

Tue Sep 16, 2008 4:09 am

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
 
anpena
just joined
Posts: 15
Joined: Wed Apr 29, 2009 5:46 am

Re: SNMP OID for Qty of Wireless Clients Connected

Wed Apr 29, 2009 5:52 am

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
 
Pikoro
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Mar 14, 2008 10:43 am

Re: SNMP OID for Qty of Wireless Clients Connected

Fri Jun 26, 2009 11:10 am

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
 
noamsheffi
just joined
Posts: 8
Joined: Tue Mar 23, 2010 4:07 am

Re: SNMP OID for Qty of Wireless Clients Connected

Tue Mar 23, 2010 5:16 am

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
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6703
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: SNMP OID for Qty of Wireless Clients Connected

Tue Mar 23, 2010 10:13 am

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
 
Pikoro
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Fri Mar 14, 2008 10:43 am

Re: SNMP OID for Qty of Wireless Clients Connected

Tue Mar 23, 2010 10:22 am

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
 
angboontiong
Forum Guru
Forum Guru
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: SNMP OID for Qty of Wireless Clients Connected

Thu Sep 09, 2010 10:15 am

Hi..

would you mind to print screen on that...
 
User avatar
stmx38
Long time Member
Long time Member
Posts: 655
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: SNMP OID for Qty of Wireless Clients Connected

Mon Apr 30, 2012 11:45 pm

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
 
angboontiong
Forum Guru
Forum Guru
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: SNMP OID for Qty of Wireless Clients Connected

Tue May 01, 2012 3:36 pm

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
 
User avatar
stmx38
Long time Member
Long time Member
Posts: 655
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: SNMP OID for Qty of Wireless Clients Connected

Tue May 01, 2012 5:07 pm

1.3.6.1.4.1.14988.1.1.5.1.1.1
This is HotSpot active users ?
 
angboontiong
Forum Guru
Forum Guru
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: SNMP OID for Qty of Wireless Clients Connected

Tue May 01, 2012 5:57 pm

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...
 
angboontiong
Forum Guru
Forum Guru
Posts: 1136
Joined: Fri Jan 16, 2009 9:59 am

Re: SNMP OID for Qty of Wireless Clients Connected

Mon May 07, 2012 1:31 pm

The RouterOS V5.15 have such oid...
 
sergey1369
just joined
Posts: 2
Joined: Fri Mar 14, 2014 9:26 am

Re: SNMP OID for Qty of Wireless Clients Connected

Fri Mar 14, 2014 9:30 am

Hello, please advice.

Does Mikrotik RouterOS have an OID for total number of Wifi sessions/users/clients since power on?
 
sergey1369
just joined
Posts: 2
Joined: Fri Mar 14, 2014 9:26 am

Re: SNMP OID for Qty of Wireless Clients Connected

Fri Mar 14, 2014 9:32 am

Hello, please advice. Does Router OS have OID for total number of users/sessions/clients since power on?
 
User avatar
dohmniq
Frequent Visitor
Frequent Visitor
Posts: 78
Joined: Sat Nov 17, 2012 12:17 pm

Re: SNMP OID for Qty of Wireless Clients Connected

Sat May 17, 2014 10:46 pm

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!
 
User avatar
dohmniq
Frequent Visitor
Frequent Visitor
Posts: 78
Joined: Sat Nov 17, 2012 12:17 pm

Re: SNMP OID for Qty of Wireless Clients Connected

Sun May 18, 2014 12:19 am

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?
 
User avatar
rekeds
just joined
Posts: 13
Joined: Fri Mar 14, 2014 10:45 pm

Re: SNMP OID for Qty of Wireless Clients Connected

Wed Feb 25, 2015 12:30 pm

client-count=.1.3.6.1.4.1.14988.1.1.1.3.1.6.6
 
mitzone
newbie
Posts: 27
Joined: Mon Jan 02, 2012 1:17 pm

Re: SNMP OID for Qty of Wireless Clients Connected

Fri May 29, 2015 9:58 am

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!
 
SolarW
newbie
Posts: 40
Joined: Mon Nov 29, 2010 3:37 am

Re: SNMP OID for Qty of Wireless Clients Connected

Fri Dec 11, 2015 5:53 pm

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?
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Sat Dec 26, 2015 9:35 am

Because of internal port numbering. In sxt the wlan is the second port in 951 it is the sixth port.
 
User avatar
Hrobocop
just joined
Posts: 23
Joined: Sun Dec 04, 2011 12:07 pm
Location: Prague

Re: SNMP OID for Qty of Wireless Clients Connected

Sat Sep 16, 2017 4:30 pm

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).