Re: SSH towards Cisco - WeOnlyDo Discussion board

Re: SSH towards Cisco (General questions)

by dirk, Thursday, March 17, 2011, 18:53 (5001 days ago) @ wodDamir

Dirk,

In case of SSH, there's no need to even use exit part. When Command property is used, the component connects, executes the specified command and disconnects once it receives command output. This mechanism is implemented in SSH by default.

You can also use ExitStatus to check if there was an error in command execution. You can find more info on ExitStatus here: http://www.weonlydo.com/SSH/Help/wodSSH-ExitStatus.html

As for Send or Execute/WaitFor, you're right. You would need to wait for prompt execute a command and get it's response.

Hope this helps.

Regards,
Damba

Well that's not how I see it working.
I'm using teh .COMMAND property but the component is not disconnecting at all from the remote Cisco.
Do you want me to use one of the examples and then send you some output to show this? (if so what output and what example to use)?


Complete thread: