Training
Bootcamp
Courses
Tech Sessions
Resources
Blog
Tips
GitHub
YouTube
Newsletter
Playgrounds
Pricing
Sign In
Become Member
TextFSM Parser
Validate and test the parsing of your TextFSM templates
Tools
J2 Renderer
TTP Parser
TextFSM Parser
XPath Tester
Members Only
JMESPath Validator
JSON Schema Validator
Data Format Converter
Help Us Improve
TextFSM Template
Value Filldown ROUTER_ID (\S+) Value Filldown LOCAL_AS (\d+) Value Filldown VRF ([A-Za-z0-9\-_]+) Value Required BGP_NEIGH (\d+?\.\d+?\.\d+?\.\d+?) Value NEIGH_AS (\d+) Value MSG_RCVD (\d+) Value MSG_SENT (\d+) Value IN_QUEUE (\d+) Value OUT_QUEUE (\d+) Value UP_DOWN (\S+) Value STATE_PFXRCD (\S+?\s+\S+?|\S+?) Start ^BGP.+VRF\s+${VRF},? ^BGP\s+router\s+identifier\s+${ROUTER_ID},\s+[Ll]ocal\s+[Aa][Ss]\s+number\s+${LOCAL_AS} ^Neighbor\s+V\s+AS\s+MsgRcvd\s+MsgSent\s+TblVer\s+InQ\s+OutQ\s+Up/Down\s+State/PfxRcd\s*$$ ^${BGP_NEIGH}\s+\d+\s+${NEIGH_AS}\s+${MSG_RCVD}\s+${MSG_SENT}\s+\d+\s+${IN_QUEUE}\s+${OUT_QUEUE}\s+${UP_DOWN}\s+${STATE_PFXRCD}\s*$$ -> Record ^${BGP_NEIGH}\s+\d+\s+${NEIGH_AS} ^\s+${MSG_RCVD}\s+${MSG_SENT}\s+\d+\s+${IN_QUEUE}\s+${OUT_QUEUE}\s+${UP_DOWN}\s+${STATE_PFXRCD}\s*$$ -> Record # ignoring all lines ending in bytes of memory ^.*\s+bytes\s+of\s+memory ^BGP\s+table\s+version ^\d+\s+network\s+entries ^BGP\s+attribute\s+entries ^BGP\s+community\s+entries ^\d+\s+(received|identical) ^BGP\s+activity ^\d+\s+networks\s+peaked\s+at ^\s*$$
Raw Text
BGP summary information for VRF default, address family L2VPN EVPN BGP router identifier 10.1.200.20, local AS number 64700 BGP table version is 999, L2VPN EVPN config peers 2, capable peers 1 819 network entries and 837 paths using 205260 bytes of memory BGP attribute entries [368/132480], BGP AS path entries [7/74] BGP community entries [0/0], BGP clusterlist entries [4/16] Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.1.200.2 4 64700 228 26 999 0 0 00:22:18 356 10.1.200.3 4 64700 0 0 0 0 0 00:24:01 Idle Neighbor T AS PfxRcd Type-2 Type-3 Type-4 Type-5 10.1.200.2 I 64700 356 130 0 0 226 10.1.200.3 I 64700 Idle 0 0 0 0
Result
[ { "ROUTER_ID": "10.1.200.20", "LOCAL_AS": "64700", "VRF": "default", "BGP_NEIGH": "10.1.200.2", "NEIGH_AS": "64700", "MSG_RCVD": "228", "MSG_SENT": "26", "IN_QUEUE": "0", "OUT_QUEUE": "0", "UP_DOWN": "00:22:18", "STATE_PFXRCD": "356" }, { "ROUTER_ID": "10.1.200.20", "LOCAL_AS": "64700", "VRF": "default", "BGP_NEIGH": "10.1.200.3", "NEIGH_AS": "64700", "MSG_RCVD": "0", "MSG_SENT": "0", "IN_QUEUE": "0", "OUT_QUEUE": "0", "UP_DOWN": "00:24:01", "STATE_PFXRCD": "Idle" } ]
Parse
Share
Auto-Sync