On Dec 24, 2007, at 1:19 PM, Shahjehan Hakim wrote:

Hi everyone..

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.

I would start with the telnetlib module:

http://www.python.org/doc/current/lib/module-telnetlib.html

It has a quick example too:

http://www.python.org/doc/current/lib/telnet-example.html
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to