Table of Contents |
---|
Installing the JobScheduler Universal Agent
Prerequisites
- A Java Runtime Environment starting from version 1.8 is required.
Preparation
- Choose the JobScheduler Universal Agent archive for your platform the target system from the JobScheduler Downloads page.
Installation - Unzip the downloaded file to an arbitrary directory.
- Directory structure
bin
jobscheduler_agent.cmd
- The start script for Windows platforms.
jobscheduler_agent.sh
- The start script for Unix platforms.
lib
- The directory for Java libraries.
- Consider the settings in
log4j.xml
should you want to adjust the log output format.
var_4445
logs
config/private
(for ssl configuration)tmp
(for internal use)
service
(for Windows)
- On Windows Systems:
- You have to change the directory permissions for the
.\logs
and.\service
directories if you have extracted the JobScheduler Agent under e.g. C:\Program Files.- This step is not required if you extracted the JobScheduler Agent to e.g. C:\ProgamData.
Start a command prompt with elevated administrator rights and type e.g.
Code Block language bash title set full acces for "Users" on .\service and .\logs directory cd "path\to\JobScheduler Agent installation" icacls "service" /L /grant *S-1-5-32-545:(OI)(CI)F icacls "logs" /L /grant *S-1-5-32-545:(OI)(CI)F
- An installer is provided that is explained in detail with the JobScheduler Universal Agent - Installation with Windows Installer article.
- The installer asks for elevated administrator privileges, therefore it is not necessary to change the permissions in the
.\service
directory and the installer sets read/write permissions for the log directory.
- The installer asks for elevated administrator privileges, therefore it is not necessary to change the permissions in the
On Unix systems: - You have to change the directory permissions for the
- A tarball is provided and a versatile batch installation feature that allows Agents to be deployed to hundreds of servers within minutes. Users requiring to install a small number of Agents on Unix should follow the instructions given in the JobScheduler Universal Agent - Running multiple instances article.
- For Unix systems:
- A tarball archive is available that can be used for:
- manual installation of one or more instances on a small number of computers.
(The current article describes the installation of a single instance on a computer, the installation of multiple instances is described in the JobScheduler Universal Agent - Running multiple instances article.) - a versatile batch installation feature that allows Agents to be deployed to hundreds of servers within minutes.
(Described in the JobScheduler Universal Agent - Batch Installation and Update of Agents article.)
- manual installation of one or more instances on a small number of computers.
- A tarball archive is available that can be used for:
- For Windows systems:
- A .zip archive is available that can be used for:
- manual installation on a small number of computers.
(Described in the current article.) - the installation of a large number of Agents using third party deployment tools.
- manual installation on a small number of computers.
- An installer that can be used for manual installation a small number of computers.
(Described in detail in the JobScheduler Universal Agent - Installation with Windows Installer article.)
- A .zip archive is available that can be used for:
Installation
- Unzip the downloaded file to an arbitrary directory.
- Directory structure (only files and folders directly relevant ):
bin
jobscheduler_agent.cmd
- The start script for Windows platforms.
jobscheduler_agent.sh
- The start script for Unix platforms.
jobscheduler_agent_instance.sh-example
- A template for configuring multiple instances of the Universal Agent
lib
- The directory for Java libraries.
- Configure the settings in
log4j.xml
file if you want to adjust the log output format.
var_4445
logs
config/private
(for ssl configuration)tmp
(for internal use)
service
(for Windows)
- On Windows Systems:
- You have to change the directory permissions for the
.\logs
and.\service
directories if you have extracted the JobScheduler Agent under e.g. C:\Program Files.- This step is not required if you extracted the JobScheduler Agent to e.g. C:\ProgamData.
Start a command prompt with elevated administrator rights and type e.g.
Code Block language bash title set full acces for "Users" on .\service and .\logs directory cd "path\to\JobScheduler Agent installation" icacls "service" /L /grant *S-1-5-32-545:(OI)(CI)F icacls "logs" /L /grant *S-1-5-32-545:(OI)(CI)F
- You have to change the directory permissions for the
- If multiple instances are configured then every instance must have its own
./var_4445
data directory (e.g../var_<port of the instance>
)
Update of a JobScheduler Universal Agent
- Preparations for an update
- Stop all JobScheduler Universal Agent instances
- Remove the ./lib directory
- Unzip the downloaded file to the installation directory
- If you use the Windows installer of JobScheduler Universal Agent then the ./lib directory is updated automatically during the setup. It is not necessary to remove the ./lib directory before you start the installer.
Running the JobScheduler Universal Agent
- SOS does not recommend to run running the JobScheduler Agent as
root
(for Unix) or asAdministrator
(for Windows). - Instead the user account should be used that jobs are executed for. Should jobs be executed for a number of user accounts then consider the chapter Running multiple instances of JobScheduler Universal Agent.
...
- The Agent log level can be increased using the Agent's Apache ProcRun Demon Service Manager demon/service.
- On Windows systems this is installed in the Agent
service
Folder and will have a name such assos_jobscheduler_agent_4444w.exe
where4444
is the port the agent can be addressed over. - Start the ProcRun Manager, select the Logging tab in the Manager interface and set the level to Debug.
- The location of the log files has already been described above.
- (Do not forget to set the debug level back to Info once finished.)
Anchor | ||||
---|---|---|---|---|
|
- Multiple instances of the JobScheduler Agent on the same computer can be operated, e.g. for different user accounts that jobs should be executed for.
- Consider detailed instructions with the JobScheduler Universal Agent - Running multiple instances article.
Show If | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
Examples for Windows
Examples for Unix
|
Testing the JobScheduler Universal Agent Operability
A simple way to test if the installed JobScheduler Agent works as expected is to carry out a test using Process Classes. The Process Class and the corresponding job will be defined in your JobScheduler Master, which will connect to the JobScheduler Agent. SOS recommends to do the test locally to exclude connection problems, e.g. firewall settings, since the goal of the test is to see whether the JobScheduler Agent is working properly.
Process Class and Standalone Job
First create a Process Class, for example the following (find attached example: agent1.process_class.xml):
...
Find more details and use cases from the article: How to execute Jobs and Job Chains with Agents
Logs
The easiest way to check if the test was successful is to verify the contents of the job log in JOC and to see if the job completed successfully. Otherwise an error will be reported in JOC.
...
Code Block | ||||
---|---|---|---|---|
| ||||
2015-04-28 16:11:24.462 +0200 [DEBUG] akka.io.TcpListener - New connection accepted ...... ...... 2015-04-28 16:13:39.231 +0200 [DEBUG] spray.can.server.HttpServerConnection - TcpConnection terminated, stopping |
Remote File Watching
To configure remote file watching, see JobScheduler Universal Agent - Remote File Watching
See also
- Installation
- Operation
...