RE: TCL script not executing, just returns to tcl shell

From: Tyson Scott (tscott@ipexpert.com)
Date: Thu Jul 24 2008 - 23:16:14 ART


Hobbs,

I don't know if you are using those prompts in it, if you are not it looks
right.

You look to be setting the variable and giving the command to perform. As
long as you are not

Try the following as well.

tclsh
foreach i {
150.1.1.1
150.1.2.2
150.1.3.3
150.1.4.4
150.1.6.6
150.1.7.7
150.1.8.8
150.1.9.9
150.1.10.10
} { ping $i repeat 3 source Loopback0 }

If it still fails try typing it in manually and see if it still fails.

Regards,
 
Tyson Scott - CCIE #13513 R&S and Security
Technical Instructor - IPexpert, Inc.

Telephone: +1.810.326.1444
Cell: +1.248.504.7309
Fax: +1.810.454.0130
Mailto: tscott@ipexpert.com
 
Join our free online support and peer group communities:
http://www.IPexpert.com/communities
 
IPexpert - The Global Leader in Self-Study, Classroom-Based, Video On Demand
and Audio Certification Training Tools for the Cisco CCIE R&S Lab, CCIE
Security Lab, CCIE Service Provider Lab , CCIE Voice Lab and CCIE Storage
Lab Certifications.

 

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Hobbs
Sent: Thursday, July 24, 2008 10:07 PM
To: Cisco certification
Subject: TCL script not executing, just returns to tcl shell

Hello,

Here is my script, does it look right? I'm basically copying an example from
the Internet:

Rack1R1#tclsh
Rack1R1(tcl)#foreach address {
+>150.1.1.1
+>150.1.2.2
+>150.1.3.3
+>150.1.4.4
+>150.1.6.6
+>150.1.7.7
+>150.1.8.8
+>150.1.9.9
+>150.1.10.10
+>} {ping $address
+>}

Rack1R1(tcl)#

Nothing happens, it just returns me to the tcl shell in about 10
seconds...if I ping from exec mode it displays fine. I am running 12.4 ADV
ENT IOS.

I though it might be a logging/display problem but the router returns me to
the shell too fast to even execute all the pings. Plus a normal exec mode
ping works fine.

Thanks,



This archive was generated by hypermail 2.1.4 : Mon Aug 04 2008 - 06:11:57 ART