Re: TCL Script - reachability to BGP networks

From: Tom Kacprzynski <tom.kac_at_gmail.com>
Date: Mon, 19 Dec 2011 23:14:42 -0600

Keller,
For me it's a lot easier to generate a tcl script than a macro, but you
have a point, if you have to create a macro for a switch why not just use
that for the routers.

The TCL scrip i'm using is really simple, just to save me time:

foreach i {
150.1.1.1
187.1.13.9
} { ping $i re 2 timeout 1 }

.. basically all i have to remember is:

foreach i {

} { ping $i }

Either way if you use a tcl or a macro, how do you generate the IP
addresses for the BGP advertised routes in a quick efficient matter?

Thanks

Tom

On Mon, Dec 19, 2011 at 11:08 PM, Keller Giacomarro <keller.g_at_gmail.com>wrote:

> On a somewhat related note, why does everyone advocate learning TCL for
> the exam? I've been doing my studies with nothing but ping macros and find
> it to be intuitive, easy to change, and fast to setup. Additionally, you
> can use the same macros for both routers and switches.
>
> Is there an advantage to TCL for CCIE purposes that I'm missing?
>
> Keller Giacomarro
> keller.g_at_gmail.com
>
>
> On Mon, Dec 19, 2011 at 11:04 PM, Tom Kacprzynski <tom.kac_at_gmail.com>wrote:
>
>> Hello Everyone,
>> I have a quick question. Trying to optimize how I generate the
>> reachability
>> tcl script for the lab (the quicker I can create the script the more time
>> i'll have troubleshooting any issue). For directly connected networks it's
>> pretty easy.. just do sh ip alias on each router:
>>
>> Rack1R2#sh ip alias
>> Address Type IP Address Port
>> Interface 150.1.2.2
>> Interface 187.1.235.2
>> Interface 204.12.1.2
>>
>> ...using alt and mouse selection, copy only the addresses into the tcl
>> script.
>>
>> But what* I'm looking for* is a nice quick way to get all of the active
>> bgp
>>
>> routes in a similar way without doing much formatting, such as duplicate
>> or
>> tabs or weird spaces.
>>
>> What does everyone else do to check advertised routes reachability? Is
>> there a nice BGP command that could be used with regex or some show ip cef
>> ... command.
>>
>> Thank you in advance for any help.
>>
>>
>> Tom
>>
>>
>> Blogs and organic groups at http://www.ccie.net
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Mon Dec 19 2011 - 23:14:42 ART

This archive was generated by hypermail 2.2.0 : Sun Jan 01 2012 - 08:27:00 ART