on my os6360 switch i created a python script
this script is executed at a linkdow event:
event action trap linkDown script /flash/python/myscript.py
I need to insert variables inside the script
to report the port that generated the trap.
is there a more detailed document for python ?
thanks for collaboration
Answer by pmart
Answered on 01/17/2023
Here's a sample script and how it checks for the interface that the event originated from. FYI, this is the SNMP interface index.