Re: Script editing shortcut

From: Huan Pham (pnhuan@yahoo.com)
Date: Sat Sep 20 2008 - 01:03:04 ART


Hi Brett,

Thanks. It's a very good idea ;), especially most of the IP will start with the same Major Network prefix. This will save much time pasting the string manually. Only need to do it manually for those IP addresses not belonging to the main prefix (e.g. subnet with backbone routers, or subnets advertized by BB).

I did not think of this before. I was just looking at a way to find the "new line" character in Notepad, but have not found one. If there's a way, then the conversion can be done with a single find/replace, without any manual editing.

Your tip will save 90% of the manual editing work anyway. Thanks again.

Cheers,

--- On Sat, 9/20/08, brett spunt <bspunt_2000@yahoo.com> wrote:

> From: brett spunt <bspunt_2000@yahoo.com>
> Subject: Re: Script editing shortcut
> To: "CCIE Lab" <ccielab@groupstudy.com>, "Huan Pham" <pnhuan@yahoo.com>
> Date: Saturday, September 20, 2008, 1:48 PM
> 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