Re: broken route-map after TCL ?

From: Alexei Monastyrnyi (alexeim@orcsoftware.com)
Date: Wed Oct 25 2006 - 18:07:13 ART


then it is a feature :-)
thanks Brian

Brian Dennis wrote:
> It's been like that since TCL was first supported by the IOS.
>
> HTH,
>
> Brian Dennis, CCIE #2210 (R&S/ISP-Dial/Security)
> bdennis@internetworkexpert.com
>
> Internetwork Expert, Inc.
> http://www.InternetworkExpert.com
> Toll Free: 877-224-8987
> Direct: 775-745-6404 (Outside the US and Canada)
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of Alexei Monastyrnyi
> Sent: Wednesday, October 25, 2006 11:16 AM
> To: Zafar Khan
> Cc: Ivan; ccielab@groupstudy.com
> Subject: Re: broken route-map after TCL ?
>
> Thanks! It explains then....
>
> But as you see from my post, command line looks a normal configuration
> mode, no signs for TCL... and that was a root for confusion... sending
> Ctrl+Z from TCL CLI seems not to stop it but just suspend TCL shell
> (like a normal UNIX behavior, and IOS is a kind of UNIX).
>
> Though it is not suspended on 100% :-), So the Q is - bug or feature?
>
> A.
>
> Zafar Khan wrote:
>
>> Hello Alex,
>> If you try to use 'set' command without quiting the tcl shell, the IOS
>> 'tries' to set the values of the variables in the tcl shell and NOT in
>> the native ios shell.
>>
>> If you want to execute/use IOS commands from within Tcl shell anyway, try
>> router#tclsh
>> router(tcl)# exec 'ios command'
>>
>> 'HTH
>> Zafar Khan
>> CCIE # 16999
>>
>>
>> On 10/25/06, Alexei Monastyrnyi <alexeim@orcsoftware.com> wrote:
>>
>>> Right, I had that thought as well, tried now and it worked. Thanks.
>>>
>>> Still interesting why things are partially working without one...
>>>
>>> Found that exiting the session fixes the problem (reloading was stupid)
>>>
>>> A.
>>>
>>> Ivan wrote:
>>>
>>>> You forget tclq after finishing script.
>>>>
>>>> On Wednesday 25 October 2006 20:16, Alexei Monastyrnyi wrote:
>>>>
>>>>
>>>>> Hi Group!
>>>>>
>>>>> I have some weird observation to share.
>>>>>
>>>>> On a 2600 router after working with TCL, I cannot add "set"
>>>>>
>>> statements
>>>
>>>>> to route-maps. After restarting router gains "set" ability for
>>>>> route-maps....
>>>>>
>>>>> Has anyone met something like that? the issue is on all my 2600
>>>>>
>>> routers,
>>>
>>>>> but 3600 is just fine with that.
>>>>>
>>>>> R5)#sh ver | in image
>>>>> System image file is "flash:c2600-j1s3-mz.123-20.bin"
>>>>>
>>>>> R5#tclsh
>>>>> R5(tcl)#foreach ip {
>>>>>
>>>>> +>(tcl)#1.1.1.1
>>>>> +>(tcl)#} { ping $ip }
>>>>>
>>>>> Type escape sequence to abort.
>>>>> Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
>>>>> !!!!!
>>>>> Success rate is 100 percent (5/5), round-trip min/avg/max =
>>>>>
>>> 8/10/12 ms
>>>
>>>>> R5(tcl)#^Z
>>>>> R5#
>>>>> 01:46:42: %SYS-5-CONFIG_I: Configured from console by console
>>>>> R5#conf t
>>>>> Enter configuration commands, one per line. End with CNTL/Z.
>>>>> R5(config)#route-map test
>>>>> R5(config-route-map)#match tag 100
>>>>> R5(config-route-map)#set tag 200
>>>>> 200
>>>>> R5(config-route-map)#route-map test perm 20
>>>>> R5(config-route-map)#match tag 1000
>>>>> R5(config-route-map)#set tag 2000
>>>>> 2000
>>>>> R5(config-route-map)#do sh run | beg test
>>>>> route-map test permit 10
>>>>> match tag 100
>>>>> !
>>>>> route-map test permit 20
>>>>> match tag 1000
>>>>> !
>>>>> [...]
>>>>>
>>>>>
>>>>>
>>> _______________________________________________________________________
>>>
>>>>> Subscription information may be found at:
>>>>> http://www.groupstudy.com/list/CCIELab.html
>>>>>
>>> _______________________________________________________________________
>>> Subscription information may be found at:
>>> http://www.groupstudy.com/list/CCIELab.html
>>>
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Wed Nov 01 2006 - 07:29:06 ART