RE: Script editing shortcut

From: Joseph Brunner (joe@affirmedsystems.com)
Date: Sat Sep 20 2008 - 03:28:02 ART


You won't have excel in the lab.

Try getting used to making a notepad with "do ping"

A bunch of times each on one line... then you can just paste in ip's as you
collect them from the output of show ip int brief | ex una

Don't put too much valuable time in fancy scripts... its not a IIS 7
powershell test! If it takes you more than 5 minutes to setup something you
can paste into a switch macro- you're doing it wrong!

-J

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Fitter
Sent: Saturday, September 20, 2008 2:00 AM
To: Huan Pham
Cc: CCIE Lab
Subject: Re: Script editing shortcut

Use Microsoft Excel for easier making complicated commands then save as text

On Sat, Sep 20, 2008 at 10:16 AM, Huan Pham <pnhuan@yahoo.com> wrote:
> 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