Last updated: March 16th, 2022
- 
In
netmikofolder, you will find 18 Python examples,device_list.csvfile,config-sample-ex8.txtfile, arequirements.txtfile, and an explanation of each example. - 
In
requestsfolder, you will find seven Python examples, arequirements.txtfile, and an explanation of each example. 
- 
Clonethis repo orDownload ZIPby clicking on
 up above.
(Alternativley, you can click on Releases on the right hand side and download the latest release) - 
Once downloaded, extract the ZIP file and
cdintonetmikofolder orrequestsfolder. - 
Open
netmikoorrequestsfolder in VSCode. - 
Open
requirements.txtfile 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--upgradeflag to thepip installcommand:
path_to\folder> pip install -r requirements.txt --user --upgrade ↵- 
Explore each
example*.pyfile. (where * is the number of the example) - 
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 ↵Examples in netmiko and requests folder uses some Python libraries. These libraries are:
- Netmiko v3.4.0 (Multi-vendor library to simplify Paramiko SSH connections to network devices) Documentation Link
 - NTC Templates v3.0.0 (TextFSM templates for parsing show commands of network devices) Documentation Link
 - XlsxWriter v3.0.3 (XlsxWriter is a Python module for creating Excel XLSX files) Documentation Link
 - Pandas v1.4.1 (Data Analysis Library) Documentation Link.
 - Openpyxl v3.0.9 (A Python library to read/write Excel 2010 xlsx/xlsm files) Documentation Link
 - Requests v2.27.1 (HTTP Requests) Documentation Link