CL Command Reference - ENDTCPPTP

CL Command List > ENDTCPPTP Reference

Description:

The End Point-to-Point TCP/IP (ENDTCPPTP) command is used to end a point-to-point TCP/IP session job. A session job operates in one of two possible modes:

1. Answer mode sessions (*ANS) allow a remote system to contact the local system and establish a point-to-point TCP/IP session.

2. Dial mode sessions (*DIAL) allow the local system to contact a remote system that supports point-to-point TCP/IP.

Note: Profiles of linetype *PPP can ended with this command but any configuration of *PPP profiles must be done using the iSeries Navigator graphical user interface.

The TCP/IP point-to-point session jobs run in the QSYSWRK subsystem.


Examples:

Example 1: End a TCP/IP Point-To-Point Session Job

ENDTCPPTP CFGPRF(DIALPRF)

This command ends the point-to-point TCP/IP session job that is using configuration profile DIALPRF. The operating mode (OPRMODE) value will default to *ANY so the operating mode is not used in deciding whether to end the session job.



Example 2: End All Answer (*ANS) Mode TCP/IP Point-To-Point Session Jobs

ENDTCPPTP CFGPRF(*ALL) OPRMODE(*ANS)

This command ends all active or activating point-to-point answer mode (*ANS) TCP/IP session jobs.



Example 3: End All TCP/IP Point-To-Point Session Jobs

ENDTCPPTP CFGPRF(*ALL)

This command ends all active or activating point-to-point TCP/IP session jobs.



Example 4: End All TCP/IP Point-To-Point Session Jobs Starting with XYZ.

ENDTCPPTP CFGPRF(XYZ*)

This command ends all active or activating point-to-point TCP/IP session jobs that have profiles that begin with XYZ.



Example 5: End an Answer Mode TCP/IP Point-To-Point Session Job using a Specific Profile Name

ENDTCPPTP CFGPRF(DIALPRF) OPRMODE(*ANS)

This command will end the point-to-point TCP/IP session job using profile DIALPRF if this profile is defined to run in answer mode. If the profile is defined to run in dial mode then no action will be taken.