[c-nsp] BGP regular expression
Ramcharan, Vijay A
vijay.ramcharan at verizonbusiness.com
Thu Aug 28 13:20:24 EDT 2008
Try,
route-server.phx1>sh ip bgp regexp _3356_(.*)?_11794_|_11794_(.*)?_3356_
BGP table version is 300231760, local router ID is 67.17.81.28
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* i12.168.208.0/24 67.17.64.89 100 200 0 3356 7029
11794 i
* i 67.17.64.89 100 200 0 3356 7029
11794 I
...
Someone may have a more elegant pattern but the above should work
(test/tweak and use your own AS numbers obviously).
Vijay Ramcharan
-----Original Message-----
From: cisco-nsp-bounces at puck.nether.net
[mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of Chintan Shah
Sent: August 28, 2008 12:22
To: cisco-nsp at puck.nether.net
Subject: [c-nsp] BGP regular expression
Hi,
I want to match all routes that have traversed to AS 111 and AS 222. The
important point is that they can be in any order/sequence. start end
between, or any one after the other..
Whats reg-expression to use.. how will it look like..
Regards,
Chintan
_______________________________________________
cisco-nsp mailing list cisco-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
More information about the cisco-nsp
mailing list