Before you start the Network SLAPM2 subagent, the following applications need to be be started and initialized:
The Network SLAPM2 subagent can be started from the z/OS® shell or as a started task.
The Network SLAPM2 subagent executable file (nslapm2) is in /usr/lpp/tcpip/bin. There is also a link from /bin. Make sure your PATH statement (in the profile) contains either /bin or /usr/lpp/tcpip/bin.
The Network SLAPM2 subagent requires access to one or more DLLs at run time. The LIBPATH environment variable needs to be set to include the /usr/lib directory, which normally includes all the required DLLs.
Export the LIBPATH environment variable before starting the subagent. This is best accomplished in /etc/profile or in .profile in the HOME directory. For example:
export LIBPATH=/usr/lib
The following command is an example:
nslapm2 -d 3 -t 1800 -c special -P 5000
The command above starts the Network SLAPM2 subagent with the following characteristics:
Use the S NSLAPM2 command on an MVS™ console or SDSF. A sample procedure is shipped in member EZAPAGSB in SEZAINST.
// PARM=('POSIX(ON) ALL31(ON)',
// 'ENVAR("LIBPATH=/usr/lib")/')
//STDENV DD PATH='/etc/nslapm2.env',PATHOPTS=(ORDONLY)
In the /etc/nslapm2.env file:
LIBPATH=/usr/lib
For more information on specifying run-time options, see z/OS Language Environment Programming Guide. For details on setting the LIBPATH environment variable, also see z/OS UNIX System Services Command Reference.
The /tmp/nslapm2.tcpname.pid is a temporary NSLAPM2 subagent pid file that the Network SLAPM2 subagent creates. This file contains the process ID of the current invocation of the Network SLAPM2 subagent.
The Network SLAPM2 subagent can be stopped using the stop command (P NSLAPM2), or using the kill command in the z/OS shell. For example, the following kill command with the TERM signal, where pid is the nslapm2 process ID, enables the Network SLAPM2 subagent to clean up resources properly before terminating itself:
kill -s TERM pid
The nslapm2 process ID can be obtained using the following z/OS UNIX command:
ps -A