RE: Scripts to check routing tables

From: Gustavo Novais (gustavo.novais@novabase.pt)
Date: Thu Nov 24 2005 - 14:38:30 GMT-3


Just one or two optimizations.

1- If you do show ip alias instead of s hip int brief you get all IP's
configured on a router on a more tidy way.

alf1tc#sh ip int brief
Interface IP-Address OK? Method Status
Protocol
GigabitEthernet0/0 213.30.42.108 YES NVRAM up
up
GigabitEthernet0/1 10.2.36.28 YES NVRAM up
up
GigabitEthernet0/2 11.0.0.2 YES NVRAM administratively
down down
GigabitEthernet0/2.1 unassigned YES unset administratively
down down
Loopback0 213.30.93.139 YES manual up
up
Loopback1 213.30.93.140 YES manual up
up
alf1tc#sh ip alias
Address Type IP Address Port
Interface 11.0.0.2
Interface 213.30.93.140
Interface 213.30.93.139
Interface 10.2.36.28
Interface 213.30.42.108

AND using secureCRT (the terminal used in Brussels) if you press the ALT
key before selecting something you go to column mode allowing you to
only select the IP's which are what matters.

This can save you about 5 minutes in doing your TCL script :)

HTH

Gustavo Novais

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Anthony Sequeira
Sent: quinta-feira, 24 de Novembro de 2005 13:57
To: vivcw@hotmail.com
Cc: ccielab@groupstudy.com
Subject: Re: Scripts to check routing tables

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
>
>



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