ntc-templates
batfish
ntc-templates | batfish | |
---|---|---|
14 | 11 | |
1,037 | 1,028 | |
1.3% | 0.5% | |
9.3 | 9.3 | |
10 days ago | 5 days ago | |
Python | Java | |
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
batfish
- Batfish – An open source network configuration analysis tool
-
Ask HN: How to Test Route Changes
Yep, Batfish: https://www.batfish.org/
Two examples: https://batfish.readthedocs.io/en/latest/notebooks/linked/in... , https://batfish.readthedocs.io/en/latest/notebooks/linked/pr...
- Version control for configs yes or no?
-
Network virtualization for testing
Check out Batfish. Haven't used it personally but it was on an episode of ProductPacket Pushers the other day and sounded interesting.
- Anyone doing automated testing of their network?
-
Python question
On another note you might want to take a look at batfish and see if it supports the data sets you want to run your compliance checks against.
- Log ALL of your terminal sessions!
-
Automating STIG checklists?
I have no relevant experience here, but have you considered building something around Batfish (https://www.batfish.org/)?
-
IT Pro Tuesday #177 - Network Config Analysis, MSI Tool, QoS Tip & More
Batfish is an open-source analysis tool that locates configuration errors on your existing or planned networks to help minimize outages and security breaches. Appreciated by ratulm, who explains, "It will accept your configs as input and allow you to run various analyses like which flows are/not permitted and shadowed rules."
- Batfish: An open source network configuration analysis tool
What are some alternatives?
ttp - Template Text Parser
NMapGUI - Advanced Graphical User Interface for NMap
cisco-port-shutdown - Python Script used to shutdown access ports of Cisco IOS/IOS-XE devices with an downtime of 60 days or greater
Oxidized - Oxidized is a network device configuration backup tool. It's a RANCID replacement!
textfsm - Python module for parsing semi-structured text into python tables.
netmiko - Multi-vendor library to simplify Paramiko SSH connections to network devices
centraldogma - Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2
N2G - Need To Graph
scapy - Scapy: the Python-based interactive packet manipulation program & library. Supports Python 2 & Python 3.
netdisco - A web-based network management tool.
IVRE - Network recon framework. Build your own, self-hosted and fully-controlled alternatives to Shodan / ZoomEye / Censys and GreyNoise, run your Passive DNS service, collect and analyse network intelligence from your sensors, and much more! Uses Nmap, Masscan, Zeek, p0f, etc.