name type hostname[/port] [loginstring]
Items are separated by any number of blanks and/or TAB characters.
A line beginning with `#' is taken as a comment (note that `#' anywhere
else on a line does not indicate a comment).
The name field is a mnemonic used to identify the host.
The type field is a keyword that indicates the type of entry. The value primary means that the name will be included in host-selection menus that may be displayed by a 3270 emulator. The value alias means that the name will not be included in menus, but will still be accepted as valid input when a host name is required.
The hostname field is the Internet hostname or dot-notation Internet address of the host.
The hostname can also optionally include a non-default port number, appended to the hostname with a slash ``/'' character, e.g., bluehost/9700.
The optional loginstring field specifies data to be sent to the host when the connection is made. It may include embedded tab (\t) and newline (\n) characters indicating the 3270 TAB and ENTER keys, respectively. The loginstring is not intended for entering usernames and passwords; rather it provides an automated way of specifying a front-end menu option.
mvs primary mvs-host
tso alias mvs-host
mvs2 primary mvs-host/4012
vm primary vtam \t3\n
An 3270 emulator will display four names (mvs, mvs2,
afhost and vm) on its hosts menu.
The names mvs and tso will cause connections to the host
mvs-host.
The name mvs2 will also cause a connection to
mvs-host,
but to port 4012 rather than the emulator's default port (usually 23).
The name vm will cause the 3270 emulator to connect to the host
vtam (presumably some sort of host-selection front-end),
then enter the string ``3'' on the second data-entry field on the screen, and
send the ENTER AID sequence.