Thanks for the help!
On Sat, Dec 18, 2010 at 11:49 AM, Tyson Scott <tscott_at_ipexpert.com> wrote:
> Unless you did the following.
>
> ) ( if ( string match "#*" ) ) ( ) else ( ping $address re 3 ) )
>
> Brackets around string match should be square and the rest squigly
> brackets. I can't find them on my phone
>
>
> Regards,
>
> Tyson Scott
> CCIE # 13513 (R&S, Security, SP)
> Managing Partner/Technical Instructor - IPexpert Inc.
> tscott_at_ipexpert.com
>
>
> ----- Reply message -----
> From: "Nathan Pease" <pease.nathan_at_gmail.com>
> Date: Sat, Dec 18, 2010 2:33 pm
> Subject: Comments in TCL script
> To: "Wouter Prins" <wp_at_null0.nl>
> Cc: "ccielab_at_groupstudy.com" <ccielab_at_groupstudy.com>
>
>
> The # symbol also does not work.
>
> Rack1R4(tcl)#foreach address {
> +>187.1.17.1
> +>187.1.134.1
> +>150.1.1.1
> +>#Begin Router 2 ips
> +>204.12.1.2
> +>187.1.235.2
> +>150.1.2.2
> +>#Begin Router 3 ips
> +>187.1.3.3
> +>187.1.38.3
> +>187.1.134.3
> +>187.1.235.3
> +>150.1.3.3
> +>} { ping $address re 3 }
>
> Type escape sequence to abort.
> Sending 3, 100-byte ICMP Echos to 187.1.17.1, timeout is 2 seconds:
> !!!
> Success rate is 100 percent (3/3), round-trip min/avg/max = 24/42/56 ms
> Type escape sequence to abort.
> Sending 3, 100-byte ICMP Echos to 187.1.134.1, timeout is 2 seconds:
> !!!
> Success rate is 100 percent (3/3), round-trip min/avg/max = 32/40/52 ms
> Type escape sequence to abort.
> Sending 3, 100-byte ICMP Echos to 150.1.1.1, timeout is 2 seconds:
> !!!
> Success rate is 100 percent (3/3), round-trip min/avg/max = 48/57/72
> msinvalid command name "ping" ^
> % Invalid input detected at '^' marker.
>
>
> On Sat, Dec 18, 2010 at 11:23 AM, Wouter Prins <wp_at_null0.nl> wrote:
>
> > Hi Nathan,
> >
> > Put a # in front of the line you want it to ignore.
> >
> > On 18 December 2010 19:28, Nathan Pease <pease.nathan_at_gmail.com> wrote:
> > > Does anyone know how to add comments in a TCL script? I would like to
> do
> > > something like the following, but my routers don't like it...
> > >
> > > foreach address {
> > > 187.1.17.1
> > > 187.1.134.1
> > > 150.1.1.1
> > > !Begin Router 2 ips
> > > 204.12.1.2
> > > 187.1.235.2
> > > 150.1.2.2
> > > !Begin Router 3 ips
> > > 187.1.3.3
> > > 187.1.38.3
> > > 187.1.134.3
> > > 187.1.235.3
> > > 150.1.3.3
> > > } { ping $address re 3 }
> > >
> > >
> > > Blogs and organic groups at http://www.ccie.net
> > >
> > > _______________________________________________________________________
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Wouter Prins
> > wp_at_null0.nl
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Sat Dec 18 2010 - 12:25:48 ART
This archive was generated by hypermail 2.2.0 : Sat Jan 01 2011 - 09:37:49 ART