Skip to content

Simplest use of Pyton netmiko. From 0 to all devices in 5 minutes. For beginners. HOWTO

Notifications You must be signed in to change notification settings

aegiacometti/netmiko_5m_to_all

Repository files navigation

This is the most basic HOWTO / use of netmiko for beginners.

Throw commands from 0 to the whole inventory in 5 minutes.

Install dependencies with pip3 install -r requirements.txt

  • 1_basic.py: the minimal expression. Modify device info in the script to suit your devices.
  • 2_intermediate.py: Add an inventory.yml to run the command in all devices.
  • 3_complete.py: Add a filter string to filter devices before running the command.
  • 4_bonus.py: Add a show of matching devices, confirm, and stay in loop to issue several commands on the same matched devices.

In the next lab I will update the scripts to use diffent concurrency methods:

  • multiprocessing
  • sync multithreading
  • async multithreding

Find it at: https://github.com/aegiacometti/netmiko_full_speed

About

Simplest use of Pyton netmiko. From 0 to all devices in 5 minutes. For beginners. HOWTO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages