Re: TCLSH not showing results

From: Hoogen (hoogen82@gmail.com)
Date: Fri Jul 15 2005 - 02:13:27 GMT-3


During the real lab, my tcl script didnt work. I think the routers
used were 3600. Just scroll back on the posts and learn both the
methods of running the script, it may help you.

Hoogen

On 7/14/05, Andrew Ballantyne (aballant) <aballant@cisco.com> wrote:
> Hi,
>
> BTW I got this working by doing the following...
>
> foreach router {
> 192.168.1.1
> 192.268.1.1
> } {
> puts "[exec "ping $router"]"
> }
>
> i.e. use a puts TCL command,
>
> cheers,
> Andrew
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> Andrew Ballantyne (aballant)
> Sent: Thursday, July 14, 2005 8:25 AM
> To: ccielab@groupstudy.com
> Subject: RE: TCLSH not showing results
>
> Hi Lee,
>
> I get the same problem. Strange, I'll may be try a 3600 with the lastest
> 12.2T release,
>
> Cheers,
> Andrew
>
> -----Original Message-----
> From: Lee Donald [mailto:Lee.Donald@t-systems.co.uk]
> Sent: Thursday, July 14, 2005 8:24 AM
> To: Andrew Ballantyne (aballant); ccielab@groupstudy.com
> Subject: RE: TCLSH not showing results
>
> Andrew,
>
> Try this one.
>
> tclsh
>
> foreach address {
> 183.1.58.5
> 183.1.78.8
> 183.1.17.7
> 183.1.123.2
> 183.1.2.2
> 204.12.1.254
> 183.1.0.5
> 183.1.46.6
> 123.123.123.2
> 192.10.1.254
>
> } {ping $address}
>
>
> Regards
>
> Lee.
>
>
>
> -----Original Message-----
> From: Andrew Ballantyne (aballant) [mailto:aballant@cisco.com]
> Sent: 14 July 2005 16:14
> To: ccielab@groupstudy.com
> Subject: TCLSH not showing results
>
> Hi,
>
>
>
> This happens to be on a 7600, running the latest IOS on 12.2 and I see
> similar on other devices. When I try to run an IOS command within a TCL
> script I don't see the results
>
>
>
> I run the following script...
>
>
>
> (tcl)#foreach router {
>
> +>192.168.2.2
>
> +>192.168.1.1
>
> +>} {
>
> +>puts "ping router $router"
>
> +>exec ping $router
>
> +>}
>
> ping router 192.168.2.2
>
> ping router 192.168.1.1
>
>
>
>
>
> But as you can see the print/puts line is printed at the right place (&
> approx right time), but the ping results are not shown. Is there
> something which has to be configured to run command in TCL, and see
> their results?
>
>
>
> Cheers.
>
> Andrew
>
> _______________________________________________________________________
> 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 : Sun Sep 04 2005 - 17:00:30 GMT-3