cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1021
Views
0
Helpful
1
Replies

ios_config "no vlan 2000-4094" "end" not working in tclsh

jonasstenling
Level 1
Level 1

I have a small tcl script that I'm executing with tclsh on an IE3010 switch. The script only contains a number of ios_config rows and changes the configuration in various ways. Everything works as expected, the only row that fails is the following:

ios_config "no vlan 2000-4094" "end"

I've tried both with and without the "end" subcommand. When I execute the command interactively from tclsh it's accepted without any output, but it's not executed and the VLANs remain.

Do I have to treat "no vlan" in any special way in my script?

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

I tested here locally with a 15.0(2)SE7 on a 3560CG, and it worked.  That said, I don't recommend people use tclsh as much these days.  You'll have much more luck with EEM Tcl.  Yes, it's not interactive, but your CLI commands will be near 100% reliable, especially if you're doing command authz.

Getting Started

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: