ntc-templates
textfsm
ntc-templates | textfsm | |
---|---|---|
14 | 5 | |
1,037 | 1,081 | |
1.3% | 0.6% | |
9.3 | 2.9 | |
10 days ago | 3 months ago | |
Python | Python | |
GNU General Public License v3.0 or later | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ntc-templates
- Que estas leyendo/estudiando?
-
I want to copy output of playbook to file but format keep as it is in file
I'm not really sure if the IOS modules could really give you what you're looking for...at least not those ones. You may want to look into the cli_parse module with the ntc_templates parser (requires the python ntc_templates package). They have lots of predefined textfsm templates in their repository. IMO this is the easiest way to extract current-state information from a running device, assuming there is a template already available.
-
Software for manually mapping a network based on show cdp neighbors and show lldp neighbors output?
I've created basic 'network maps' (more of a graph theory term and related to computer networks) to show the relationship of BGP neighbors in a hub and spoke DMVPN network (~200 spokes with four hubs) and then I used a gradient color scheme to show which BGP neighbors were bouncing the most frequently over time with red being really bad and green being healthy and the gradient was the number of BGP bounces over a time period. Drawing the relationships between BGP peers would be the same as drawing the relationships between CDP neighbors. Use Pythons ntp-tempates package to parse CDP neighbour output and parameterize it, then create a list of all CDP neighbour mappings and feed that into graphviz as nodes (the switches) and edges (the CDP neighbor relationships). It'll take care of drawing it to PDF for you and you can change the different layout types and create groups of devices to place them closer to each other.
- TextFSM question with Cisco switches
-
Python question
I would use something like TextFSM with NTC Templates. However, this does mean you will run the show against the configuration components... show TACACS instead of show RUN.
- Parsing multiline with Textfsm
-
Help With TextFSM
Link to the template file straight from NTC Templates.
-
Getting a 'ipaddr' template error when running ansible script for ASA firewall
Learn about using NTC-templates to parse the data and store it as a registered variable. There’s a TextFSM template included for ASA show route
-
Python script for interfaces into a string / list... skip first line?
I haven't really decided if I should just download a bunch of templates from here: https://github.com/networktocode/ntc-templates
-
Parsing Version Code on Arista Switches Using Nornir
Template is here: https://github.com/networktocode/ntc-templates/blob/master/ntc_templates/templates/arista_eos_show_version.textfsm
textfsm
-
jc: Converts the output of popular command-line tools to JSON
Interesting project! But I expected them to be using textfsm as a first step parser. textfsm is heavily used to implement CLI parsing in networking devices.
https://github.com/google/textfsm
- Automate Your Network
-
Why Tcl?
TextFSM https://github.com/google/textfsm
are much better options if you need to do a /lot/ of parsing
-
Python question
I would use something like TextFSM with NTC Templates. However, this does mean you will run the show against the configuration components... show TACACS instead of show RUN.
-
Tool to export Cisco config to Excel?
Google's TextFSM is a good module for generic CLI output parsing. Obviously would work on "show run" as well. You can define your own templates.
What are some alternatives?
ttp - Template Text Parser
batfish - Batfish is a network configuration analysis tool that can find bugs and guarantee the correctness of (planned or current) network configurations. It enables network engineers to rapidly and safely evolve their network, without fear of outages or security breaches.
cisco-port-shutdown - Python Script used to shutdown access ports of Cisco IOS/IOS-XE devices with an downtime of 60 days or greater
netmiko - Multi-vendor library to simplify Paramiko SSH connections to network devices
ollama - Get up and running with Llama 3, Mistral, Gemma, and other large language models.
N2G - Need To Graph
wireguard-tools - Mirror only. Official repository is at https://git.zx2c4.com/wireguard-tools
netdisco - A web-based network management tool.
jc - CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
critical - A simple/minimal TCL interpreter, written in golang