01-08-2017 11:11 PM
Hi there,
We are trying to get the number of active client on a per AP basis.
We are referring to the latest version, which is 10.2 for our testing.
https://www.cisco.com/c/en/us/td/docs/wireless/mse/10-2/api/b_cmx_102_api_reference.html
However, it seems that we are not able to identify the specific API to use for the retrieval of "Number of Active Client Per AP".
The closest APIs that we can find that are related to APs and Active Clients are:
However, none of the above will be able to give us “Number of Active Clients per AP”. Will there be a REST API that we can use to retrieve that?
Many thanks in advance!
Regards,
Jared
01-10-2017 11:32 AM
Hi,
Let me check with the CMX folks regarding a query for this. I will follow-up soon.
The CMX 10.2 Activity Map calculates the active clients for each AP. For example: Client Information: 3 connected clients 64 detected clients
Matt
01-10-2017 08:13 PM
Thanks Matt, much appreciated.
Yes, you are right. In fact, I was surprised that I am unable to locate the corresponding REST API to retrieve the data when the data is already being visualised at the Activity Map.
Hoping that we can have a way to retrieve that information.
Regards,
Jared
01-11-2017 07:06 AM
Jared,
Here is the reply from the experts:
I think that this number is derived from using this API
and counting the number of records for each unique "apMacAddress": "3c:08:f6:d9:08:a0",
I don’t see a single API that will pull just the number of devices per AP, instead, you add the tag apList=TRUE at the end of the client get API.
Thanks for the question,
Matt
01-11-2017 04:59 PM
Thanks Matt, let me try at my client's premises which is running on CMX 10.2 and will revert asap.
Regards,
Jared
01-25-2017 01:34 AM
Hi ,
Did you get the solution to your query. Would be helpful to know that.
01-25-2017 01:43 AM
Hi Mandar/Matt,
We have tried out the suggested API in the following forms:
https://10.22.243.125/api/location/v1/clients?floorRefId=xxx&apList=true
and
https://10.22.243.125/api/location/v1/clients?floorRefId=xxx
where xxx = floorRefId in my customer environment.
However, we only get an empty string back. Is there any known issue with the usage of ?floorRefId in the Get: All Clients API?
Or are we doing something wrong?
For comparison, usage of ?IPAddress in Get: All Clients works.
Regards,
Jared
01-25-2017 08:15 AM
Hi Jared,
Double check your floorRefId value. Use the resource /api/config/v1/maps/info/:campusName/:buildingName/:floorName to confirm.
Matt
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