54
AVWorks Installer/User Guide
Using Login Scripts
The Serial Console Viewer has a login script function that allows you to automatically log in to a
device. A login script contains a sequence of Expect and Send strings, and initial transmission
characters that work with them. A login script’s definition may also contain the strings that indicate
a successful and a failed login.
To use a login script, you must enable automatic login in a device’s Session Properties dialog box
(the default value is enabled).
AVWorks software contains a default login script for supported appliances. When a Serial Console
Viewer Telnet session is initiated to a supported unit, the default login script is run automatically. If
the login is successful (that is, the string defined to indicate success is received), the session
continues. If the login is not successful (that is, the string defined to indicate failure is received), the
user is prompted for login credentials.
You may use the default login script, customize the default login script or create an entirely
different login script. If you customize the default login script and later decide to return to the
original, you may easily restore the default script content.
When you build the login script, you specify the Initial Character to be sent to the unit as soon as
the Telnet session is established. The first Expect string indicates what the unit will send as its first
prompt. The first Send string indicates what the login script will send to the unit after it receives the
first Expect string.
You may build additional Expect and Send strings according to what the particular device will
prompt for and what will be sent in response.
Changing a default login script
You may change a device’s default login script in its Session Properties dialog box. When you
click the
Login Scripts
tab, all the information from the current login script is displayed, including
the Initial Character to be transmitted, the Send and Expect strings, the string that indicates success
and the string that indicates failure.
You may change the content of the existing fields, and you may add additional Send and Expect
strings, up to the maximum allowed.
When a login script needs debugging, you may enable a property or option in the Explorer that will
open the Serial Console Viewer Telnet window before any login to the device is attempted. After
the login script is successfully debugged, you may disable this feature, and the Telnet window will
only open after a successful login.
To enable or disable automatic login:
1. Select
Options - Sessions Properties
from the Serial Console Viewer menu.
-or-
Click the
Session Settings
icon in the toolbar.
2. Click the
Login Scripts
tab.
Содержание AV Works
Страница 4: ......
Страница 10: ...viii AVWorks Installer User Guide...
Страница 12: ...x AVWorks Installer User Guide...
Страница 18: ...6 AVWorks Installer User Guide...
Страница 48: ...36 AVWorks Installer User Guide...
Страница 92: ...80 AVWorks Installer User Guide...
Страница 134: ...122 AVWorks Installer User Guide...
Страница 142: ...130 AVWorks Installer User Guide...