⚡
FLASH SALE
— 30% OFF Yearly Network Automation Memberships! Use code
SALE30
at checkout. Offer ends August 20th.
➜ Sign up here
Training
Bootcamp
Courses
Tech Sessions
Resources
Blog
Tips
GitHub
YouTube
Newsletter
Playgrounds
Pricing
Sign In
Become Member
TTP Parser
Validate and test the parsing of your TTP templates
Tools
J2 Renderer
TTP Parser
TextFSM Parser
XPath Tester
Members Only
JMESPath Validator
JSON Schema Validator
Data Format Converter
TTP Template
######################################################################################################## CHECK ######################################################################################################## ## INPUT GBKNR-FB0-ACCSC-11#show running-config | include community public snmp-server community public ro 52 ## TEMPLATE <group name="snmp_public_community"> {{ output | re("snmp-server community public.*") | default("") }} </group> ## OUTPUT <doc> This template will check if there is an snmp community called public configured if configured --> It will return the full snmp-server community public * command if not configured --> It will return an "output" key containing an empty string Example Outputs: [ { "snmp_public_community": { "output": "snmp-server community public ro 52" } } ] [ { "snmp_public_community": { "output": "" } } ] </doc> ######################################################################################################## CHECK ######################################################################################################## ## INPUT HOST-NAME#show running-config | include community private snmp-server community private RW 68 ## TEMPLATE <group name="snmp_private_community"> {{ output | re("snmp-server community private.*") | default("") }} </group> ## OUTPUT <doc> This template will check if there is an snmp community called private configured if configured --> It will return the full snmp-server community private * command if not configured --> It will return an "output" key containing an empty string Example Outputs: [ { "snmp_private_community": { "output": "snmp-server community private RW 68" } } ] [ { "snmp_private_community": { "output": "" } } ] </doc> ######################################################################################################## CHECK ######################################################################################################## ## INPUT HOST-NAME#show running-config | include aaa authentication login default aaa authentication login default group NETMAN-TACACS local ## TEMPLATE <group name="aaa.local_tacacs_server_group"> {{ output | re("aaa authentication login default group \S+ local") | default("") }} </group> ## OUTPUT <doc> This template will check if there is a local TACACS server group configured and it will return the full command if configured --> It will return the local server group configured command if not configured --> It will return an "output" key containing an empty string Example Outputs: [ { "aaa": { "local_tacacs_server_group": { "output": "aaa authentication login default group NETMAN-TACACS local" } } } ] [ { "aaa": { "local_tacacs_server_group": { "output": "" } } } ] </doc> ######################################################################################################## CHECK ######################################################################################################## ## INPUT HOST#show running-config | include clock clock timezone GMT 0 0 clock summer-time BST recurring last Sun Mar 2:00 last Sun Oct 2:00 ## TEMPLATE <group name="time_zone"> {{ output | re("clock timezone .*") | strip() | default("") }} </group> ## OUTPUT <doc> This template will check if a standard timezone is configured if configured --> It will returnthe clock timezone command: if not configured --> It will return an "output" key containing an empty string Example Outputs: [ { "time_zone": { "output": "clock timezone GMT 0 0" } } ] [ { "time_zone": { "output": "" } } ] </doc>
0
/ 20000
Raw Text
DML
0
/ 20000
Result
[ { "aaa": { "local_tacacs_server_group": { "output": "" } }, "snmp_private_community": { "output": "" }, "snmp_public_community": { "output": "" }, "time_zone": { "output": "" } } ]
Parse
Share
Auto-Sync