Examples: Telnet exit programs

Example programs might help you use Telnet exit points on your system.

The downloadable example programs contain the following resources:

  • Example Create Telnet exit program CL utility code (TELCRT)

    Use this code example to create, install, or register Telnet exit programs. It is written in IBM i Command Language (CL) programming language.

  • Example Delete Telnet exit program CL utility code (TELDLT)

    Use this code example to uninstall and delete Telnet exit programs from your system. It is written in the CL programming language.

  • The basic example Telnet initialization exit program (DEVINIT1)

    The basic Telnet initialization exit program (DEVINIT1) lets you screen Telnet clients. You decide who is allowed to connect to your Telnet server and who is not. This example is basic because it is not designed to take advantage of the many other functions available to Telnet exit programs. The advanced Telnet exit program is designed to take advantage of those functions.

    It is suggested that you start with the basic Telnet initialization exit program until you understand how it works, and then migrate to the advanced Telnet initialization exit program if you require Virtual Device mapping or other advanced functions.

  • The advanced example Telnet initialization exit program (DEVINIT2)

    The advanced Telnet initialization (logon) exit program uses the access lists MAP and DISALLOW. By using the MAP list instead of the simpler ALLOW list, the advanced initialization program exploits more of the exit point interface than the basic version. It allows you to set or override Telnet session settings which is a function you normally see in Client Access environments. Here are some examples of the kinds of session settings:

    • Select a particular Virtual Terminal device for this session
    • Bypass the sign-on panel
    • Set up national language support (NLS)
  • Example Telnet termination exit program (DEVTERM)

    DEVTERM QCSRC is a simple logging program that logs a disconnect message.

    This is a companion program to both DEVINIT1 QCSRC and DEVINIT2 QCSRC. The termination messages it logs can be matched with the initialization messages to determine Telnet session duration.

Telnet exit program sample files

There are two file formats available for download: ZIP and SAVF. Both formats contain the same files.

The .zip files are in a format that is compatible with PCs. Select the .zip file to download the program and information files to your PC, unzip them, and then transfer them to your system. You need to rename most of files after you save them on your system.

A .savf file is an IBM i save file. Download it to your PC, and then transfer it to your system. You can create a temporary library on your system and transfer the save file to that. Unpack the save file in the temporary library and follow the instructions in the readme file.

Click the link for the file format you want, and then click Save.

Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.