10-28-2013 02:40 AM
Dears, I am trying to disable the inactive port by using your provided script sl_suspend_ports.tcl and tm_suspend_ports.tcl. I am using a cisco 3560 8 port switch with below scenario. All the switch ports are admin enabeld and not in connected state. I configured the suspend_ports_config as 2 days.
Day 0
SCript has been ran and put all the ports in Suspend_port file.
Day 1
Script again ran, maintain all the ports are in suspend_port file.
Note:- After ran the script, i enabled fs 0/6 switch port and then made it down. One syslog up down event has been logged in the Cisco switch.
Day 2
Script ran again and disabled all the ports.
Ideally it should not disable the port fa0/6. As per my understanding sl_suspend_ports.tcl script keep monitors the syslog port up messages and remove the interfaces from suspend_port file if any ports up. I suspect some issues with this sl_suspend_ports.tcl script. Please find the attached configuration and the scripts. Kindly advice me on this as I am very much cusios to install these scripts which will reduce my overhead.
Please find the swich configuration as below.
DCSWTICH#show running-config | include vent
event manager environment suspend_ports_days 2
event manager environment suspend_ports_config flash:/susp_ports.dat
event manager directory user policy "flash:/policies"
event manager policy sl_suspend_ports.tcl
event manager policy tm_suspend_ports.tcl
DCSWTICH# irectory of flash:/ 2 -rwx 796 Mar 1 1993 22:22:11 +00:00 vlan.dat 3 -rwx 218 Jan 17 2013 00:00:01 +00:00 susp_ports.dat 4 drwx 512 Mar 1 1993 00:35:07 +00:00 policies 6 -rwx 24 Jan 17 2013 01:54:39 +00:00 private-config.text 5 -rwx 4555 Mar 1 1993 00:44:03 +00:00 tm_suspend_ports.tcl 90 -rwx 2072 Jan 17 2013 01:54:39 +00:00 multiple-fs 91 -rwx 3101 Mar 1 1993 00:44:32 +00:00 sl_suspend_ports.tcl 8 drwx 512 Mar 1 1993 00:49:39 +00:00 c3560-ipbasek9-mz.122-55.S E7 93 -rwx 3093 Jan 17 2013 01:54:39 +00:00 config.text 27998208 bytes total (15520768 bytes free) DCSWTICH# Regards, Jubair Salim.
Solved! Go to Solution.
10-29-2013 09:57 AM
10-28-2013 10:59 AM
You have not provided enough information to understand what is happening. Post the susp_ports.dat file as well as the syslogs that were generated when Fa0/6 was brought up.
10-29-2013 02:58 AM
Thanks for the reply Clark. Please find the tested scenario as below.
All ports were physically down in 8 port Cisco 3560 switch
Day1
Script ran and stored all the ports in sus_ports.dat
Day 2
Script ran and stored all the ports in sus_ports.dat
Note:- I enabeld the port fa0/6 after the script run and after then made it as physically down by removing the cable.
Day 3
Script run and disabled all the port.
Please find the attached sus_ports.dat file, syslog and show flash output as attached.
Is there any timer has been confgured in sl_supend_ports script to check the link up information or will it automatically fetch the date once the link up.
10-29-2013 09:57 AM
11-01-2013 08:05 AM
Thanks a lot Joseph...It is working.....It is removing the ports as per the syslog message as of now...
01-15-2015 10:13 AM
Just wanted to say thanks for these amazing scripts!
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