02-02-2017 11:52 AM
We have implement's Joe Clarke's TCL scripts to disable unused ports after a specified period of time. I am having an issue while testing.
My understanding is that when a port that is listed in the susp_ports.dat file comes active the port is removed from that file by the sl_suspend_ports.tcl script. I have a test switch (3850) that I am trying this on. The susp_ports.dat file has a port listed in there with the inactive time set to > suspend_ports_days. I force the port active, but it does not get removed from the file. Verified policy is registered in event manager.
02-02-2017 02:27 PM
Hi
Could you please share the config? Thanks
02-03-2017 11:39 AM
I have done some more troubleshooting. If I execute tm_suspend_ports.tcl manually it gives the following output...
can't read "errorInfo": no such variable
while executing
"error $result $errorInfo"
invoked from within
"if { ![info exists suspend_ports_days] } {
set result "ERROR: Policy cannot be run: variable suspend_ports_days has not been set"
error $resul..."
(file "tm_suspend_ports.tcl" line 48)
When I run the sl_suspend_ports.tcl script I get the following....
invalid command name "::cisco::eem::event_register_syslog"
while executing
"::cisco::eem::event_register_syslog pattern "LINEPROTO-5-UPDOWN" maxrun 600"
(file "sl_suspend_ports.tcl" line 1)
Both files attached.
I have attached the file I am using.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide