You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

General setup

The JADE profiles can be cascaded or included by one other profiles. This feature enable to create generic base profiles i.e. server connection settings, background service etc.
The other JADE profiles then can include base profiles for transfers.

Copy from Localhost to FTP server : Simple profile

JADE profile

[copy_localhost2server_with_cs]
file_spec                         = .*
operation                         = copy
verbose                           = 9
;;
source_protocol                   = local
source_host                       = localhost
source_dir                        = $\{TEMP\}/source
source_make_dirs                  = true
;;
target_use_credential_Store       = true
target_CredentialStore_FileName   = C:\Program Files\sos-berlin.com\jobscheduler.1.6.4043\djsmp02_4445\examples\keepassX-test.kdb
target_CredentialStore_password   = testing
target_CredentialStore_KeyPath    = sos/server/mp.sos
;;
target_dir                        = /home/test/inbound
target_make_dirs                  = true
target_protocol                   = ftp
target_transfer_mode              = ascii

Casecade profiles

JADE jade_settings.ini file with cascaded profiles


[Keepass_DataBase]
use_credential_Store       = true
CredentialStore_FileName   = .\examples\keepassX-test.kdb
CredentialStore_password   = testing

[keepass_mp_ftp]
CredentialStore_KeyPath  = sos/server/mp.sos
protocol                 = ftp


[localhost_default]
protocol = local
host=localhost

[copy_localhost2server_with_cs2]
file_spec                      = .*
operation                      = copy
verbose                        = 9
;;
source_include                 = localhost_default
source_dir                     = $\{TEMP\}/source
source_make_Dirs               = true
;;
target_include                 = Keepass_DataBase, keepass_mp_ftp
target_dir                     = /home/test/inbound
target_make_dirs               = true
target_transfer_mode           = ascii

JobScheduler jade_copy_localhost2server_with_cs.job.xml job

The JobScheduler jade_copy_localhost2server_with_cs.job.xml JITL job can be configured with two parameters - profile and settings:

<?xml version="1.0" encoding="ISO-8859-1"?>


<job  title="Localhost to FTP server copy (API Job for JobScheduler Advanced Data Exchange)" order="no" name="jade_copy_localhost2server_with_cs">
    <settings >
        <log_level ><![CDATA[debug9]]></log_level>
    </settings>

    <description >
        <include  file="jobs/jadeJob.xml"/>
    </description>

    <params >
        <param  name="profile" value="copy_localhost2server_with_cs"/>
        <param  name="settings" value="$\{SCHEDULER_HOME\}/examples/jade_settings.ini"/>
    </params>

    <script  language="java" java_class="sos.scheduler.jade.JadeJob"/>

    <run_time />
</job>

JADE Command Line Interface (CLI) client example

The jade_settings.ini profiles can be called from JobScheduler JITL job or from the JADE CLI client.
See the JADE CLI client example below.

C:\Program Files\sos-berlin.com\jade\jade_client_1.6.4043\bin>set CS_HOME=C:\Program Files\sos-berlin.com\jobscheduler.1.6.4043\djsmp02_4445\examples

C:\Program Files\sos-berlin.com\jade\jade_client_1.6.4043\bin>jade.cmd -settings="%CS_HOME%"/jade_settings.ini -profile=copy_server2localhost_with_cs
  • No labels