Re: Comments in TCL script

From: Nathan Pease <pease.nathan_at_gmail.com>
Date: Sat, 18 Dec 2010 11:31:50 -0800

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
Received on Sat Dec 18 2010 - 11:31:50 ART

This archive was generated by hypermail 2.2.0 : Sat Jan 01 2011 - 09:37:49 ART