Help On Paramiko
Michael Torrie
torriem at gmail.com
Tue Jun 19 11:28:20 EDT 2012
On 06/19/2012 12:28 AM, Nikunj.Badjatya at emc.com wrote:
> Howdy All,
>
> I am trying to use paramiko to automate logging in to remote unix machines and executing some commands there.
> When I normally do ssh from my linux machine (with Python 2.6) to this machine a different '>' prompt comes. It's a device specific custom prompt.
> After I run 'enable' command here, a new prompt opens up. '#' which is also custom prompt.
> Then I need to run 'configure terminal' there. And then some more device specific commands.
I think you want an abstraction layer like fabric, or the old and
venerable pexpect. Makes this kind of interaction a lot easier.
More information about the Python-list
mailing list