Git Product home page Git Product logo

ldpush's Introduction

A cross-vendor configuration distribution tool. This is useful for pushing
ACLs or other pieces of configuration to network elements. It can also be used
to send commands to a list of devices and gather the results.

Install
-------

To run this tool you will need to install several modules not part of the
Python standard library, all of which should be easily installable via pip,
easy_install, or distribution package:

  pexpect
  paramiko
  progressbar
  gflags

Examples
--------

Push the configurations in /tmp/foo and /tmp/bar to two devices, 192.168.192.1
and router1.foo.com. Push cannot guess what vendor is in use, but you could
change the default vendor flag at the top if you only use one vendor. This
example forces the use of the username 'dude' rather than your own.

  ./push.py --targets 192.168.192.1,router1.foo.com --vendor ios --user dude \
  /tmp/foo /tmp/bar

Send a 'show version' command to the list of devices. Output will be sprayed to
STDOUT. Target names must be resolvable on your machine.

  ./push.py --targets r1,r2,r3,r4 --vendor ios --command 'show version'

Use filenames to determine the name of the target device. The string file name
must be resolvable.

  ./push.py --devices_from_filenames --vendor ios devicefiles/*

ldpush's People

Contributors

morrowc avatar wkumari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ldpush's Issues

IOS-XR returns a module error

What steps will reproduce the problem?

  1. git clone today
  2. running python 2.7.6
  3. tested IOS, show version works great
  4. tested IOS-XR, show version fails

What is the expected output? What do you see instead?

I see this:

cbyrne@ubi ~/ldpush $ ./push.py --targets brcfri01 --vendor ciscoxr --command 'show version' --user cbyrne
Traceback (most recent call last):
File "./push.py", line 319, in
main(sys.argv)
File "./push.py", line 225, in main
pusher = CheckFlags(files, class_path)
File "./push.py", line 209, in CheckFlags
pusher = eval(class_path)
File "", line 1, in
AttributeError: 'module' object has no attribute 'CiscoxrDevice'
cbyrne@ubi ~/ldpush $

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.