From: Chris Lewis (chrlewiscsco@gmail.com)
Date: Tue Feb 07 2006 - 10:54:22 GMT-3
The line
} {puts {exec "ping $address"}
Should read
} {puts [exec "ping $i"]}
On 2/7/06, Nick <seajay76@nate.com> wrote:
>
> Hi, Chris!
>
> I'm going to the lab the day after tomorrow.
>
> Since I have been studying only with 12.2(T) so far,
>
> I have no experience with 12.4.
>
> Your tcl script is going to be real plus one, since old tcl won't work. :)
>
> So, I'm trying to memorize your script.
>
> By the way, it seems like your script is missing one "}" at the end.
>
> looks like they don't pair.
>
> tclsh
> foreach address {
> x.x.x.x
> y.y.y.y
> } {puts {exec "ping $address"} <- Here. two "{"s and one "}"
>
> Is this correct? Or would you please clarify on this?
>
> It's not going to good to troubleshoot the tcl in the lab.
>
> Thank you in advance.
>
> Regards,
> Nick
>
> ----- Original Message -----
> From: "Chris Lewis" <chrlewiscsco@gmail.com>
> To: "Popgeorgiev Nikolay" <nikolay.popgeorgiev@siemens.com>
> Cc: "Theerapol Boonnan" <theerab@net1.co.th>; <ccielab@groupstudy.com>
> Sent: Friday, February 03, 2006 11:09 PM
> Subject: Re: how to create tcl script ping test?
>
>
> > Nick,
> >
> > That script worked well for me on 12.2 routers. For some reason on
> > 12.4routers (that will appear in the lab) it needs to be amended
> > slightly to the
> > following to display an output.
> >
> > tclsh
> > foreach address {
> > x.x.x.x
> > y.y.y.y
> > } {puts {exec "ping $address"}
> >
> > Chris
> >
> > On 2/3/06, Popgeorgiev Nikolay <nikolay.popgeorgiev@siemens.com> wrote:
> >>
> >> Theerapol,
> >>
> >> You can use this:
> >>
> >>
> >> tclsh
> >> foreach address {
> >> x.x.x.x
> >> y.y.y.y
> >> } {ping $address rep2}
> >>
> >>
> >> best,
> >> Nick
> >>
> >>
> >> -----Original Message-----
> >> From: Theerapol Boonnan [mailto:theerab@net1.co.th]
> >> Sent: Tuesday, January 31, 2006 5:07 AM
> >> To: ccielab@groupstudy.com
> >> Subject: how to create tcl script ping test?
> >>
> >> Anyone know about how to create tcl script for ping test? And can I use
> >> this tcl script in lab exam?
> >>
> >>
> >>
> >> Theerapol
> >>
> >> _______________________________________________________________________
> >> 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 Mar 01 2006 - 11:28:17 GMT-3