Python Forum
Netmiko - add multiple files, from different folders to mail.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Netmiko - add multiple files, from different folders to mail.
#3
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.
Reply


Messages In This Thread
RE: Netmiko - add multiple files, from different folders to mail. - by tomikovaknin - Nov-26-2017, 08:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to generating multiple json files using python script dzgn989 4 249 May-10-2024, 03:09 PM
Last Post: deanhystad
  Using zipfile module - finding folders not files darter1010 2 341 Apr-06-2024, 07:22 AM
Last Post: Pedroski55
  python convert multiple files to multiple lists MCL169 6 1,674 Nov-25-2023, 05:31 AM
Last Post: Iqratech
  splitting file into multiple files by searching for string AlphaInc 2 972 Jul-01-2023, 10:35 PM
Last Post: Pedroski55
  Create new folders and copy files cocobolli 3 1,556 Mar-22-2023, 10:23 AM
Last Post: Gribouillis
  Copy only hidden files and folders with rsync Cannondale 2 1,075 Mar-04-2023, 02:48 PM
Last Post: Cannondale
  Merging multiple csv files with same X,Y,Z in each Auz_Pete 3 1,244 Feb-21-2023, 04:21 AM
Last Post: Auz_Pete
  unittest generates multiple files for each of my test case, how do I change to 1 file zsousa 0 998 Feb-15-2023, 05:34 PM
Last Post: zsousa
  Find duplicate files in multiple directories Pavel_47 9 3,264 Dec-27-2022, 04:47 PM
Last Post: deanhystad
  I have an issue with Netmiko Error reading SSH protocol banner omarhegazy 2 3,632 May-16-2022, 06:05 PM
Last Post: omarhegazy

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020