Inspired by Netmiko & Netdev to make scripts run much faster
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Linux OS (Recommended for Ubuntu 18.04)
- Python >=3.5 (pre-installed)
python3 --version
- SSH enabled and tested (connectivity)
ssh cisco@192.168.1.10
- Download the repository into a directory
git clone https://github.com/omarthe95/DeepDive.git
- Run setup.sh
bash setup.sh
- Edit IPaddress_Switches.txt file with your own IP address, each device IP per line
nano IPaddress_Switches.txt
- You may change the access credentials inside each python script individually, because the default access credentials into network devices is cisco:Cisco123
We will start with each script with GIF to see it function
Entering each device (one-by-one) take so much time
python3 Sequential.py
But executing it with Threads for each independently device of one another makes it faster
python3 MultiThreading.py
Concurrent the code with Asyncio that runs in a single thread will go beyond faster
python3 Asyncio_Netdev.py
- Omar Adil - Network Engineer - Linkedin
This project is licensed under the MIT License - see the LICENSE.md file for details
Kirk Byers
Python for Network Engineers
https://pynet.twb-tech.com
Sergey Yakovlev Netdev https://github.com/selfuryon/netdev