04-10-2023 06:21 AM
I currently have a Python function that will grab an endpoint's last wireless connection using Prime's API. In preparation for our wireless controller moving away from Prime, I'm trying to do the same thing using DNA Center's API. The issue I'm running into is the client-detail API call will only give inactive connection info for about 24 hours before. The only alternative I can see is my function using the timestamp and making multiple calls until the given timestamp has an active connection. Does anybody know a DNAC API call that will give last given connection information without having to provide timestamps? Many thanks!
04-20-2023 11:02 PM
Yes, you can get information about an endpoint's last connection by using Cisco DNA Center's AI Endpoint Analytics API. On the Cisco DNA Center AI Endpoint Analytics window, you can view information about endpoints such as their first authorized timestamp, last authorized timestamp, and duration for which the endpoint has been available in the network. Refer to the link below:
You can choose to distinguish the entries by MAC address or by using both MAC address and the network information provided.
If you find my reply solved your question or issue, kindly click the 'Accept as Solution' button and vote it as helpful.
You can also learn more about Cisco DNA Center through our live Ask the Experts (ATXs) session. Check out Cisco DNA Center ATXs Resources [https://community.cisco.com/t5/networking-knowledge-base/cisco-dna-center-ask-the-experts-resources/ta-p/4394489] to view the latest schedule for upcoming sessions, as well as the useful references, e.g. online guides, FAQs.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide