The Connect Terminal action is used to connect to a terminal using a specified connection type and emulation type. It establishes a new terminal session which can be used in subsequent terminal steps. Terminal actions are used to automate legacy systems without the use of terminal emulation software.
From the Task Builder Available Actions pane, open the Terminal folder and double-click the Connect Terminal action or drag it into the Steps pane.
In the Connection type box, select the connection type from the drop-down list.
For TCP/IP or SSH connection types:
Enter the terminal name in the Hostname box.
If needed, enter an alternate port in the Port box. The default port is 23.
For SSH, enter the user name and password in the applicable boxes.
For COM1 or COM3 connection types:
Select baud rate, data bits, and stop bits in the applicable boxes.
To use parity bits, select Odd or Even in the Parity box.
To use flow control, select Hardware or Software in the Flow control box.
In the Session name box, use the default entry unless you have already created one or more terminal sessions in the task. If you have multiple terminal sessions, give each one a unique name, such as TermSess1, TermSess2, etc. The terminal session name is used to identify the terminal connection in other task steps.
If you want to display a window at runtime showing the results of the terminal transaction, click Show terminal window. This selection is commonly used for debugging. Ordinarily the terminal connection runs in the background.
Click the Advanced tab.
In the Emulation type box, select the terminal emulation standard. (Consult your system administrator or developer if you do not know what standard to use.)
For TN3270 or TN5250, enter the resource in the Resource Name box.
If a prompt is used by the target terminal to indicate
it is ready for input, enter it in the Default
prompt box. When the step runs, AutoMate will look for this prompt
to appear before going on to the next step. (You must also select Wait for prompt. See Step 11.)
If the default prompt may be different from one task run to the next, you can use a variable or expression in this box by clicking the Insert Expression/Variable button and using the Expression Builder to select it. A variable must be created and populated in earlier task steps. Click Regular expression, so that AutoMate interprets it as an expression rather than a literal string.
To specify the time that AutoMate should wait for the default prompt, click Wait for default prompt and enter the time to wait in milliseconds in the box below. If this is not selected any default prompt entered will be ignored.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
Adding Task Steps
Connect Terminal Action