YADE JITL Job configuration
The following example shows a YADE JITL Job configuration with Credential Store. We are transferring files matching the regular expression ^UCD.*\.log$ present in the c:\sandbox\source directory to the remote FTP server's /home/test/inbound directory.
The Credential Store offers a central and secure location to store credentials rather then specifying FTP server's credentials, i.e. username, password, server name in JITL job parameters. Instead the JITL job is reading the parameters from the Credential Store.
The parameter target_use_credential_store=true tells the JITL job to look-up credentials in the Credential Store, next parameters target_credentialstore_filename and target_credentialstore_password specify the location and access password for the Credential Store.
The parameter target_credentialstore_keypath points to the location of the Credential Store file.
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="ISO-8859-1"?>
<job title="Localhost to FTP server copy (API Job for JobScheduler Advanced Data Exchange)" order="no">
<description >
|
...
JADE is an integrated data exchange solution. We recommend using our JADE job for wide range of data transfer i.e. FTP/SFTP .
This is one of our JITL jobs that are delivered with JobScheduler.
JADE job with credential store Copy operation , target credentials from Credential store
You get a job like the following:
Code Block | ||
---|---|---|
| ||
[SendUsingKeePass] target_include = Keepass_DataBase, keepass_homer_ftp operation <include file="jobs/jadeJob.xml"/> </description> <params > = copy make_Dirs <!-- YADE global profile ,background service settings , default log file --> <param name="settings" value="./jade_conf/jade_settings.ini"/> <param name="profile" value="globals"/> <param name= true "file_spec" = CS-1.txt ;; target_Dirvalue="^UCD.*\.log$"/> <param name="operation" value= /home/test target_make_Dirs "copy"/> <param name="verbose" = true target_transfer_mode value= ascii ;; "9"/> <!-- source settings --> <param name="source_protocol" value= "local"/> <param name="source_host" value= "localhost"/> <param name="source_dir" value= $\{TEMP\}/source | ||
Code Block | ||
| ||
<?xml version="1.0" encoding="ISO-8859-1"?> <job title="API Job for JobScheduler Advanced Data Exchange" order="no" name="jade_with_cs"> <settings > "c:\sandbox\source"/> <!-- credential store settings --> <param name="target_use_credential_store" value="true"/> <param name="target_credentialstore_filename" value=".\jade_conf\keepassX-test.kdb"/> <param name="target_credentialstore_password" value="testing"/> <log_level ><![CDATA[debug9]]></log_level><param name="target_credentialstore_keypath" value="sos/server/mp.sos"/> </settings> <description <!-- target settings --> <param name="target_protocol" <include file="jobs/jadeJob.xml"/> </description> <params value="ftp"/> <param name="profiletarget_dir" value="SendUsingKeePass/home/test/inbound"/> <param name="settings" value="$\{SCHEDULER_HOME\}\config\live\JADEWithCS\config\jade_settings.ini"/> target_make_dirs" value="true"/> <param name="operation" target_transfer_mode" value="copyascii"/> </params> <script language="java" java_class="sos.scheduler.jade.JadeJob"/> <run_time /> </job> |