From: Shine Joseph (shinepjoseph@iprimus.com.au)
Date: Thu Apr 10 2008 - 02:07:05 ART
I echo Joseph's comments.
While I was in the lab earlier this week, I used the following script. How
did I remember this? I made it a point to create this script time and again
while practising workbook labs. And it was so cool in the lab do this
script.
==========================================
foreach i {
1.1.1.1
2.2.2.2
} {
if { [regexp "(!!!)" [exec "ping $i timeout 1" ]] } { puts "$i" } else {
puts "$i **** failed ***" }
}
Courtesy Gregory Wendel
===========================================
Regards,
Shine
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Joseph Saad
Sent: Thursday, 10 April 2008 2:55 PM
To: Cisco certification
Subject: Re: Saving a TCL ping script to flash
Irrespective of the version in the lab, once you practise notepad for 3 to 4
times in using tclsh, you cannot replace it with anything else.
Consider the ease of modifying the script in notepad, ease reordering lines,
need to add IP's or remove them as your scenario evolves.
I believe any advantage in saving time in storing the tclsh will be
negligible when you include the overhead of modifying or addit to
yourscript.
Just my 2 cents.
Joseph
#20243.
On Thu, Apr 10, 2008 at 8:47 AM, John Jones <acer0001@gmail.com> wrote:
> Thanks for the responses. I'll have to take a look at that ASCII option to
> get the file to the flash. I'm not quite sure what version on SecCRT the
> lab
> uses and whether that option will be available (I've heard it's a pretty
> old
> version).
>
> John
>
> On Wed, Apr 9, 2008 at 12:27 AM, Robert Steeneken <r.steeneken@gmail.com>
> wrote:
>
> > In secure CRT you can you use the send ASCII option to send the
> > notepad file to the routers.
> >
> > Rob.
> >
> > On Wed, Apr 9, 2008 at 3:10 AM, John Jones <acer0001@gmail.com> wrote:
> > > Hey all -
> > >
> > > Is there a way to save a TCL script, such as a ping script, on a
> router
> > in a
> > > flash file and then call it in TCLSH mode to run? Or is cut-n-paste
> from
> > > Windows Notepad really the only way to do this. I guess I am looking
> for
> > > more efficiency when doing connectivity testing.
> > >
> > > John
> > >
> > >
> _______________________________________________________________________
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
>
>
> Pass the CCIE in six weeks, Guaranteed!
> http://www.certscience.com/CCIE
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Pass the CCIE in six weeks, Guaranteed!
http://www.certscience.com/CCIE
This archive was generated by hypermail 2.1.4 : Thu May 01 2008 - 08:25:50 ART