Re: Scripts to check routing tables

From: Anthony Sequeira (terry.francona@gmail.com)
Date: Thu Nov 24 2005 - 10:57:12 GMT-3


Hi Vivek!

Yes - you can use this process in the lab. Some like to do it - others do
not bother. Here are the instructions for using the script compliments of a
guy from this group named Tim.

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.

On 11/24/05, vivcw@hotmail.com <vivcw@hotmail.com> wrote:
>
> Hi Group,
> I have seen some mails which state the use of scripts to check the routing
> table, does anyone have these scripts. I would greately appreciate if you
> could share them . also can we use these in the lab ??
> thanks
> vivek
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Thu Dec 01 2005 - 09:12:07 GMT-3