Joe Clarke Thu, 07/23/2009 - 09:12
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

What version of IOS are you using? What arguments should the script take?

steve.orphanos Thu, 07/23/2009 - 09:21
User Badges:

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.

Joe Clarke Thu, 07/23/2009 - 09:34
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

This should do it for you:


Switch#tclsh flash:bounce-ports.tcl shut


Switch#tclsh flash:bounce-ports.tcl noshut



steve.orphanos Thu, 07/23/2009 - 10:31
User Badges:

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

Joe Clarke Thu, 07/23/2009 - 10:34
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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

Actions

This Discussion