-
In
netmiko_demosfolder, you will find 8 Python demos,iplist.txtfile, and an explanation of each example. -
In
requests_demosfolder, you will find 3 Python demos, and an explanation of each example.
-
Download ZIPby clicking on the green Code button. -
Once downloaded, extract the ZIP file, right click on
R-and-S-mainand clickOpen with Code. -
Run
pip install -r requirements.txt. -
Open
netmiko_demosorrequests_demosfolder in VSCode. -
Explore each
demo*.pyfile. (where * is the number of the demo) -
Run any Python demo by typing the following command in PowerShell terminal (Either integrated terminal in VSCode or standalone Windows PowerShell/CMD):
R-and-S-main\netmiko_demos> python demo*.pyR-and-S-main\requests_demos> python demo*.pyor click the Run button in the topbar.
Examples in netmiko and requests folders use some Python libraries. These libraries are:
- Netmiko v4.2.0 (Multi-vendor library to simplify Paramiko SSH connections to network devices) Documentation Link
- NTC Templates v3.5.0 (TextFSM templates for parsing show commands of network devices) Documentation Link
- XlsxWriter v3.1.6 (XlsxWriter is a Python module for creating Excel XLSX files) Documentation Link
- Requests v2.31.0 (HTTP Requests) Documentation Link