Command and Reply

If you try to run two policies containing SSH objects at the same time, then unexpected errors can occur. For example, the first policy can send commands in the SSH session created by the second policy. These errors occur because a class which handles the SSH connection is static.

This Automation Manager object sends one SSH command to a remote device. Output of an executing command is parsed for the configured Expect statement to inform the executing device when the executed command is completed. Expect statements are not required for all commands but should be used if executed command produces several lines of output.

(missing or bad snippet)

Input Parameters

Command to RunStringYesCommand to be executed on the remote device.
Expected Output (to stop receiving)StringNoStatement to parse output for determining when the executed command has been completed.

Output Parameters

SSHOutputStringThe Output produced from executing a command on the remote device.
ResultNumberReturns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Command to RunStringYesshow running-config
Expected Output (to stop receiving)StringNoHostname#