cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
542
Views
0
Helpful
4
Replies
Cisco Employee

CMX - How to get total device count and connected device count by zone

Hi,

Is there any API to get total device count (connected+detected)  and connected count.

I tried below API. It is just returning count.

Location API -> Zone count poll API ->

https://cmxlocationsandbox.cisco.com/api/location/v1/clients/count/byzone/detail?zoneId=111

Response body:

{
  
"MacAddress": [
       
"00:00:2a:01:00:41",
       
"00:00:2a:01:00:50",
       
"00:00:2a:01:00:3f",
       
"00:00:2a:01:00:46",
       
"00:00:2a:01:00:48",
       
"00:00:2a:01:00:49",
       
"00:00:2a:01:00:4c",
       
"00:00:2a:01:00:4a"
   
],
   
"Duration ": {
       
"start": "2017/08/30 10:12:08",
       
"end": "2017/08/30 10:22:08"
   
},
   
"Count ":
8
}

4 REPLIES 4
Frequent Contributor

Re: CMX - How to get total device count and connected device count by zone

Hi,

The new for CMX 10.3 Zone Count API which returns the active client count for each registered zone is fairly limited.  You would still need to poll each macAddress for status. 

Matt

Cisco Employee

Re: CMX - How to get total device count and connected device count by zone

Thanks Matthew,


   I have one more query.  When we add new zone, we need to pass debug flag to enable or disable recording macaddresses for registered zones. Can We use debug flag as true in production?. When I make debug flag as false I am not able to get the count by zone getting below messge.


{
   
"No registered zones found! Use /api/config/v1/zoneCountParams/1 API to register zones..": ""
}


Thanks,

Rajesh

Highlighted
Frequent Contributor

Re: CMX - How to get total device count and connected device count by zone

Hi,

Production use of the debug flag is fine, it enables recording mac addresses for registered zones.

Regarding the count by zone, you are correct that debug flag must be set to true.

The CMX Location API /api/location/v1/clients/count/byzone/detail?zoneId=xx returns the registered zones added for tracking client count.  This expects the debug flag turned on in the Zone Count Register API under configuration service /api/config/v1/zoneCountParams/1.

Cisco Employee

Re: CMX - How to get total device count and connected device count by zone

Thanks Matthew

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards
This widget could not be displayed.