Giter VIP home page Giter VIP logo

netmiko-examples's Introduction

Last updated: March 16th, 2022

Cisco DevNet Python 3.6+ Language Repo Size Issues Open Releases Download Commit Activity Last Commit License Black Imports: isort Pre-Commit

Netmiko & Requests Examples for Cisco DevNet

  • In netmiko folder, you will find 18 Python examples, device_list.csv file, config-sample-ex8.txt file, a requirements.txt file, and an explanation of each example.

  • In requests folder, you will find seven Python examples, a requirements.txt file, and an explanation of each example.

How to use?

  1. Clone this repo or Download ZIP by clicking on Code Button up above. (Alternativley, you can click on Releases on the right hand side and download the latest release)

  2. Once downloaded, extract the ZIP file and cd into netmiko folder or requests folder.

  3. Open netmiko or requests folder in VSCode.

  4. Open requirements.txt file and if any of the libraries is not installed on your PC, run the following command in the PowerShell terminal:

path_to\folder> cd netmiko
netmiko> pip install -r requirements.txt --user ↵

path_to\folder> cd requests
requests> pip install -r requirements.txt --user ↵

If the libraries already installed but not the same version as in requirements.txt, then add --upgrade flag to the pip install command:

path_to\folder> pip install -r requirements.txt --user --upgrade ↵
  1. Explore each example*.py file. (where * is the number of the example)

  2. Run any Python example by typing the following command in PowerShell terminal (Either integrated terminal in VSCode or standablone Windows PowerShell/CMD):

path_to\folder> python example*.py ↵

Libraries Documentation Links

Examples in netmiko and requests folder uses some Python libraries. These libraries are:

  1. Netmiko v3.4.0 (Multi-vendor library to simplify Paramiko SSH connections to network devices) Documentation Link
  2. NTC Templates v3.0.0 (TextFSM templates for parsing show commands of network devices) Documentation Link
  3. XlsxWriter v3.0.3 (XlsxWriter is a Python module for creating Excel XLSX files) Documentation Link
  4. Pandas v1.4.1 (Data Analysis Library) Documentation Link.
  5. Openpyxl v3.0.9 (A Python library to read/write Excel 2010 xlsx/xlsm files) Documentation Link
  6. Requests v2.27.1 (HTTP Requests) Documentation Link

netmiko-examples's People

Contributors

tes3awy avatar

Stargazers

 avatar  avatar  avatar

Watchers

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