lsalas
06-18-2008, 12:13 AM
You must define the necessary login, password and shell prompts prior to establishing a connection. This will vary from server to server so you may wish to have a properties file that maps the hostname to the expected prompts if you are running a script against several hosts with varying prompts.
The default login prompt is "login:", the default password prompt is "Password:" and the default shell prompt is "$". These are customizable and may be set using the TelnetSession class LoginPrompt, PasswordPrompt and ShellPrompt properties.
Using the TelnetScript and TelnetTask classes you may define your own start and end prompts as needed.
The default login prompt is "login:", the default password prompt is "Password:" and the default shell prompt is "$". These are customizable and may be set using the TelnetSession class LoginPrompt, PasswordPrompt and ShellPrompt properties.
Using the TelnetScript and TelnetTask classes you may define your own start and end prompts as needed.