<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Dec 24, 2007, at 1:19 PM, Shahjehan Hakim wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> Hi everyone..<br> <br> I have to make Telnet session with Router/switch of Cisco. Anybody has idea how it can be done? from what i researched, i got most of the telnet session like client/servers. But what I have to do here is just to create a Telnet session which writes the password when its prompted and then write the commands and fetch the result which is returned by the session.</blockquote><br></div><div>I would start with the telnetlib module:</div><div><br class="webkit-block-placeholder"></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="http://www.python.org/doc/current/lib/module-telnetlib.html">http://www.python.org/doc/current/lib/module-telnetlib.html</a></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div></div><div>It has a quick example too:</div><div><br class="webkit-block-placeholder"></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="http://www.python.org/doc/current/lib/telnet-example.html">http://www.python.org/doc/current/lib/telnet-example.html</a></font></div></div></body></html>