python script

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

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:

1673970588197_linkupdown.txt