Nornir (Python Network Automation) | Archiving Telemetry!

preview_player
Показать описание
In this video we learn how to archive your show commands with Nornir!
If you find these videos useful, please consider liking, subscribing and sharing to support the channel. Thank you!
Рекомендации по теме
Комментарии
Автор

Links to my new Network Automation training at CBT Nuggets:

UNDERSTAND THE NORNIR AUTOMATION FRAMEWORK


AUTOMATE NETWORK CONFIGURATIONS WITH NORNIR


UNDERSTAND AUTOMATION SECURITY

IPvZero
Автор

When you add the extention "_parallel" to the RUN statement will nornir handle the multiple tasks at the same time. That is especially usefull in the config-archive script. In full my comment:
replace this line " r = task.run(task=netmiko_send_command, command_string=cmd)"
with this line "r = task.run_parallel(task=netmiko_send_command, command_string=cmd)"
Where "_parallel" will show what it will do. Try it and you will find nornir will be extreme fast in parallel modus.

patrickvanbennekom
Автор

Hey John.

is there any other way not to hardcode username and password in hosts file ? I mean, like using getpass ?

aslanabdurahmanov
Автор

Hi John! Thank you very much for this script :) This video combined with some of your past ones gives me a better understanding of options available to me. All I got to do is start playing with Python :)
If I can make a suggestion for a future video, it would be great to see how you build a script which for example converts a .csv or a .xls file inventory file to hosts.yaml.
<3

wiecaszekpawel