This allows you to telnet to a server and issue commands. This Telnet(Adv) task is more advanced than the Telnet task. It will try and detect the presence of the telnet login prompts and the telnet command prompts, before sending the next command. If these prompts are not detected within the timeout value set, it will send the next command. This task is multithreaded, so you can run multiple Telnet(Adv) tasks simultaneously. This is useful if you are running long scripts on the server.
Host
Enter the host name or IP address.
Port
Enter the desired port. Default Telnet port =23.
Username
Enter your username.
Password
Enter your password.
Polling Period
Enter the desired polling time. This polling period applies only
to Telnet commands, and not to the Login commands, i.e not to username
and password commands. During the Login commands, the polling period
is fixed at 1 second. For the regular Telnet commands, the module
will poll the connection, at the Polling interval, for the reply string
from the server. If the last 10 characters (default value) of the
reply string from the server contain the Telnet prompt, then the next command
is sent. This polling period should be less than the command time.
Login Prompt
This is usually the last character that the server outputs when it
requests a username or password to be sent. This value is normally
: but may depend on the telnet server. The task will look for this
character in the last 10 characters (default value) of the reply string
from the server. If this character is found, the next command is
sent. If however, the login prompt character is not found within
the Login time set, the next command is then sent.
Telnet Prompt
This is usually the last character that the server outputs when it
is done processing the current telnet command. This value normally
depends on the system shell you are connecting to. The task will
look for telnet prompt character in the last 10 characters (default value)
of the reply string from the server. As soon as this character(s)
is found, the next command is sent. If however, the telnet prompt
character is not found within the telnet command time set, the next command
is then sent.
Prompt Characters
This module waits for the Login or Telnet prompts before sending the
next command. It will search the last reply string from the telnet
server for the Login or Telnet prompt. You can control how far back
in this reply string, that the module should search for these prompts.
If you select Prompt Characters = 10 (default value), then the module will
search the last 10 characters of the last reply string. If the Login
or Telnet prompt is found in these 10 characters, then the next command
is sent. If your server sends a bunch of characters after the Telnet
prompts (Example: MS Telnet server), then you may have to increase this
value to 1000, to detect the Telnet prompt. As soon as this character(s)
is found, the next command is sent.
Login Time
Enter the maximum time allowed for each login command (username and
password). If this login time has been exceeded, and the server has
not replied back with a telnet login prompt, then the next command is sent.
Command Time
Enter the maximum time allowed for each telnet command. If this
command time has been exceeded, and the server has not replied back with
a telnet command prompt, then the next command is sent.
Command
Enter your telnet commands, 1 per line. Always enter the exit
command on the last line. This field also supports
dynamic
variables. Using dynamic variables, you can enter a command which
will be dynamically resolved at runtime. example: cd /users/$%USERNAME%$
Example of Commands to enter
ls -lt
cd /user/test
./runTestScript.scr
exit
Custom Login
The Telnet(Adv) task always sends the username first, followed by the
password. If your login method is different, than the Telnet(Adv)
task will fail. In this case, please use the following procedure
to apply a Custom login method. On the first line of the commands
field, enter the String CUSTOMLOGIN^ (case important) followed by the number
of commands you need for your custom login. Ex: CUSTOMLOGIN^3
should be the first line if you have 3 login commands. Then enter
the rest of the commands like you normally would.
Example of Commands to enter for custom login
CUSTOMLOGIN^3
username
group
password
ls -lt
cd /user/test
./runTestScript.scr
exit