Re: How to create TCLSH for "ping x.x.x.x so lo0" ??

From: Ganesh Ramalingam <c.ganeshram_at_gmail.com>
Date: Fri, 17 Jul 2009 15:12:56 +0530

Hi Bai,

Try

foreach i {
x.x.x.x
} { puts [exec "ping $i source loopback0"] }

Thanks
Ganesh

On Fri, Jul 17, 2009 at 3:00 PM, Bai, Qing <Qing.Bai_at_flukenetworks.com>wrote:

> Hi Group,
>
> I have a question on the tclsh feature on Cisco router. I would like to
> know how to write a script on router to test the ping with source of
> loopback interface. I tried a few times, but no success...Please help if
> anybody know how to do it. Thanks.
>
> Best regards,
> Bai
>
>
>
> Please be advised that this email may contain confidential information.
> If you are not the intended recipient, please do not read, copy or
> re-transmit this email. If you have received this email in error,
> please notify us by email by replying to the sender and by telephone
> (call us collect at +1 202-828-0850) and delete this message and any
> attachments. Thank you in advance for your cooperation and assistance.
>
> In addition, Danaher and its subsidiaries disclaim that the content of
> this email constitutes an offer to enter into, or the acceptance of,
> any
> contract or agreement or any amendment thereto; provided that the
> foregoing disclaimer does not invalidate the binding effect of any
> digital or other electronic reproduction of a manual signature that is
> included in any attachment to this email.
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Fri Jul 17 2009 - 15:12:56 ART

This archive was generated by hypermail 2.2.0 : Sat Aug 01 2009 - 13:10:22 ART