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

Date
17.01.2023
answer
1
views
0
Author
Asked by coleman147

Answers

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
Add Comment
Vote