CL Command Reference - ENDAGTSRV
CL Command List > ENDAGTSRV Reference
Description:
The End Agent Services (ENDAGTSRV) command ends all of the active agent services on this system that are defined in a preferences file. Another preferences file is also used to help define how the services are ended. The preferences files are stream files named ableplatform.preferences and able.preferences that are located in the directory specified for the Preferences file directory (PREFDIR) parameter.
You can restart the agent services by running the Start Agent Services (STRAGTSRV) command.
Restrictions:
. You must have all object (*ALLOBJ) and job control (*JOBCTL) special authorities to run this command.
Examples:
Example 1: Ending with Shipped Default Values
ENDAGTSRV
This command ends all of the agent services defined in the default ableplatform.preferences file in กฏ/qibm/prodData/OS400/able/กฏ in a way defined in the default able.preferences file in กฏ/qibm/prodData/OS400/able/กฏ.
Example 2: Ending with User-Specified Values
ENDAGTSRV PREFDIR(กฏ/qibm/userData/OS400/able/test/กฏ)
This command ends all of the running agent services defined in the ableplatform.preferences file in กฏ/qibm/userData/OS400/able/test/กฏ in a way defined in the default able.preferences file in กฏ/qibm/userData/OS400/able/test/กฏ.