cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
657
Views
0
Helpful
5
Replies

AP power usage api

Xdofer
Level 1
Level 1

I want to use the catalyst/DNA center API to pull the power usage of our wireless access points but having gone through it several times I cant seem to find it. there is a large number of them so Ideally looking for one where I can get default 100 or 500 at a time 

5 Replies 5

Not seen one which directly looks at power usage, it could be under health metrics API, or at least provide related metrics. If you have a large number of devices, handle pagination by incrementing the offset parameter in your requests until you have retrieved all devices. 

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

Thank you for getting back to me. Yes I cant seem to find one either. I think I will have to SSH on with paramiko to get it instead.

Gabriel Zapodeanu
Cisco Employee
Cisco Employee

We have the option to run a report, using APIs, or schedule a report to run daily and get a webhook notification when ready.
The report for this use case is Network Devices PoE.
Another option is to use this API to retrieve the PoE details at interface level for each device: /dna/intent/api/v1/network-device/${deviceUuid}/interface/poe-detail
The rate limit recommendation for the API is 100 API calls/minute.

Thank you Gabriel for your support. I was looking into using the command runner feature to run these commands "show ap dot11 5ghz sum" and then again for 2.4ghz on the wireless controller, as that would return the power usage. Is this what you are referring to when you are talking about using the API to schedule a report or is that something different?

Gabriel Zapodeanu
Cisco Employee
Cisco Employee

I would recommend to start with the suggested Catalyst Center API, see if you get all the data you need.