This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

Nornir - Archiving Telemetry

This code is based off my video: "Nornir (Python Network Automation) | Archiving Telemetry", which can be found here

Personal thank you and shout out to Stuart Clark @bigevilbeard for his contributions and help!

Dependencies

pip3 install nornir

Use Case Description

This script uses Nornir to collect a selection of chosen "show commands" in order to gather network statistics. The script will first create an archive folder named "config-archive", and within that a range of date-stamped subfolders - one for every day the script is deployed. Inside each day there will exist an individual folder created for every show command entered containing its output - allowing network administrators to easily document, reference and compare the network's health and performance on a day-by-day basis. The script can be easily edited to include the show commands of your choice, as shown in the video demonstration.

Once Nornir is installed, you can execute the script by simply entering:

python3 archive-shows.py

teaser image

About me

I am a Youtube content creator and Cybersecurity & Networks student with a strong interest in NetDevOps, Automation & Network Programmability.

Follow me on Twitter!

Thank you!

View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Programming Languages

    Python
  • License

    BSD 3-Clause "New" or "Revised" License

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.