Giter VIP home page Giter VIP logo

network_interface's Introduction

A network interface for executing ad-hoc show commands across groups of devices based on platform, role, site, their combination, or a list of devices.
The ouput is saved in a site- & time-stamped directory within the output folder.
This script leverages Nornir for inventory framework and multi-threading, and Scrapli as the connection manager.

How to Use:
1. Define your hosts file - This is your network devices' inventory
2. Execute the script by providing the following arguments:
    Requred arguments - site (-s) & role (-r) OR devices (-d), commands (-c), primary_user (-pu)
    Optional arguments - platform (-p), backup_user (-bu), maintenance (-m)

Example 1 - Execute "show run" & "show ver" against all LEAFs (role) in WARSAW (site)
$python network_interface.py -s WARSAW -r LEAF -c "show run" "show ver" -pu <username>

Example 2 - Execute "show run" & "show ver" against all SPINEs (role) in all sites running Arista eos
$python network_interface.py -s ALL -r SPINE -p eos -c "show run" "show ver" -pu <username>

Example 3 - Execute "show run" & "show ver" against all devices in XYZ site running nxos
with backup credentials in case some devices may not work with the primary credentials
$python network_interface.py -s XYZ -r ALL -p nxos -c "show run" "show ver" -pu <primary_username> -bu <backup_username>

network_interface's People

Contributors

tarkus4817 avatar kamilstachura avatar

Stargazers

 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.