Coder Social home page Coder Social logo

configcollector's Introduction

ConfigCollector

This tool collects configuration file of multiple routers.

Support router OS

  • IOS
  • IOS-XE
  • IOS-XR
  • NX-OS
  • ASA
  • JUNOS

Install

Install using pip.

pip install configcollector

How to use

Use following format.

configcollector -i [inventory_file] -o [output_directory]
  • inventory_file

    Router infomation file using Json format. The router OS is select from the below list.

    * IOS
    * IOS-XE
    * IOS-XR
    * NX-OS
    * ASA
    * JUNOS
    

    Defalt : /etc/configcollector/inventory.json

    Sample inventory file

    [
      {
          "hostname" : "IOS-Sample",
          "username" : "USER",
          "password" : "PASSWORD",
          "ipv4"     : "192.168.0.1",
          "os"       : "IOS"
      },
      {
          "hostname" : "ASA-Sample",
          "username" : "USER",
          "password" : "PASSWORD",
          "enable"   : "ENABLE",
          "ipv4"     : "192.168.0.5",
          "os"       : "ASA"
      },
      {
          "hostname" : "JUNOS-Sample",
          "username" : "USER",
          "password" : "PASSWORD",
          "ipv4"     : "192.168.0.6",
          "os"       : "JUNOS"
      }
    ]
    
  • output_directory

    The directory placed router configuration output files by ConfigCollector.

    Defalt : Current directory

Example

Example to get router config files using ConfigCollector.

% mkdir router_config

% configcollector -i sample_routers.json -o router_config/

Accessing router: router1...
Writing output file "router_config/router1"...
Success : "router_config/router1"!
Accessing router: router2...
Writing output file "router_config/router2"...
Success : "router_config/router2"!
Accessing router: router3...
Writing output file "router_config/router3"...
Success : "router_config/router3"!

% ls router_config
router1.txt  router2.txt  router3.txt

% less router1.txt

show configuration | no-more
## Last commit: 2015-05-01 17:00:00 JST by user1
version x.x.x;
system {
    host-name router1;
    time-zone Asia/Tokyo;
(snip)

configcollector's People

Contributors

mkouhei avatar taijiji avatar sig9org avatar

Watchers

James Cloos 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.