cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
128
Views
0
Helpful
2
Replies

Notification of scheduled SWIM events from Catalyst Center

john-p
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

Gabriel Zapodeanu
Cisco Employee
Cisco Employee

Have you checked the Audit Logs? They could be sent to a webhook receiver, or using syslog

GabrielZapodeanu_1-1741308892337.png

 

 

View solution in original post

2 Replies 2

Gabriel Zapodeanu
Cisco Employee
Cisco Employee

Have you checked the Audit Logs? They could be sent to a webhook receiver, or using syslog

GabrielZapodeanu_1-1741308892337.png

 

 

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.