From: ccie2be (ccie2be@nyc.rr.com)
Date: Wed May 18 2005 - 10:59:44 GMT-3
Hey Tony,
Thanks for getting back to me.
I use, tclquit, to exit out of tcl mode and that seems to work fine. Is
there a better way?
BTW, do I have to memorize this script or can I find the needed info on the
Doc-CD?
I know, there's not much to memorize but sometimes my brain craps out on me
and I need a memory jogger.
TIA, Tim
-----Original Message-----
From: Tony Schaffran [mailto:groupstudy@cconlinelabs.com]
Sent: Wednesday, May 18, 2005 9:43 AM
To: 'ccie2be'
Subject: RE: tcl scripts on Doc-Cd
What is the correct way to exit the TCL script? I have found that it screws
with my configs sometimes if I have not exited.
Thank you.
Tony Schaffran
Network Analyst
CCIE #11071
CCNP, CCNA, CCDA,
NNCDS, NNCSS, CNE, MCSE
www.cconlinelabs.com
Your #1 choice for online Cisco rack rentals.
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
ccie2be
Sent: Wednesday, May 18, 2005 6:26 AM
To: Group Study
Subject: tcl scripts on Doc-Cd
Hi guys,
Being that I don't trust my memory, is basic tcl scripting documented
anywhere on the Doc-cd?
Also, I was playing around with tcl scripts yesterday and noticed some
strange things.
If I had a syntax error, for example, a needed space was needed or missing
and as a result the script bombed, correcting the script didn't seem to
help.
What I had to do was exit tcl, re-enter tcl and re-enter the script from
scratch. Is there a better way to go?
I also noticed that having or missing spaces could cause problems. As I
know zilch about tcl except for what's been posted on GS and some public
write-ups from various lab prep vendors, could someone offer some guidelines
on where spaces are required or forbidden in a basic ping script?
The script I was using was similar to the following:
tclsh
foreach address {
158.7.1.1
158.7.123.1
150.7.1.1
158.7.26.2
158.7.123.2
150.7.2.2
158.7.38.3
158.7.37.3
158.7.123.3
158.7.0.3
150.7.3.3
192.10.7.4}{ping $address}
In the above script, I would very appreciate if someone could point out
where spaces belong or don't belong.
TIA, Tim
This archive was generated by hypermail 2.1.4 : Fri Jun 03 2005 - 10:11:58 GMT-3