I am trying to get the Information where an AP is connected on (Switch, Port) via an API call in DNAC. Does anyone any Idea how to get this? I spent too much time as it is to find any information in the API doku for this.
Well for troubleshooting purposes API would be ideal. I am building a script that will get all the necessary Information if I receive an "AP Down" alert. So basically, with one script I could get all the information and directly check the Switchport interface for further details. Something in the lines:
if (AP != "UP state"
check Switchport Status check Authentication Session and so on....
Unfortunately DNAC is the only tool that I have where this information is stored. The WLC doesn't store this information for later.
Theoretically it can be done with a CSV report, or at least I can give it a try. The Standard AP report doesn't have this Info though so I'm courius which one you are thinking of.
EDIT: It is in the AP Report, just not in my version (22.214.171.124). I can see it in 126.96.36.199. Luckily we are doing an upgrade soon to this version. But still, if it can get into a report it shouldn't be hard to have it come as a response in an API Call.
Is DNA reporting an Issue when an AP goes down? It is supposed to report when "The AP is disconnected from the WLC. The AP's capwap link to the WLC was down" and the description tells you which port it was last seen on. If needed, you can subscribe to the events and send to a webook, if for example you are looking to automate remediation.