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
TextFSM Template
Value Required INTERFACE ([\w\d\/]+) Start ^${INTERFACE}\s+\d+\s+(trunking|trnk-bndl).*$$ -> Record
0
/ 20000
Raw Text
-------------------------------------------------------------------------------- Port Native Status Port Vlan Channel -------------------------------------------------------------------------------- Eth1/1 1 trnk-bndl Po1 Eth1/8 1 trunking -- Eth2/1 1 trnk-bndl Po1 Po1 1 trunking -- -------------------------------------------------------------------------------- Port Vlans Allowed on Trunk -------------------------------------------------------------------------------- Eth1/1 999,1938,2938 Eth1/8 1938 Eth2/1 999,1938,2938 Po1 999,1938,2938 -------------------------------------------------------------------------------- Port Vlans Err-disabled on Trunk -------------------------------------------------------------------------------- Eth1/1 none Eth1/8 none Eth2/1 none Po1 none -------------------------------------------------------------------------------- Port STP Forwarding -------------------------------------------------------------------------------- Eth1/1 1938,2938 Eth1/8 none Eth2/1 1938,2938 Po1 1938,2938 -------------------------------------------------------------------------------- Port Vlans in spanning tree forwarding state and not pruned -------------------------------------------------------------------------------- Eth1/1 1938,2938 Eth1/8 none Eth2/1 1938,2938 Po1 1938,2938 -------------------------------------------------------------------------------- Port Vlans Forwarding on FabricPath -------------------------------------------------------------------------------- Eth1/1 none Eth1/8 none Eth2/1 none Po1 none
0
/ 20000
Result
[ { "INTERFACE": "Eth1/1" }, { "INTERFACE": "Eth1/8" }, { "INTERFACE": "Eth2/1" }, { "INTERFACE": "Po1" } ]
Parse
Share
Auto-Sync