ā01-17-2011 05:35 PM - edited ā03-06-2019 03:02 PM
I've submitted a ticket for this but on the odd chance someone here knows the answer I'll ask.
I am trying to create a simple switch configuration utility using TCL for the junior guys (and myself). However after every tcl command I get both the expected output and an "Ambiguous command:" error. I validated this does not happen on a 3600 router running 12.4(25)b with the exact same commands.
I validated this behavior on a 4510R+E/Sup 7 running IOS XE 3.1.1, a 4510R/Sup 5 running 12.2(50)sg4 and a 3750 running 12.2(52)se.
Below is a sample:
S861-1#tclsh
S861-1(tcl)#puts "hello world"
hello world
% Ambiguous command: "puts "hello world""
S861-1(tcl)#proc test {} {puts "Hello World"}
S861-1(tcl)#test
Hello World
% Ambiguous command: "test"
S861-1(tcl)#
Anybody have any idea?
Nathan Spitzer
Sr. Network Communications Analyst
Lockheed Martin
ā01-17-2011 10:39 PM
Hi Nathan,
The behaviour is due to the bug http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCsy89677.
It seems like a cosmetic issue as the command is successful.
Cheers,
Shashank
Please rate this answer if you found the content useful
ā01-18-2011 10:58 AM
It is not really a cosmetic issue if what you want to do is what is described in the TCL ios documentation, ie create a nice menu-driven configuration utility that walks a junior tech step by step through configuration, ensuring everything is correct before putting it on the network.
Additionally, I am not sure it is that bug.
Nathan Spitzer
Sr. Network Communications Analyst
Lockheed Martin
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