Extracting BGP info with regular expressionsPosted by stretch in Tips and Tricks on Saturday, 10 May 2008 at 11:54 a.m. GMTA reader recently asked for some handy regular expressions for extracting useful information from BGP tables and outputs. Following are a few that I came up with. If you have any more please send them in or leave a comment! To find all subnets originating from AS 100 (AS path ends with 100): To find all subnets reachable via AS 100 (AS path begins with 100): To find all routes traversing AS 100: If you need to further filter the output, use Or, to find all subnets currently being reached via AS 100: Unfortunately, Cisco's implementation of regular expressions is rather crippled. For (much) more advanced functionality, consider using Tcl scripting. |
Navigation
Armory
Online Toolbox
|