07-23-2009 09:01 AM
I wanted to know if anyone can help me create a TCL script that can shut down interfaces when the script is executed.
07-23-2009 09:12 AM
What version of IOS are you using? What arguments should the script take?
07-23-2009 09:21 AM
Hello,
The IOS version is 12.2(33). I would like to create a script that when executed would execute the following commands.
Interface Gig 1/1
Shut
Interface range Gig 2/1 - 6
Shut
Interface Gig 2/20
shut
Interface range Gig 2/23 - 24
Shut
Then have another script to turn those interfaces up.
07-23-2009 09:34 AM
07-23-2009 10:31 AM
Do i just copy the file bounce-ports.tcl to the cisco router? If so where does the file get placed?
Thanks again for all your help
07-23-2009 10:34 AM
You can copy it to the local flash of the switch, or leave it on a network server. For example, the script can be run directly from TFTP:
Switch#tclsh tftp://10.1.1.1/bounce-ports.tcl shut
07-23-2009 10:41 AM
07-23-2009 10:46 AM
Thanks again for all your help. I greatly appreciate it.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: