You can download sample TELNET exit programs to assist you in writing exit programs.
Example programs are available to help you use Telnet exit points on your server.
The sample download contains the following resources:
Use this code example to create, install, or register Telnet exit programs. It is written in i5/OS® Command Language (CL) programming language.
Use this code example to uninstall and delete Telnet exit programs from your i5/OS system. It is written in i5/OS CL programming language.
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 recommended 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 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:
DEVTERM QCSRC is a simple logging program which logs a disconnect message.
This is a companion program to both DEVINIT1 QCSRC and DEVINIT2 QCSRC. The termination messages it logs can be matched up with the initialization messages to determine Telnet session duration.
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. Choose the .zip file to download the program and information files to your PC, unzip them, then transfer them to your iSeries™ server. You'll need to rename most of files once you get them to your iSeries server.
A .savf file is an i5/OS save file. Download it to your PC, then transfer it to your iSeries server. You can create a temporary library on your iSeries 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, then choose Save.