GithubHelp home page GithubHelp logo

nxapi-scripts's Introduction

NXAPI SCRIPTS

These scripts assume you have installed both the ipaddress and requests modules from PyPI.

pip install ipaddress
pip install requests

A collection of Python scripts that leverage NXAPI to automate some common (and maybe some not-so-common) tasks.

These scripts leverage the "requests" python module, which you may need to install, mostly because the NXAPI sandbox generates Python code using that module. I may work on moving the requests to urllib in the future so that additional modules don't need to be installed.

  • nxapi_base.py - A module with an NXOS device class and some generic functions that can be used to more quickly build scripts.

  • IntfLabel.py - A script that will pull CDP and port-channel information and label interfaces accordingly.

  • ClearDesc.py - A short script to clear all interfaces of descriptions. Used when testing the IntfLabel.py script.

  • RouteStats.py - A script that will pull the route table and give some basic statistics about next hops and how many routes use them.

nxapi-scripts's People

Contributors

jamiecaesar avatar

Watchers

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