https://github.com/tes3awy/r-and-s
Cisco DevNet Demos for Enterprise Routing & Switching (Mainly on Cisco Catalyst Series)
https://github.com/tes3awy/r-and-s
devnet devnet-associate devnetcreate netmiko python python3 requests-library-python xlsxwriter
Last synced: 11 months ago
JSON representation
Cisco DevNet Demos for Enterprise Routing & Switching (Mainly on Cisco Catalyst Series)
- Host: GitHub
- URL: https://github.com/tes3awy/r-and-s
- Owner: Tes3awy
- License: bsd-3-clause
- Created: 2021-11-11T16:23:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-21T06:31:56.000Z (about 2 years ago)
- Last Synced: 2025-02-28T20:45:46.742Z (over 1 year ago)
- Topics: devnet, devnet-associate, devnetcreate, netmiko, python, python3, requests-library-python, xlsxwriter
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://www.python.org/downloads)


[](https://github.com/Tes3awy/R-and-S)

[](https://github.com/Tes3awy/R-and-S/blob/main/LICENSE)
[](https://github.com/psf/black)
[](https://pycqa.github.io/isort/)
# Netmiko & Requests Examples for Cisco DevNet
## Table of Contents
1. [Getting Started](#getting-started)
2. [How to use?](#how-to-use)
3. [Documentation Links](#documentation-links)
## Getting Started
- In `netmiko_demos` folder, you will find 8 Python demos, `iplist.txt` file, and an explanation of each example.
- In `requests_demos` folder, you will find 3 Python demos, and an explanation of each example.
## How to use?
1. `Download ZIP` by clicking on the green **Code** button.
2. Once downloaded, extract the ZIP file, right click on `R-and-S-main` and click `Open with Code`.
3. Run `pip install -r requirements.txt`.
4. Open `netmiko_demos` or `requests_demos` folder in VSCode.
5. Explore each `demo*.py` file. _**(where **\*** is the number of the demo)**_
6. Run any Python demo by typing the following command in PowerShell terminal _(Either integrated terminal in VSCode or standalone Windows PowerShell/CMD)_:
```powershell
R-and-S-main\netmiko_demos> python demo*.py
```
```powershell
R-and-S-main\requests_demos> python demo*.py
```
or click the **Run** button in the topbar.
---
## Documentation Links
Examples in `netmiko` and `requests` folders use some Python libraries. These libraries are:
1. Netmiko **v4.2.0** (Multi-vendor library to simplify Paramiko SSH connections to network devices) [Documentation Link](https://github.com/ktbyers/netmiko/blob/develop/README.md)
2. NTC Templates **v3.5.0** (TextFSM templates for parsing show commands of network devices) [Documentation Link](https://github.com/networktocode/ntc-templates)
3. XlsxWriter **v3.1.6** (XlsxWriter is a Python module for creating Excel XLSX files) [Documentation Link](https://xlsxwriter.readthedocs.io/)
4. Requests **v2.31.0** (HTTP Requests) [Documentation Link](https://docs.python-requests.org/en/master/)