From: Zafar Khan (mahaguru@gmail.com)
Date: Wed Oct 25 2006 - 15:04:24 ART
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
This archive was generated by hypermail 2.1.4 : Wed Nov 01 2006 - 07:29:06 ART