From: easyman.lin (easyman.lin@msa.hinet.net)
Date: Tue Feb 07 2006 - 07:49:05 GMT-3
Hi, Nick
I think Chris means you need to put "[ ] " after puts command in his
previous post.
Example as following
tclsh
foreach address {
x.x.x.x
y.y.y.y
} {puts [exec "ping $address"] }
Or you can see the more complex one on IE.
http://www.internetworkexpert.com/resources/tclshrsh.htm
HTH.
Regards,
Lin
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of Nick
Sent: Tuesday, February 07, 2006 6:07 PM
To: Chris Lewis
Cc: ccielab@groupstudy.com
Subject: Chris, about your tcl script for 12.4
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