{"id":19825262,"url":"https://github.com/tes3awy/netmiko-examples","last_synced_at":"2025-05-01T13:32:19.387Z","repository":{"id":48700112,"uuid":"369084721","full_name":"Tes3awy/Netmiko-Examples","owner":"Tes3awy","description":"Netmiko and Requests Examples for Cisco DevNet","archived":false,"fork":false,"pushed_at":"2022-03-16T08:34:13.000Z","size":193,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T14:12:00.326Z","etag":null,"topics":["api","automation","cisco-ios","cisco-nxos","ciscodevnet","examples-netmiko","examples-python","netmiko","openpyxl","pandas","pandas-python","python","python3","requests-python","vscode","xlsxwriter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tes3awy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-20T05:02:16.000Z","updated_at":"2023-05-21T12:24:43.000Z","dependencies_parsed_at":"2022-09-08T02:20:45.466Z","dependency_job_id":null,"html_url":"https://github.com/Tes3awy/Netmiko-Examples","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2FNetmiko-Examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2FNetmiko-Examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2FNetmiko-Examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2FNetmiko-Examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tes3awy","download_url":"https://codeload.github.com/Tes3awy/Netmiko-Examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251881770,"owners_count":21659165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","automation","cisco-ios","cisco-nxos","ciscodevnet","examples-netmiko","examples-python","netmiko","openpyxl","pandas","pandas-python","python","python3","requests-python","vscode","xlsxwriter"],"created_at":"2024-11-12T11:07:07.295Z","updated_at":"2025-05-01T13:32:18.974Z","avatar_url":"https://github.com/Tes3awy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e **Last updated: March 16\u003csup\u003eth\u003c/sup\u003e, 2022**\n\n![Cisco DevNet](https://img.shields.io/badge/Cisco-DevNet-blue?style=flat-square)\n[![Python 3.6+](https://img.shields.io/badge/Python%203.6+-blue.svg?logo=python\u0026logoColor=yellow\u0026color=black\u0026style=flat-square)](https://www.python.org/downloads)\n![Language](https://img.shields.io/github/languages/top/Tes3awy/Netmiko-Examples?label=Python\u0026style=flat-square)\n![Repo Size](https://img.shields.io/github/repo-size/Tes3awy/Netmiko-Examples?label=Repo%20size\u0026style=flat-square)\n[![Issues Open](https://img.shields.io/github/issues/Tes3awy/Netmiko-Examples?label=Issues\u0026style=flat-square)](https://github.com/Tes3awy/Netmiko-Examples/issues)\n![Releases Download](https://img.shields.io/github/downloads/Tes3awy/Netmiko-Examples/total?color=purple\u0026label=Downloads\u0026style=flat-square)\n[![Commit Activity](https://img.shields.io/github/commit-activity/m/Tes3awy/Netmiko-Examples?color=orange\u0026label=Commit%20activity\u0026style=flat-square)](https://github.com/Tes3awy/Netmiko-Examples)\n![Last Commit](https://img.shields.io/github/last-commit/Tes3awy/Netmiko-Examples?label=Last%20commit\u0026style=flat-square)\n[![License](https://img.shields.io/github/license/Tes3awy/Netmiko-Examples?label=License\u0026style=flat-square\u0026color=purple)](https://github.com/Tes3awy/Netmiko-Examples/blob/main/LICENSE)\n[![Black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat-square\u0026labelColor=ef8336)](https://pycqa.github.io/isort/)\n[![Pre-Commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white\u0026style=flat-square)](https://github.com/pre-commit/pre-commit)\n\n# Netmiko \u0026 Requests Examples for Cisco DevNet\n\n- 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.\n\n- In `requests` folder, you will find seven Python examples, a `requirements.txt` file, and an explanation of each example.\n\n## How to use?\n\n1. `Clone` this repo or `Download ZIP` by clicking on \u003cimg src=\"assets/code-button.png\" alt=\"Code Button\" title=\"Button\" width=\"80\" align=\"center\"/\u003e up above.\n   _(Alternativley, you can click on Releases on the right hand side and download the latest release)_\n\n2. Once downloaded, extract the ZIP file and `cd` into `netmiko` folder or `requests` folder.\n\n3. Open `netmiko` or `requests` folder in VSCode.\n\n4. Open `requirements.txt` file and if any of the libraries is not installed on your PC, run the following command in the PowerShell terminal:\n\n```powershell\npath_to\\folder\u003e cd netmiko\nnetmiko\u003e pip install -r requirements.txt --user ↵\n\npath_to\\folder\u003e cd requests\nrequests\u003e pip install -r requirements.txt --user ↵\n```\n\n\u003e If the libraries already installed but not the same version as in `requirements.txt`, then add `--upgrade` flag to the `pip install` command:\n\n```powershell\npath_to\\folder\u003e pip install -r requirements.txt --user --upgrade ↵\n```\n\n5. Explore each `example*.py` file. _**(where **\\*** is the number of the example)**_\n\n6. Run any Python example by typing the following command in PowerShell terminal _(Either integrated terminal in VSCode or standablone Windows PowerShell/CMD)_:\n\n```powershell\npath_to\\folder\u003e python example*.py ↵\n```\n\n---\n\n## Libraries Documentation Links\n\nExamples in `netmiko` and `requests` folder uses some Python libraries. These libraries are:\n\n1. Netmiko **v3.4.0** (Multi-vendor library to simplify Paramiko SSH connections to network devices) [Documentation Link](https://github.com/ktbyers/netmiko/blob/develop/README.md)\n2. NTC Templates **v3.0.0** (TextFSM templates for parsing show commands of network devices) [Documentation Link](https://github.com/networktocode/ntc-templates)\n3. XlsxWriter **v3.0.3** (XlsxWriter is a Python module for creating Excel XLSX files) [Documentation Link](https://xlsxwriter.readthedocs.io/)\n4. Pandas **v1.4.1** (Data Analysis Library) [Documentation Link](https://pandas.pydata.org/docs/).\n5. Openpyxl **v3.0.9** (A Python library to read/write Excel 2010 xlsx/xlsm files) [Documentation Link](https://openpyxl.readthedocs.io/en/stable/)\n6. Requests **v2.27.1** (HTTP Requests) [Documentation Link](https://docs.python-requests.org/en/master/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftes3awy%2Fnetmiko-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftes3awy%2Fnetmiko-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftes3awy%2Fnetmiko-examples/lists"}