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

From: Rizwan Iqbal <riz.iqbal82_at_gmail.com>
Date: Fri, 17 Jul 2009 16:38:26 +0300

it's very easy man. below is perfect example. I hope it will work for u also
:).Just copy and paste this script

Rack17R1#tclsh foreach VAR {
1.2.20.1
50.2.20.254
20.20.5.5
+>} { puts [exec "ping $VAR"] }

regards
riz

On Fri, Jul 17, 2009 at 12:30 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 - 16:38:26 ART

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