CL Command Reference - STRAGTSRV

CL Command List > STRAGTSRV Reference

Description:

The Start Agent Services (STRAGTSRV) command starts all of the 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 started. 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 use the End Agent Services (ENDAGTSRV) command to end the agent services started by this command.

Restrictions:

. You must have all object (*ALLOBJ) and job control (*JOBCTL) special authorities to run this command.


Examples:

Example 1: Starting with Shipped Default Values

STRAGTSRV

This command starts 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/¡¯. The home directory of each agent service will be set to the Home Directory of the current user. All jobs submitted to run the Java Virtual Machines will run under the current profile.



Example 2: Starting with User-Specified Values

STRAGTSRV PREFDIR(¡¯/qibm/userData/OS400/able/test/¡¯)
HOMEDIR(¡¯/qibm/userData/OS400/able/test/¡¯)
CLASSPATH(¡¯/qibm/userData/OS400/able/test/test.jar¡¯)
SBMJOBUSER((POOL1 TESTPROF1) (POOL3 TESTPROF3))

This command starts all of the 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/¡¯. The home directory of each agent service will be set to ¡¯/qibm/userData/OS400/able/test/¡¯. The Java Virtual Machines will have thier classpaths set to include the test.jar Java Archive file in ¡¯/qibm/userData/OS400/able/test/¡¯. The jobs submitted to run the Java Virtual Machines for POOL1 and POOL3 will run under the users TESTPROF1 and TESTPROF3 respectivley, all other JVMs will run under the current user profile.