Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

Introduction

The JADE profiles can be cascaded or included by one other profiles. This feature enable to create generic fragments i.e. server connection settings, background service etc.
The other JADE profiles then can include base fragments. The cascaded profiles enable the users to create generic profile fragments. The fragments can be included as a target or source settings, thus same server can be configured as source or target without duplicating the server settings i.e. fragment.

Simple profile with all the settings under one profile

JADE profile

Code Block

[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

...

JADE jade_settings.ini file with cascaded profiles

Code Block



[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

...

Code Block
languagehtml/xml

<?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>

...

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.

Code Block
languagebash

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