Jay, on a 3725 running (C3725-ADVIPSERVICESK9-M), Version 12.4(25b) I ran your 
tcl script and got the same error, but then I realized my loopback was lo0 and 
not lo1 so I modified it and it worked like a champ. 

You can see the output below. 

Can you try this tcl script instead and see if it works

foreach loops { 
200.0.0.1
200.0.0.2
200.0.0.4
200.0.0.5
200.0.0.6
200.0.0.7
200.0.0.8
200.0.0.9 
} {puts [exec "ping $loops" source lo1 re 2]}

Output from my tests...

R1(tcl)#foreach loopback {
+>(tcl)#200.0.0.1
+>(tcl)#200.0.0.2
+>(tcl)#200.0.0.4
+>(tcl)#200.0.0.5
+>(tcl)#200.0.0.6
+>(tcl)#200.0.0.7
+>(tcl)#200.0.0.8
+>(tcl)#200.0.0.9 
+>(tcl)#} { ping $loopback so lo1 re 2}
invalid command name "ping"                            ^
% Invalid input detected at '^' marker.


R1(tcl)#foreach loopback {
+>(tcl)#200.0.0.1
+>(tcl)#200.0.0.2
+>(tcl)#200.0.0.4
+>(tcl)#200.0.0.5
+>(tcl)#200.0.0.6
+>(tcl)#200.0.0.7
+>(tcl)#200.0.0.8
+>(tcl)#200.0.0.9 
+>(tcl)#} { ping $loopback so lo0 re 2}

Type escape sequence to abort.
Sending 2, 100-byte ICMP Echos to 200.0.0.1, timeout is 2 seconds:
Packet sent with a source address of 200.0.0.1 
!!

Cheers!

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Jay McMickle
Sent: Monday, April 18, 2011 8:10 PM

To: J D'Silva
Cc: IPExpert Online
Subject: Re: [OSL | CCIE_RS] TCLSH on different platforms

Understood, but it seems to get hung up on the 'ping' command.

Anyone else have 3800's in their racks and can test?  If successful, what IOS 
are you using?

What is the recommended IOS for the routers (as I know the switches are 12.2.46 
for dot1x commands).

Thanks, Experts and Experts to be.
 
 
Regards,
Jay McMickle- CCNP, CCSP, CCDP, MCSE
http://mycciepursuit.wordpress.com/





________________________________
From: J D'Silva <[email protected]>
To: Jay McMickle <[email protected]>
Cc: IPExpert Online <[email protected]>
Sent: Mon, April 18, 2011 9:56:03 PM
Subject: Re: [OSL | CCIE_RS] TCLSH on different platforms

I'm not sure why that works at all...  The syntax is off right at the very 
end.  
There should be a space between the 2 and the }




On Mon, Apr 18, 2011 at 8:29 PM, Jay McMickle <[email protected]> wrote:

Quick question- is tclsh not the same across platforms?  My tclsh works on my
>2800, but the same script copied and pasted doesn't work on my 3800's.  They 
are
>both running Advanced Enterprise 12.4(24)T4 code.
>
>2811:
>R6(tcl)#foreach loopback {
>+>(tcl)#200.0.0.1
>+>(tcl)#200.0.0.2
>+>(tcl)#200.0.0.4
>+>(tcl)#200.0.0.5
>+>(tcl)#200.0.0.6
>+>(tcl)#200.0.0.7
>+>(tcl)#200.0.0.8
>+>(tcl)#200.0.0.9
>+>(tcl)#} { ping $loopback so lo1 re 2}
>Type escape sequence to abort.
>Sending 2, 100-byte ICMP Echos to 200.0.0.1, <output omitted>
>
>3825/3845:
>R1(tcl)#foreach loopback {
>+>(tcl)#200.0.0.1
>+>(tcl)#200.0.0.2
>+>(tcl)#200.0.0.4
>+>(tcl)#200.0.0.5
>+>(tcl)#200.0.0.6
>+>(tcl)#200.0.0.7
>+>(tcl)#200.0.0.8
>+>(tcl)#200.0.0.9
>+>(tcl)#} { ping $loopback so lo1 re 2}
>invalid command name "ping"                            ^
>% Invalid input detected at '^' marker.
>
>Thanks for your time! 
> 
>Regards,
>Jay McMickle- CCNP, CCSP, CCDP, MCSE
>http://mycciepursuit.wordpress.com/
>_______________________________________________
>For more information regarding industry leading CCIE Lab training, please 
>visit 
>www.ipexpert.com
>
>Are you a CCNP or CCIE and looking for a job? Check out 
>www.PlatinumPlacement.com
>
_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Are you a CCNP or CCIE and looking for a job? Check out 
www.PlatinumPlacement.com


UHS Confidentiality Notice:  This e-mail message, including any attachments, is 
for the sole use of the intended recipient (s) and may contain confidential and 
privileged information.  Any unauthorized review, use, disclosure or 
distribution of this information is prohibited.  If this was sent to you in 
error, please notify the sender by reply e-mail and destroy all copies of the 
original message.
_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Are you a CCNP or CCIE and looking for a job? Check out 
www.PlatinumPlacement.com

Reply via email to