Mar-01-2018, 03:15 PM
Hello,
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.
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.