Community discussions

MikroTik App
 
quemlar
just joined
Topic Author
Posts: 24
Joined: Thu Aug 11, 2011 2:57 pm

SNMP OID For number of registered clients to an AP

Thu Aug 11, 2011 3:14 pm

Hello,

Can someone advise me if this is possible. I see an old thread about it but its from years ago, but there might be a newer way to do this. I need to get a report on the number of clients registered to an AP by SNMP. Any help appreciated.

Q
 
User avatar
Aug
Member
Member
Posts: 312
Joined: Thu Jun 07, 2007 2:10 am

Re: SNMP OID For number of registered clients to an AP

Thu Aug 11, 2011 5:42 pm

snmp walk in Dude shows:

iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrWireless.mtxrWlApTable.mtxrWlApEntry.mtxrWlApClientCount.2

oid .1.3.6.1.4.1.14988.1.1.1.3.1.6.2
 
quemlar
just joined
Topic Author
Posts: 24
Joined: Thu Aug 11, 2011 2:57 pm

Re: SNMP OID For number of registered clients to an AP

Thu Aug 11, 2011 6:08 pm

Thank you for the info. Does additional software need to be installed on the AP, I'm getting no SNMP info from the AP via The Dude.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: SNMP OID For number of registered clients to an AP

Fri Aug 12, 2011 10:18 am

it depends on what is interface id.

snmpwalk -v 1 -c public ap .1.3.6.1.4.1.14988.1.1.1.3

will show you some OIDs among them will be correct one.

basically iso.3.6.1.4.1.14988.1.1.1.3.1.6.X where X can change depending on interfaces.
 
quemlar
just joined
Topic Author
Posts: 24
Joined: Thu Aug 11, 2011 2:57 pm

Re: SNMP OID For number of registered clients to an AP

Fri Aug 12, 2011 11:00 am

Hello,

I'm still getting no response from the AP

[root@pnetKilbSvr1 ~]# snmpwalk -v 1 -c public 88.151.30.219 .1.3.6.1.4.1.14988.1.1.1.3
Timeout: No Response from 88.151.30.219
[root@pnetKilbSvr1 ~]#
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: SNMP OID For number of registered clients to an AP

Fri Aug 12, 2011 11:18 am

is your snmp enabled, is your snmp version 1 and your community is public, adjust these settings as you might have different ones set.

edit:
running 5.6
 
quemlar
just joined
Topic Author
Posts: 24
Joined: Thu Aug 11, 2011 2:57 pm

Re: SNMP OID For number of registered clients to an AP

Fri Aug 12, 2011 11:34 am

Working fine for other devices on the network.

[root@pnetKilbSvr1 ~]# snmpwalk -v2c -c private 192.168.53.71
SNMPv2-MIB::sysDescr.0 = STRING: ARRIS DOCSIS 1.1 Touchstone Cable Modem <<HW_REV: 07; VENDOR: Arris Interactive, L.L.C.; BOOTR: 4.00; SW_REV: CM.05.00.0X.062005D; MODEL: CM450W>>
SNMPv2-MIB::sysObjectID.0 = OID: ARRIS-MIB::tcm.4.0.0.5.0.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (48451500) 5 days, 14:35:15.00
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING:
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 2
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00


But nothing from the AP
[root@pnetKilbSvr1 ~]# snmpwalk -v2c -c public 88.151.30.219
Timeout: No Response from 88.151.30.219
[root@pnetKilbSvr1 ~]#
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: SNMP OID For number of registered clients to an AP

Fri Aug 12, 2011 11:39 am

i meant - is your router configured to accept SNMP requests and you are using correct settings to connect to the routers SNMP service.
 
quemlar
just joined
Topic Author
Posts: 24
Joined: Thu Aug 11, 2011 2:57 pm

Re: SNMP OID For number of registered clients to an AP

Fri Aug 12, 2011 11:58 am

I have it working, I had to enable SNMP on the AP. Thanks so much for your help.

SNMPv2-SMI::enterprises.14988.1.1.1.3.1.2.4 = Gauge32: 0
SNMPv2-SMI::enterprises.14988.1.1.1.3.1.3.4 = Gauge32: 0
SNMPv2-SMI::enterprises.14988.1.1.1.3.1.4.4 = STRING: "permaNET-TEST"
SNMPv2-SMI::enterprises.14988.1.1.1.3.1.5.4 = ""
SNMPv2-SMI::enterprises.14988.1.1.1.3.1.6.4 = Counter32: 1


The last oid is the number of connected clients. I turned the WiFi off and the value was

[root@pnetKilbSvr1 ~]# snmpwalk -v 1 -c public 10.1.10.180 .1.3.6.1.4.1.14988.1.1.1.3
SNMPv2-SMI::enterprises.14988.1.1.1.3.1.2.4 = Gauge32: 0
SNMPv2-SMI::enterprises.14988.1.1.1.3.1.3.4 = Gauge32: 0
SNMPv2-SMI::enterprises.14988.1.1.1.3.1.4.4 = STRING: "permaNET-TEST"
SNMPv2-SMI::enterprises.14988.1.1.1.3.1.5.4 = ""
SNMPv2-SMI::enterprises.14988.1.1.1.3.1.6.4 = Counter32: 0

Thanks again!