Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Python telnet script for IP list

I am looking for a Python script that can telnet a list of IP address in a saved file say "iplist.txt" and run a set of commands say "commands.txt" and save output in a file say "scriptlogs".

Thanks in advance,
I don't know a ready script for it, but you can use libraries for it.
For example:
It requires Python 3.3+, better Python 3.6.

You can also program your own socket client with threading for example.

To read the file itself is a very easy task:

with open('iplist.txt') as fd:
    ips = fd.readlines()
But I'm to tired to do anything now and this is not the sense of this board. The people meeting here, when they do have problems with their program.
Start programing in Python and when you've problems, ask questions.
My code examples are always for Python >=3.6.0
Almost dead, but too lazy to die:
All humans together. We don't need politicians!

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Any suggestion on python library to use for both ssh and telnet? lord_mani 4 1,104 Jun-25-2019, 04:07 PM
Last Post: gb74razor

Forum Jump:

Users browsing this thread: 1 Guest(s)