Environment
This article describes the use of the JobScheduler Universal Agent Batch Installer in a homogeneous environment. We define a homogeneous environment as one in which a number of JobScheduler Agents will be installed according to the same prerequisites:
...
- First Installation: an Agent has not yet been installed on the server.
- Update Installation: an Agent has already been installed and may be up and running.
Excerpt Include |
---|
| Batch Installer Installation - Use Cases - Heterogeneous environment |
---|
| Batch Installer Installation - Use Cases - Heterogeneous environment |
---|
nopanel | true |
---|
|
Configuration
XML files
Configuring complex XML files with a text editor is often a tedious and error-prone procedure. To get around this, we recommend that you use our XML Editor to manage the configuration files required for the Batch Installer. The XML Editor automatically validates configuration files and therefore reduces the possibility of configuration errors. See the Using the XML Editor chapter below for more detailed information about using the XML Editor.
- After downloading the XML Editor, extract the contents of the zip file to a convenient folder (an installation routine is not required) and start the
sos.xml.editor.exe
program. - Open your
yade_agent_batch_installer_settings.xml
YADE configuration
file, which is located in the config/batch_installer
folder and assign the XSD schema
http://www.sos-berlin.com/schema/yade/YADE_configuration_v1.0.xsd. See the YADE profiles for the file transfer chapter below for instructions on how to configure the YADE configuration file. - Open your
batch_installer_config_file.xml
configuration file in the XML Editor and assign the scheduler_universal_agent_installations.xsd
schema: both files are located in the config/batch_installer
folder. See the Batch Installer Configuration File chapter below for instructions on how to configure the Batch Installer configuration file.
Info |
---|
|
- The XML Editor is available for Windows.
- YADE is an Open Source file transfer solution for FTP, SFTP, FTPS, WebDAV and other protocols. Concretely, it will be used here for transferring the following files from the JobScheduler Master to the Agent servers:
- JobScheduler Universal Agent installation files:
jobscheduler_unix_universal_agent.<version>.tar.gz - Start script for an Agent instance:
jobscheduler_agent_<port>.sh - Installation script:
jobscheduler_universal_agent_install.sh
- For more information about YADE, see the YADE product site.
|
JobScheduler Jobs
Carry out the following once the job and job chain have been extracted to the live
folder of your JobScheduler Master:
AgentBatchInstaller
job: set the parameter values for the AgentBatchInstaller
job in your JobScheduler Master.
Installation of the Agents
The Agents can be installed after the XML configuration files and JobScheduler jobs have been configured. Start a task for the AgentBatchInstaller
job as follows:
- Open a JobScheduler Operating Center (JOC) browser window for the JobScheduler master.
- Go on the "Jobs" Window and open the "batch_installer_universal_agent" folder.
- Right click on the job to open the context menu.
- Select the
Start task immediately
operation. - This job will create the appropriate JobScheduler orders as explained in the chapter Batch Installer Application.
Example: Installation of two Agents
The following example describes the installation of two Agents on separate servers. First of all, the YADE configuration file for the file transfer will be configured (in XML format), it will then be converted to the YADE settings file format (.ini) and finally the Batch Installer configuration file will be specified.
Anchor |
---|
| yade_profile_transfer |
---|
| yade_profile_transfer |
---|
|
YADE Configuration File for File TransferWe assume that you have opened the yade_agent_batch_installer_settings.xml
YADE configuration file in the XML Editor and assigned the http://www.sos-berlin.com/schema/yade/YADE_configuration_v1.0.xsd
XSD schema.
...
Code Block |
---|
language | xml |
---|
title | YADE Configuration File |
---|
collapse | true |
---|
|
<?xml version="1.0" encoding="utf-8"?>
<Configurations xsi:noNamespaceSchemaLocation="http://www.sos-berlin.com/schema/yade/YADE_configuration_v1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Fragments>
<ProtocolFragments>
<SFTPFragment name="SFTP_192.11.0.111:4445">
<BasicConnection>
<Hostname><![CDATA[192.11.0.111]]></Hostname>
</BasicConnection>
<SSHAuthentication>
<Account><![CDATA[test]]></Account>
<AuthenticationMethodPassword>
<Password><![CDATA[xxxx]]></Password>
</AuthenticationMethodPassword>
</SSHAuthentication>
</SFTPFragment>
<SFTPFragment name="SFTP_192.11.0.95:4445">
<BasicConnection>
<Hostname><![CDATA[192.11.0.95]]></Hostname>
</BasicConnection>
<SSHAuthentication>
<Account><![CDATA[test]]></Account>
<AuthenticationMethodPassword>
<Password><![CDATA[xxxx]]></Password>
</AuthenticationMethodPassword>
</SSHAuthentication>
</SFTPFragment>
</ProtocolFragments>
</Fragments>
<Profiles>
<Profile profile_id="192.11.0.111:4445">
<Operation>
<Copy>
<CopySource>
<CopySourceFragmentRef>
<LocalSource />
</CopySourceFragmentRef>
<SourceFileOptions>
<Selection>
<FileSpecSelection>
<FileSpec><![CDATA[.*\.(sh|gz)$]]></FileSpec>
<Directory><![CDATA[C:\Program Files (x86)\sos-berlin.com\jobscheduler\vg_4444\scheduler_data\config\batch_installer]]></Directory>
</FileSpecSelection>
</Selection>
</SourceFileOptions>
</CopySource>
<CopyTarget>
<CopyTargetFragmentRef>
<SFTPFragmentRef ref="SFTP_192.11.0.111:4445" />
</CopyTargetFragmentRef>
<Directory><![CDATA[/home/test/tmp/]]></Directory>
</CopyTarget>
</Copy>
</Operation>
</Profile>
<Profile profile_id="192.11.0.95:4445">
<Operation>
<Copy>
<CopySource>
<CopySourceFragmentRef>
<LocalSource />
</CopySourceFragmentRef>
<SourceFileOptions>
<Selection>
<FileSpecSelection>
<FileSpec><![CDATA[.*\.(sh|gz)$]]></FileSpec>
<Directory><![CDATA[C:\Program Files (x86)\sos-berlin.com\jobscheduler\vg_4444\scheduler_data\config\batch_installer]]></Directory>
</FileSpecSelection>
</Selection>
</SourceFileOptions>
</CopySource>
<CopyTarget>
<CopyTargetFragmentRef>
<SFTPFragmentRef ref="SFTP_192.11.0.95:4445" />
</CopyTargetFragmentRef>
<Directory><![CDATA[/home/test/tmp/]]></Directory>
</CopyTarget>
</Copy>
</Operation>
</Profile>
</Profiles>
</Configurations> |
Anchor |
---|
| yade_settings_file |
---|
| yade_settings_file |
---|
|
YADE Settings File for File TransferNote that the file shown above is in the YADE XML format and that YADE versions 1.10 and older require a .ini
file to perform the transfer that is specified in the <globals><install_path><transfer><settings>
element in the Batch Installer configuration file.
Code Block |
---|
title | .ini file |
---|
collapse | true |
---|
|
[protocol_fragment_sftp@SFTP_192.11.0.111:4445]
protocol = sftp
host = 192.11.0.111
user = test
ssh_auth_method = password
password = xxxx
[protocol_fragment_sftp@SFTP_192.11.0.95:4445]
protocol = sftp
host = 192.11.0.95
user = test
ssh_auth_method = password
password = xxxx
[192.11.0.111:4445]
operation = copy
source_protocol = local
file_spec = .*\.(sh|gz)$
source_dir = C:\Program Files (x86)\sos-berlin.com\jobscheduler\vg_4444\scheduler_data\config\batch_installer
target_include = protocol_fragment_sftp@SFTP_192.11.0.111:4445
target_dir = /home/test/tmp/
[192.11.0.95:4445]
operation = copy
source_protocol = local
file_spec = .*\.(sh|gz)$
source_dir = C:\Program Files (x86)\sos-berlin.com\jobscheduler\vg_4444\scheduler_data\config\batch_installer
target_include = protocol_fragment_sftp@SFTP_192.11.0.95:4445
target_dir = /home/test/tmp/ |
Anchor |
---|
| batch_installer_config_file |
---|
| batch_installer_config_file |
---|
|
Batch Installer Configuration FileWe assume that you have opened the Batch Installer configuration file batch_installer_config_file.xml
in the XML Editor and assigned the scheduler_universal_agent_installations.xsd
XSD schema.
...
Excerpt |
---|
Using the XML Editor The XML Editor can be used to manage the Batch Installer configuration file and the YADE configuration file. XML Editor for Batch Installer configuration fileAn example Batch Installer configuration file for the installation of a single Agent is shown in the following screenshot:
XML Editor for YADE configuration fileAn example YADE configuration file for the installation of a single Agent is shown in the next screenshot:
Anchor |
---|
| yadexml2ini_converter |
---|
| yadexml2ini_converter |
---|
| XML Editor for converting YADE configuration files (XML) into YADE setting files (.ini)The "YADE Xml2Ini Converter" function in the XML Editor is available for converting YADE files from XML to the .ini format required by versions of YADE before 1.11. Clicking on the button of the same name will open the following form:
Note that it is not necessary to create a Profile for the Batch Installer, as conversion will take place automatically once the "Autotransform" option has been chosen. Every time a change in the XML file is saved the XML file will be automatically converted and saved in .ini format. A pop-up window will show every time a change is saved if the option "Show notification on autotransform" is chosen. |