cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7634
Views
1
Helpful
8
Replies

Connected Client Count per Access Point

Prodrick
Level 4
Level 4

What Organization or Network-level endpoint might I call to get the number of connected clients per Access Point? Previously we were getting this via snmp.meraki.com, but that has proven to be unreliable.

Maybe it's possible with this endpoint by totaling the number of clients grouped by recentDeviceName or recentDeviceSerial?


https://api.meraki.com/api/v1/networks/:networkId/clients

Thanks.

8 Replies 8

amabt
Level 4
Level 4

https://developer.cisco.com/meraki/api-v1/#!get-network-wireless-client-count-history seem to have what you are after if you filter by device serial.

I have written such a API that collects this information writes its to a back end database and has a on premise web page to see client connections per AP and network

I will dig out the code and post it here

Prodrick
Level 4
Level 4

Thanks @amabt and @Abdulaziz Loonat. So, it looks like we have two solutions. One that provides an integer response and one that provides information about each client that a software developer could group and total. GREAT!

with my solution I get notification if the client count per AP reaches 30 client also did another API that collects AP utilisation in % for the 2.4 and 5Ghz and again alerts me if utilisation goes above 90%

Agreed, that the clients endpoint provides richer information and uses the same number of calls. Is your solution published anywhere?

This is the API I call to get client count per AP

https://api.meraki.com/api/v1/networks/<NetworkID>/wireless/clientCountHistory?timespan=600&resolution=600&band=<band>&deviceSerial=<APSerialNumber>

I pass the network ID, the band either 2.4 or 5 Ghz abd serial number of the AP, the time span I use is 10 minutes and this API is called every 10 minutes.

Once the results are returned back as a json file, I then do the processing to extract the details and write to a back end SQL database. I then have a Power BI report that can graph the AP client count over a period of time.

I did a very quick and dirty way to get this information am sure there is a better way but dont have time to look into this. For my purpose, the above works for me and been running past 12 months

More info here

https://developer.cisco.com/meraki/api-latest/#!get-network-wireless-client-count-history

This is great, it’s just an expensive API call in large environments.

Jamiegprice15
Level 4
Level 4

This is the code I use. I also have code to dump the information to a spreadsheet.

https://github.com/jadexing/Merakicode/blob/main/UserCountPerNetwork