Friday, May 14, 2021

Quick automation question

Is there a way to have a python script triggered so that if a certain event goes off, the script executes?

For example, I currently have a netmiko script that runs on cisco IOS to clear port security when its tripped. It uses textfsm to parse the devices, find interfaces in the err-disabled state, and reset them with a shutdown, clear port security, and then no shutdown. Is there a way to something continuously check for err-disabled ports and if it finds any at all, run the other script that clears it?



No comments:

Post a Comment