Re: How to log the output from the multiple telnet sessions to separate log file

2015-10-19 Thread manjunatha . mahalingappa
On Friday, October 16, 2015 at 11:11:58 PM UTC-7, dieter wrote: > manjunatha.mahalinga...@gmail.com writes: > > I'm very much new to python. > > I'm doing the automation for networking device testing , I will be opening > > the 4 telnet session, and doing some testing operations on each of those

Re: How to log the output from the multiple telnet sessions to separate log file

2015-10-17 Thread manjunatha . mahalingappa
On Friday, October 16, 2015 at 11:11:58 PM UTC-7, dieter wrote: > manjunatha.mahalinga...@gmail.com writes: > > I'm very much new to python. > > I'm doing the automation for networking device testing , I will be opening > > the 4 telnet session, and doing some testing operations on each of those

Re: How to log the output from the multiple telnet sessions to separate log file

2015-10-17 Thread manjunatha . mahalingappa
On Friday, October 16, 2015 at 11:06:24 PM UTC-7, Chris Angelico wrote: > On Sat, Oct 17, 2015 at 4:47 PM, wrote: > > class Logger(): > > def __init__(self,log): > > self.terminal = sys.stdout > > self.log = log > > > > def write(self, message): > > self.terminal.w

How to log the output from the multiple telnet sessions to separate log file

2015-10-16 Thread manjunatha . mahalingappa
Hello All, I'm very much new to python. I'm doing the automation for networking device testing , I will be opening the 4 telnet session, and doing some testing operations on each of those telnet sessions and capture or log the respective output in 4 different log files. As of now all the 4 lo

How to use the returned telnet object after creating the telnet session.

2015-09-13 Thread manjunatha . mahalingappa
Hello all, First I would like thank you for creating such good platform for discussing python..!!! Assume that I will pass IP and port information from a function to open the telnet session. have opened the telnet session and after opening the telnet session I returned telnet object to callin