Configuring an agent
In this topic you can find information about how to configure an agent.
Prerequisites
- The
REGISTER_AGENT
administrative security role is set for the user who performs the agent registration. - The user that performs the agent registration has the
CREATE
permission for theworkstation
item in theroot
folder. - The user that performs the agent registration has an existing API Key, otherwise a new API Key must be created.
- The user that performs the agent registration has added the API Key to the
WA_API_KEY
property in the deployment file of the agent.
Configuration
You can find the configuration setting of the agent in the
JobManager.ini
file.
JobManager.ini
. Along with the
agent ID, a token (JWT) is created and signed by a certificate provided by the
server. The token is stored in a file, you can find the path of the file stored in
the property jwt_file (section ITA SSL of ita.ini file). After having registered the
agent, the JWT is employed for authenticating every request sent from the agent. For
more information, see Authenticating the Orchestration CLI using API Keys.The JobManagerGW.ini
file contains the gateway configuration
settings of the agent when the gateway is set to connect to a dynamic agent located
behind a network boundary.
Only the parameters in the [ITA] and [ResourceAdvisorAgent] sections of the
JobManagerGW.ini
file require configuration. Definitions are
given for both the JobManager.ini
and
JobManagerGW.ini
files.
See Installation paths for information about how to locate the files. The parameters that are for internal use only are not documented.
The files are divided in sections, and the name of each section is enclosed between
square brackets. Sequences of variable = value
statements are
contained in each section.
- Log properties
- Trace properties when the agent is stopped. See Configuring trace properties when the agent is running to customize traces when the agent is running.
- Native job executor
- Java™ job executor
- Resource advisor agent
- System scanner
On Windows operating systems:
- <TWA_home>\TWS\stdlist\JM\JobManager_message.log
On UNIX and Linux operating systems:
- <TWA_DATA_DIR>/stdlist/JM/JobManager_message.log
On Windows operating systems:
-
- <TWA_home>\TWS\stdlist\JM\ITA_trace.log
- <TWA_home>\TWS\stdlist\JM\JobManager_trace.log
- <TWA_home>\TWS\JavaExt\logs\javaExecutor0.log
On UNIX and Linux operating systems:
-
- <TWA_DATA_DIR>/stdlist/JM/ITA_trace.log
- <TWA_DATA_DIR>/stdlist/JM/JobManager_trace.log
- <TWA_DATA_DIR>/JavaExt/logs/javaExecutor0.log
- Logging information about job types with advanced options
- You can use the
logging.properties
file to configure the logging process for job types.After installation, this file is as follows:# Specify the handlers to create in the root logger # (all loggers are children of the root logger) # The following creates two handlers handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler # Set the default logging level for the root logger .level = INFO # Set the default logging level for new ConsoleHandler instances java.util.logging.ConsoleHandler.level = INFO # Set the default logging level for new FileHandler instances java.util.logging.FileHandler.level = ALL java.util.logging.FileHandler.pattern = C:\TWA_home\TWS\JavaExt\logs\javaExecutor%g.log java.util.logging.FileHandler.limit = 1000000 java.util.logging.FileHandler.count = 10 # Set the default formatter for new ConsoleHandler instances java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter # Set the default logging level for the logger named com.mycompany com.ibm.scheduling = INFO
You can customize:- The logging level (from INFO to WARNING, ERROR, or ALL) in the
following keywords:
.level
- Defines the logging level for the internal logger.
com.ibm.scheduling
- Defines the logging level for the job types. To log information about job types, set this keyword to ALL.
- The path where the logs are written, specified by the following
keyword:
java.util.logging.FileHandler.pattern
- The logging level (from INFO to WARNING, ERROR, or ALL) in the
following keywords:
JobManager.ini
and
JobManagerGW.ini
files are customizable. Below, you can find a
list of the configurable properties:- Configuring log message properties [JobManager.Logging.cclog].
- Configuring trace properties when the agent is stopped [JobManager.Logging.cclog].
- Configuring common launchers properties [Launchers].
- Configuring properties of the native job launcher [NativeJobLauncher].
- Configuring properties of the Java job launcher [JavaJobLauncher].
- Configuring properties of the Resource advisor agent [ResourceAdvisorAgent].
- Configuring properties of the System scanner [SystemScanner]