On 06/19/2012 12:28 AM, nikunj.badja...@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.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to