python script
Topic
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
Answers
Answer by
pmart
Answered on 01/17/2023
Hello,
Here's a sample script and how it checks for the interface that the event originated from. FYI, this is the SNMP interface index.
Regards,
Patricio
Attachments:
Date
17.01.2023
Author
Asked by pmart