Async Netmiko
This project provides an asynchronous wrapper for Netmiko to enable parallel execution of commands on network devices.
async_netmiko.py: Contains the asynchronous wrapper for Netmiko commands.main.py: Demonstrates how to use the asynchronous Netmiko wrapper.devices.yaml: Contains the inventory of network devices.
-
Clone the repository:
git clone https://github.com/CobraTamer/async-netmiko.git cd async-netmiko -
Install the required Python packages:
pip install netmiko asyncio pyyaml
-
Modify the
devices.yamlfile with your network devices and credentials. -
Run the script:
python main.py
When you run the script, you should see the output of the show ip interface brief command for each device listed in the devices.yaml file.
