Page tree
Skip to end of metadata
Go to start of metadata

Command Line, SSH, Kerberized SSH, Telnet, SCP, FTP, SFTP, and Windows Command adapters can use the timeout-secs attribute in a <command> element to define the time, in seconds to wait after the execution of a command for a prompt to be returned after the successful execution of a command. This delay can prevent the request from becoming unresponsive, especially in cases where the prompt returned is different from the expected prompt. The default value of timeout-secs is 60.

In the XML sample shown in the following figure, if the prompt is not returned in 90 seconds, the adapter response is an error message indicating that a timeout occurred.

XML sample of a command attribute for timeout

...
<commands>
  <command timeout-secs="90">pwd</command>
</commands>
...