[Tutor] Telnet to Router/Switch
Reed O'Brien
reed at reedobrien.com
Tue Dec 25 00:00:19 CET 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20071224/5c4f9364/attachment.htm
More information about the Tutor
mailing list