From: Chris Lewis (chrlewiscsco@gmail.com)
Date: Sat Feb 04 2006 - 11:17:44 GMT-3
For 12.2 have you tried the following (it has always worked for me)
tclsh
foreach address {
x.x.x.x
y.y.y.y
} {ping $address}
It also looks like your parenthesis may not be correct, for 12.4 syntax I
use [] for the inner parenthesis.
Chris
On 2/4/06, Anderson Mota Alves <mota_anderson@hotmail.com> wrote:
>
> Hi Chris,
>
> Please help me out if you can I'm tried to create a tcl script on my
> routers ( IOS 12.2 (7a) ) and the commands are accepted but I don't get
> any output I'm doing like this:
>
> tclsh
> foreach address {
> x.x.x.x
> y.y.y.y
> } {puts {exec "ping $address"}
>
> every commands are accepted but no output is seen do you know why or maybe
> I'm missing something here.
>
>
> Thanks beforehand,
>
> Andy
This archive was generated by hypermail 2.1.4 : Wed Mar 01 2006 - 11:28:17 GMT-3