cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
498
Views
0
Helpful
6
Replies

Need DNAC API which Gives the wireless user count to AP

ishwarshivaji-b
Level 1
Level 1

We need to generate wireless utilization report per hour time frame and its need data i.e. wireless user count to AP , So we need any API which can we run in DNAC to get this active client count data per access point//per SSID/per band/per 802.11 protocol 

Challenge is we need to manually export this report per hour manually and we don't want this manual intervention from Device Administrator.

Request you all experts to help here to get some APIs which we can run in DNAC or 9800 WLC.  

6 Replies 6

@ishwarshivaji-b you could try https://developer.cisco.com/docs/dna-center/get-client-enrichment-details/ - but would have to do some filtering here i am guessing. The API call https://developer.cisco.com/docs/dna-center/#!get-client-detail that will provide details for a given client. However, it requires the MAC, which I need to know first. 

Python's schedule library or cron jobs to run the script hourly.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Hi Thanks for your response... Can u help me on how to apply filter while executing API URL. is there any filter available for time, date, specific device ? it will be very help full if you help with any API URL format which contain this filter parameter like time, date, specific device.

ammahend
VIP Alumni
VIP Alumni

You can try this API, use time and connectednetworkdevicename filter 

https://developer.cisco.com/docs/dna-center/retrieves-the-total-count-of-clients-by-applying-basic-filtering/

you can also explore other APIs in client and wireless section.

-hope this helps-

Hi 

below is the API response,

{
    "response": {
        "count": 1011
    },
    "version": "1.0"
}
 
its giving total count. and i don't know what is that count, is it for wireless users or wired users ? and if it its showing for wireless user this API not giving response like to which AP hostname client is connected ?

When running the API did you use the time and connected device parameter that I mentioned, if so then the count is for that specific AP and for the time you defined. 

-hope this helps-

Can you help me with API URL format where time and device filter is apply... i will try with your reference URL...