05-10-2024 04:02 AM
I currently have a Python function that will grab an endpoint's last wireless connection using Prime'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. Does anybody know a DNAC API call that will give last given connection information without having to provide timestamps?
Solved! Go to Solution.
05-10-2024 04:15 AM - edited 05-10-2024 07:52 AM
Limited knowledge here, but if i recall there isn't a single Catalyst Center API call that provides the last ever connection information for an endpoint without specifying a timeframe, this is due to data retention (unless /dna/intent/api/v2/wireless/client-detail does?) . Catalyst Center likely stores endpoint connection data for a set period (like around 24 hours as you mentioned with Prime). which i believe to manage storage space and focus on recent activity.
You could use a webhook, where the API sends notifications/updates to a configured endpoint whenever a relevant event occurs (e.g., client connection or disconnection). You could then use the notifications to update your local cache or database with the latest connection information.
Hope this helps.
05-10-2024 04:15 AM - edited 05-10-2024 07:52 AM
Limited knowledge here, but if i recall there isn't a single Catalyst Center API call that provides the last ever connection information for an endpoint without specifying a timeframe, this is due to data retention (unless /dna/intent/api/v2/wireless/client-detail does?) . Catalyst Center likely stores endpoint connection data for a set period (like around 24 hours as you mentioned with Prime). which i believe to manage storage space and focus on recent activity.
You could use a webhook, where the API sends notifications/updates to a configured endpoint whenever a relevant event occurs (e.g., client connection or disconnection). You could then use the notifications to update your local cache or database with the latest connection information.
Hope this helps.
05-13-2024 01:06 AM
There is a new API call to provide that info, i recommended to look into the docs
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