You might check to see if the OUI is unique for the Mitel phones and only do the LLDP portion of the scripts if the MAC of the device detected has that OUI. This would at least cut out the System.userComment log entries.
If you disable and then enable the port, you may stand a chance of re-triggering the UPM scripts. Not a big deal, but knowing that will explain extra events in the UPM history.
The run script and load script will expect the target script file to be in the directory you are currently in. So, if I cd into a subdirectory off of /usr/local/cfg and then run script {filename.py}, that script will be executed. However, were I to c...
You could consider using the LLDP device discovery method for UPM scripting per the example below. This example was tested using EXOS 22.2.1.5 but should work with EXOS 16.2 or later.
This configuration assumes that the end-system device advertises ...