in reply to Re^2: Unable to run command on Cisco switch
in thread Unable to run command on Cisco switch

Another option would be to use plink (the command line ssh client that comes with PuTTY). AFAIK, it doesn't try to emulate TTYs in Windows so it would be easier to automate than OpenSSH ssh client.

Replies are listed 'Best First'.
Re^4: Unable to run command on Cisco switch
by 1wax (Novice) on Oct 08, 2009 at 13:06 UTC
    Thanks for that. I used plink.
    The -m option did not work, so I redirected STDIN and it all works fine.
    The gotcha I discovered was that cisco switch was being parsed \r\n as newline. So that made going into enable mode a bit tricky. But that all sorted now by sending my command and a \r.
    Thanks.