Nov-26-2017, 08:43 AM
Hi heiner, thanks for your reply.
you need to install netmiko: Multi-vendor library to simplify Paramiko SSH connections to network devices.
https://github.com/ktbyers/netmiko
then, to create 2 files:
1. devices list.
2. commands list.
the script will run with the following command:
./results_and_send_mail.py switch_commands.txt switches.json
Instead of that, maybe you can look and help on the section of my code that adding the files to the mail?
Thanks.
you need to install netmiko: Multi-vendor library to simplify Paramiko SSH connections to network devices.
https://github.com/ktbyers/netmiko
then, to create 2 files:
1. devices list.
2. commands list.
the script will run with the following command:
./results_and_send_mail.py switch_commands.txt switches.json
Instead of that, maybe you can look and help on the section of my code that adding the files to the mail?
Thanks.