Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Aggregate multiple telnet connections
Fist of all, I am a real newbie with Python but I know some other languages. I hope I will be able to learn Python...

I have 3 devices which send their log via telnet protocol, and an appliance (kinf of telnet client) which connects via telnet to retreive the logs.
My concern is that this appliance can connect to only one remote device.

So I would like to create a script which connects to 3 (or more) different devices with telnet but also listen on telnet protocol so that the appliance will only connect to the script and retrieve all the "aggregated" logs.

Would you please point me on the right direction?

I have played a little bit with telnetlib, but I can't figure out how to parallelize multiple clients and redirect the content to one server.
Python provides a lot of support for concurrency:

I would probably start by using Threads and a concurrent queue; each thread connects to a device and puts its log information on the concurrent queue. A different thread accepts connections from the "appliance" and pulls data from the queue and sends it to the appliance.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  3.6 telnet eyler 3 3,937 Jun-28-2019, 05:22 AM
Last Post: Khanhamid90
  Any suggestion on python library to use for both ssh and telnet? lord_mani 4 415 Jun-25-2019, 04:07 PM
Last Post: gb74razor
  Select of connections Gupi 1 205 Jun-04-2019, 09:32 AM
Last Post: Gupi
  telnet question jacklee26 2 356 Mar-30-2019, 06:45 AM
Last Post: jacklee26
  Retrieve output from telnet command Networker 1 333 Mar-12-2019, 01:36 PM
Last Post: searching1
  GNS3 telnet from bash terminal to virtual cisco router marienbad 2 416 Feb-24-2019, 07:55 AM
Last Post: marienbad
  Telnet to switch from jump start server(linux) searching1 0 406 Jan-09-2019, 10:03 PM
Last Post: searching1
  Issue when running telnet program using python3 searching1 11 1,832 Dec-22-2018, 12:48 AM
Last Post: searching1
  mysql connector/telnet issue (re: text game) rebubula76 1 652 Feb-06-2018, 08:00 PM
Last Post: rebubula76
  Multithread telnet not working Parallel anna 7 1,962 Feb-05-2018, 01:17 PM
Last Post: anna

Forum Jump:

Users browsing this thread: 1 Guest(s)