Navigation:  Actions > Network > Telnet >

Telnet Action Script Tab

Previous pageReturn to chapter overviewNext page

This tab of the Telnet action specifies the script to execute on the server.


Delay: A delay (in milliseconds) to wait for a server response for each command that is sent (required).


Script: Specifies responses from the server to look for and commands to send to the server, each on a separate line (required).  Indicate an initial response string to expect from the server, followed by a command to send, a response to expect, and so on, in the form:


initial server response to look for<<optional custom delay>>

first command to send

server response to look for<<optional custom delay>>

second command to send

server response to look for<<optional custom delay>>



If the response string to match is found anywhere in the server response, the next send string will be sent until the entire script has been performed.  If the response string is not found, an error occurs.  To perform a negative match (anything except the response string), prefix the response string with an exclamation point (!).


After connecting, the Telnet action will process all text sent by the server, looking for a match with the response text provided in the Script field.  If a match is found within the specified Delay (or if a "not" match [line prefixed with !] is not found within the delay time), the command from the next line of the script will be sent.  To customize the delay for each response, add the custom delay amount at the end of the line within << >> characters (e.g., <<5000>>).  If a match is not found, the step will fail.  This will be repeated for each pair of lines in the script.


Note: The last line of the script should be the final response to expect from the server for the command on the previous line.


Logging: Level of logging to perform on network communications (none, all, errors, errors/warning, all+hex dump, or text).  Text (the default) logs all text sent and received to/from the server, which can be useful for debugging purposes.