cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2020
Views
0
Helpful
7
Replies

Getting Active Client Count Per AP

jared.ching
Level 1
Level 1

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:

GET: All APs

GET: Access Point by MAC Address

GET: Active Clients Count – this give us active clients count for the entire campus

GET: All clients – this gives us details of all clients

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

7 Replies 7

matfarre
Level 6
Level 6

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


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

Jared,

Here is the reply from the experts:

I think that this number is derived from using this API

https://10.22.243.125/api/location/v1/clients?floorRefId=727035700041482264&apList=true&_=1484113149683

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

Thanks Matt, let me try at my client's premises which is running on CMX 10.2 and will revert asap.

Regards,

Jared

Hi ,

Did you get the solution to your query. Would be helpful to know that.

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


Hi Jared,

Double check your floorRefId value.  Use the resource /api/config/v1/maps/info/:campusName/:buildingName/:floorName to confirm.

Matt

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: