Connected Client Count per Access Point

Prodrick
Building a reputation

Connected Client Count per Access Point

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.

7 REPLIES 7
amabt
Building a reputation

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.

AxL1971
Building a reputation

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
Building a reputation

Thanks @amabt and @AxL1971.  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!

AxL1971
Building a reputation

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%

Prodrick
Building a reputation

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

AxL1971
Building a reputation

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

 

https://api.meraki.com/api/v1/networks/<NetworkID>/wireless/clientCountHistory?timespan=600&resoluti...

 

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

 

 

Prodrick
Building a reputation

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

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.