Git Product home page Git Product logo

isrbackup's Introduction

isrbackup

Concurrently backup Cisco router configuration files

Name: isrbackup

isrbackup allows user to backup running configuration of multiple Cisco devices without having to log into them individually. It is able to concurrently access multiple devices, retreive their running config and save to an "isr_backups" folder.

Overview

Isrbackup is a Python script for accessing Cisco IOS devices. The devices must support netconf:base:1.0 and ssh access. This script employs the python ncclient and netmiko libraries

-Uses netmiko to configure netconf if required https://pypi.org/project/netmiko/

-Uses nccleint to retrieve routers running configuration https://pypi.org/project/ncclient/

Try the dockerized web gui version https://hub.docker.com/r/dozieu/collabtools-v01

How to use

Text file: You will need a text file listing the Ip address and hostname, seperated by space. Text file format will be one ip address hostname pair per line e.g "10.10.10.10 hostname". See sample file "samplefile.txt". File should be placed in same directory as isrbackup.py script. script can be run with CLI arguments, esle srcipt will default to CLI prompts to guide user.

usage: pub_isr_backup.py [-h] [-f str] [-p str]

Pings IP addresses entered or from file

optional arguments:
  -h, --help          show this help message and exit
  -f str, --file str  Input file - listing device name and ip address pairs
                      (default: None)
  -p str, --port str  netconf port number (default: None)

This script will prompt user for the following:

  • username and password: this single username and password must have enable priviliges on all devices on your text file

  • netconf port: you can set port you have already configured for netconf, or leave blank to default to 22

  • filename: name of your text file to use as input

  • "Will you need to enable netconf?": enter 'yes' script will configure netconf on the devices or 'no' if you have netconf already configured on devices

why netconf ? no particular reason other than that I was learning the two packages for automating Cisco devices, I am aware this can be done using netmiko alone.

isrbackup's People

Contributors

dozieu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.