SSH/Telnet program to Router/switch

Chris Angelico rosuav at gmail.com
Wed Feb 19 03:45:59 EST 2014


On Wed, Feb 19, 2014 at 7:14 PM, Sujith S <sujiths80 at gmail.com> wrote:
> Hi,
>
> I am new to programming and python. I am looking for a python script to do ssh/telnet to a network equipment ? I know tcl/perl does this using expect/send.
>
> Do we have expect available in python as well or need to use some other method ?
>

Yep! Look up the socket module. Straight-forward TCP sockets are
usually easy enough to work.

ChrisA



More information about the Python-list mailing list