Typically, the first step in any WhatsConfigured script is to login to the device. This is typically done with the WhatsConfigured @login
command. The @login
command can be used to login to devices that use a traditional user-name/password login procedure that works as follows:
The @login
command has no parameters, and is invoked as follows:
@login
When the @login
command is executed, it does the following:
UserNamePrompt
, it sends Settings.UserName
to the device followed by LoginTerminator
.PasswordPrompt
, it sends Settings.Password to the device followed by LoginTerminator
.MorePrompt
, it enters MoreResponse
.@login
detects CommandPrompt
, it assumes that login was successful. Otherwise, it assumes that login failed.If at any time the device's output stalls for more than Settings.ReadTimeout
seconds, it is assumed that something is wrong, and the script returns failure.