Re: Script editing shortcut

From: brett spunt (bspunt_2000@yahoo.com)
Date: Sat Sep 20 2008 - 00:48:32 ART


Huan,

I think you answered your own question..

In notepad, you do a "ctrl h", or edit -> replace
and use the criteria for find -> 139

and replace with:

do ping 139

Then, do the same for 150..

I use find and replace in notepad constantly for building router/switch configurations quickly...especially when you've designed a consistent naming and consistent IP addressing scheme..and common configuration

Unless I'm misunderstanding your question?

___________________________________
Brett Michael Spunt, CCIE No. 12745
Senior Consultant
Convergence Practice, AT&T Consulting
http://www.att.com/consulting
Bs3757@att.com
Your world. Delivered.

--- On Fri, 9/19/08, Huan Pham <pnhuan@yahoo.com> wrote:

> From: Huan Pham <pnhuan@yahoo.com>
> Subject: Script editing shortcut
> To: "CCIE Lab" <ccielab@groupstudy.com>
> Date: Friday, September 19, 2008, 8:16 PM
> Hi GS,
>
> I find TCL script and Switch macro very usefull for
> end-to-end connectivity testing. I can quickly collect IP
> addresses, and turn them into TCL script.
>
> I however do not know a quick way to convert a list of IP
> (which can be directly used for TCL), e.g.
>
> 139.1.11.1
> 139.1.15.1
> 139.1.13.1
> 150.1.1.1
> 139.1.2.2
> 139.1.25.2
> 139.1.23.2
> 150.1.2.2
> ...
>
>
> into the following text, which can be used for a Switch
> Macro.
>
> do ping 139.1.11.1
> do ping 139.1.15.1
> do ping 139.1.13.1
> do ping 150.1.1.1
> do ping 139.1.2.2
> do ping 139.1.25.2
> do ping 139.1.23.2
> do ping 150.1.2.2
> ...
>
>
> Notepad must have a way to "Find and Replace" a
> new line character with a new string (in this case, it's
> "do ping ". If we can use Notepad for this purpus,
> it would save us a lot of time editing.
>
> Any suggestions please?
>
> Thanks,
>
> Huan
>
>
> 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



This archive was generated by hypermail 2.1.4 : Sat Oct 04 2008 - 09:26:19 ART