RE: tcl scripts on Doc-Cd

From: George Cassels (glcassels3@nc.rr.com)
Date: Sun Jun 05 2005 - 22:41:07 GMT-3


All while in NMC-1 class I realized just how important it is to properly
exit tcl script. I use to just ctrl Z out until my set commands under
my route map kept giving me an error when trying to enter them. Make
sure you tclq out of your tcl script or you may end up in a world of
hurt in the lab.

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
ccie2be
Sent: Wednesday, May 18, 2005 9:00 AM
To: groupstudy@cconlinelabs.com; Group Study
Subject: RE: tcl scripts on Doc-Cd

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 : Wed Jul 06 2005 - 14:43:41 GMT-3