RE: TCL Script for Testing the Connectivity

From: ccie2be (ccie2be@nyc.rr.com)
Date: Fri May 20 2005 - 12:49:06 GMT-3


Noble,

By any chance, did you search the GS archives?

I suspect you can find all you seek if you do.

But, here's the basic process:

First, go to each router and do a show ip int brief
Then copy that output to your notepad.
Then edit it so you have only the ip addresses listed 1 per line.

Then add above the first ip address, foreach address {

Then add, next to the last ip address, }{ping $address}

so that your script looks something like this:

foreach address {
158.7.45.5
150.7.4.4
158.7.5.5
158.7.55.5
158.7.0.5
150.7.5.5
158.7.26.6
158.7.67.6
150.7.6.6}{ping $address}

Now, when you're ready to run your script, type tcl to get into tcl mode.

Now, copy your script from notepad into the router and hit enter.

When you're done, leave tcl mode by typing, tclquit.

Notice that this process doesn't address routes learned from the Backbone
routers. But, if you want you can use other show commands to get those ip
addresses.

HTH, Tim

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of T.
N. Noble
Sent: Friday, May 20, 2005 10:52 AM
To: ccielab@groupstudy.com
Subject: TCL Script for Testing the Connectivity

Hello,
 
I am very new to the concept of TCL scripting for testing the connectivity.
Can anybody give some basic guidance / URL that helps me in learning the
same?
 
Thanks,
 
Noble



This archive was generated by hypermail 2.1.4 : Fri Jun 03 2005 - 10:11:59 GMT-3