Jay I did some testing on the following models and IOS versions and the results
were the same. If I source from a non-existent loopback they error out on
"ping" - If I source from a valid loopback they work OK
(C3640-JS-M), Version 12.4(25d)
(C3725-ADVIPSERVICESK9-M), Version 12.4(25b)
(C2600-ADVENTERPRISEK9-M), Version 12.4(25d)
>From invalid source:
R1(tcl)#foreach loopback {
+>(tcl)#200.0.0.1
+>(tcl)#} { ping $loopback so lo1 re 2}
invalid command name "ping" ^
% Invalid input detected at '^' marker.
>From valid source:
R1(tcl)#foreach loopback {
+>(tcl)#200.0.0.1
+>(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
!!
That's why we figured lo1 didn't exist on your 3800... Very odd indeed.
Steve
-----Original Message-----
From: Jay McMickle [mailto:[email protected]]
Sent: Tuesday, April 19, 2011 5:52 AM
To: Di Bias, Steve
Cc: Marko Milivojevic; IPExpert Online
Subject: Re: [OSL | CCIE_RS] TCLSH on different platforms
Yes, it's defined. On my 2800's, when I source a loopback that isn't there, it
still runs, but states it's not defined.
With the 3800, it stops on the ping command.
Regards,
Jay McMickle- CCNP,CCSP,CCDP
Sent from my iPhone
http://mycciepursuit.wordpress.com
On Apr 18, 2011, at 11:39 PM, "Di Bias, Steve" <[email protected]> wrote:
> That would be my question as well per my test results in my last response.
> When I used lo1 it failed because I didn't have lo1 defined on my router,
> once I switched it to lo0 the issue went away.
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Marko Milivojevic
> Sent: Monday, April 18, 2011 9:05 PM
> To: Jay McMickle
> Cc: IPExpert Online
> Subject: Re: [OSL | CCIE_RS] TCLSH on different platforms
>
> Do you have Loopback1 configured on your 3800?
>
> --
> Marko Milivojevic - CCIE #18427
> Senior Technical Instructor - IPexpert
>
> FREE CCIE training: http://bit.ly/vLecture
>
> Mailto: [email protected]
> Telephone: +1.810.326.1444
> Web: http://www.ipexpert.com/
>
> On Mon, Apr 18, 2011 at 22:29, 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.
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