RE: BGP regexp - how to find x number or more occurrences of an

From: Joseph Brunner (joe@affirmedsystems.com)
Date: Wed Oct 22 2008 - 15:47:34 ARST


So hobbs,

Does something like this work for you?

route-views.oregon-ix.net>show ip bgp regexp ^[0-9]+_[0-9]+_[0-9]+$

until you would get the path you like to see?

(this would be any as path where the length = 3)

Or are you looking for some functionality like

Show ip bgp where as path = 107 107 107 107 107 107 107 107

(where 107 = any number so long as each as queried is the same, so in
essence the regexp would look for similarities of a given as path length?)
(looking for this now in my notes, perhaps someone can beat me to it?)

Thanks,

Joe

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Shaughn Smith
Sent: Wednesday, October 22, 2008 1:28 PM
To: Hobbs; Cisco certification
Subject: RE: BGP regexp - how to find x number or more occurrences of an AS
in the AS path

You can use the following

* = zero or more instances
+ = one or more instance

Then you could use the range functionality ie [] to determine what you
are going to match on

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Hobbs
Sent: Wednesday, October 22, 2008 7:12 PM
To: Cisco certification
Subject: BGP regexp - how to find x number or more occurrences of an AS
in the AS path

Suppose I wanted to find all routes that have the same AS number in a
row 8
or more times...is this possible using regexp?

The 8 could be any number (just not 0 or 1 which can use + or ?), I just
can't think of way to do 5 or more, 6 or more, etc...

thanks,

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Sat Nov 01 2008 - 15:35:22 ARST