05-09-2023 02:45 PM
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.
05-09-2023 03:53 PM
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.
05-10-2023 08:14 AM
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
05-10-2023 08:22 AM
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!
05-10-2023 08:28 AM
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%
05-10-2023 08:31 AM
Agreed, that the clients endpoint provides richer information and uses the same number of calls. Is your solution published anywhere?
05-11-2023 02:23 AM
This is the API I call to get client count per AP
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
02-03-2024 06:58 PM
This is great, it’s just an expensive API call in large environments.
03-20-2024 05:44 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide