From: Manny Gonzalez (manny@xxxxxxx)
Date: Tue Jul 09 2002 - 22:03:34 GMT-3
Well, you should test it in your lab... but, here is a real world example...
this is from one of the ATT route servers: Notice in the first example, the "sh
ip bgp" outputs nothing. On the other hand, the second expression shows just
what it asked for. It is not exactly the same test, but a quick and reliable wa
y
to test REGEXP's without actually setting up a test lab :-)
############## route-server.ip.att.net ###############
######### AT&T IP Services Route Monitor ###########
---SNIP---
route-server>
route-server>sh ip bgp reg
route-server>sh ip bgp regexp ?
LINE A regular-expression to match the BGP AS paths
route-server>sh ip bgp regexp ^$
route-server>sh ip bgp regexp _14_
BGP table version is 3634762, local router ID is 12.0.1.28
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* 128.59.0.0 12.123.5.240 0 7018 1785 14 14 14
14 i
* 12.123.13.241 0 7018 1785 14 14 14
14 i
* 12.123.9.241 0 7018 1785 14 14 14
14 i
* 12.123.25.245 0 7018 1785 14 14 14
14 i
* 12.123.41.250 0 7018 1785 14 14 14
14 i
* 12.123.1.236 0 7018 1785 14 14 14
14 i
* 12.123.21.243 0 7018 1785 14 14 14
14 i
* 12.123.37.250 0 7018 1785 14 14 14
14 i
* 12.123.142.124 0 7018 1785 14 14 14
14 i
* 12.123.139.124 0 7018 1785 14 14 14
14 i
* 12.123.45.252 0 7018 1785 14 14 14
14 i
route-server>
route-server>
This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:36:24 GMT-3