Re: TCLSH not showing results

From: Dillon Yang (dillony@gmail.com)
Date: Sat Jul 16 2005 - 13:52:00 GMT-3


Hi, group:

  The same weirdy occured in my real lab!
  The TCLSH FOREACH did not work meanwhile the single "rsh <ip> ping" was success!
It is until now that I can not know why.

  Any advice?

  TIA
dillon

----- Original Message -----
From: "Hoogen" <hoogen82@gmail.com>
To: "Andrew Ballantyne (aballant)" <aballant@cisco.com>
Cc: <ccielab@groupstudy.com>
Sent: Friday, July 15, 2005 1:13 PM
Subject: Re: TCLSH not showing results

> 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
>
> _______________________________________________________________________
> 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