Posts

Showing posts from April, 2021

Open PuTTY to telnet into multiple devices using Python

Image
Introduction The article explains and provide python script to open Putty terminal and telnet to multiple devices in a single click.  Prerequisites Basic Knowledge on Python scripting and installing modules.  Lets Start !  1. Install module 'pywinauto'. Module 'pywinauto' is a predefined library to open system applications.  Open python folder: Write CMD in the path and enter:     Install module 'pywinauto' using CMD: C:\Users\pashukl2\AppData\Local\Programs\Python\Python39\Scripts> pip install pywinauto 2. Create an excel file and save it as .csv         3. Python Script:  Import Modules. 'pywinauto.application' module is used for opening an existing application on the system.  'time' module for adding sleep time when pushing data to telnet sessions.  'csv' module for opening and reading CSV files. from pywinauto.application import Application import time import csv   Convert CSV file into Dictionary and storing ne