03-05-2025 12:57 PM
I have a Flask server that I need to be notified of any events related to SWIM. There are no webhooks for this so I am polling Catalyst Center every few minutes to collect all the task IDs, then looking up the task details and trying to identify the ones related to SWIM events. I'm having a lot of trouble with the process though. I've just been dumping the event details into a text file for now so I can view them but even when I clear the text file and use SWIM to update code on a test switch, I can't seem to find any information on this in the logs I'm generating. I'm using '/dna/intent/api/v1/tasks' to get the tasks and '/dna/intent/api/v1/tasks/${id}/detail/' for the details. I want to track the entire process, including the file distribution. I need to know about the image activation prior to it's start as well.
Does anyone have any ideas on a better way to do this?
Solved! Go to Solution.
03-06-2025 04:55 PM
Have you checked the Audit Logs? They could be sent to a webhook receiver, or using syslog
03-06-2025 04:55 PM
Have you checked the Audit Logs? They could be sent to a webhook receiver, or using syslog
03-12-2025 03:16 PM
Thank you! I was able to add a simple syslog message receiver to my Flask server and I am now able to set up triggers from the Audit Logs. I have logged samples of several SWIM events and can now schedule in depth host validation for end device automatically.
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