Telnet(Adv)
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
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, but not to the Login commands. Polling period does not apply 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 the login prompt character is not found, within the Login time set, the next command is 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 the telnet prompt character is not found, within the telnet command time set, the next command is 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 prompt, or the Telnet prompt. You can define how 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 prompt, or the 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
Example of Commands to enter for custom login
CUSTOMLOGIN^3
username
group
password
ls -lt
cd /user/test
./runTestScript.scr
exit