[c-nsp] Scripting Multiple Pings?

Tom Lijnse tom.lijnse.cisco.nsp at gmail.com
Mon Aug 1 03:30:49 EDT 2005


Hi Austin,

TCL has been available for quite a while on the voice enabled routers
(which includes the 2600s, 3600s and 3700s used in the lab).
So even if they run the typical 12.2T version used in the lab you
should be able to do something along the lines of:

tclsh
foreach IP {
1.1.1.1
2.2.2.2
3.3.3.3
} {ping $IP}
tclquit

Hope this helps,

Tom Lijnse

On 7/29/05, Rodney Dunn <rodunn at cisco.com> wrote:
> Hope the routers are running 12.3(14)T or later
> and use EEM with a TCL script. ;)
> 
> On Fri, Jul 29, 2005 at 11:10:57AM -0400, Austin McKinley wrote:
> > Thanks for all the responses.
> >
> > What I'm *really* trying to do is come up with a way to do this on the
> > CCIE lab exam. I'm pretty sure Cisco doesn't provide anything besides a
> > telnet client and windows notepad for the exam, so all of the excellent
> > suggestions in this thread won't help too much. Any ideas?
> >
> > Austin
> >
> > Austin McKinley wrote:
> >
> > >I'd like to have a text file, full of commands like:
> > >
> > >ping 1.1.1.1
> > >ping 2.2.2.2
> > >...
> > >...
> > >...
> > >
> > >and so on. Then I could test connectivity to all the interfaces I'm
> > >concerned about by pasting this text file, and looking at the results.
> > >The problem is that only the first ping runs, because the others all get
> > >thrown to the command line while the first ping runs. Anyone know a way
> > >around this behavior, without using expect/perl?
> > >
> > >Austin
> > >
> > >_______________________________________________
> > >cisco-nsp mailing list  cisco-nsp at puck.nether.net
> > >https://puck.nether.net/mailman/listinfo/cisco-nsp
> > >archive at http://puck.nether.net/pipermail/cisco-nsp/
> > >
> > >
> > >
> >
> >
> > _______________________________________________
> > cisco-nsp mailing list  cisco-nsp at puck.nether.net
> > https://puck.nether.net/mailman/listinfo/cisco-nsp
> > archive at http://puck.nether.net/pipermail/cisco-nsp/
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>



More information about the cisco-nsp mailing list