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 | ||||
---|---|---|---|---|
|
...
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.
You get a job like the following:
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 > <include file="jobs/jadeJob.xml"/> </description> <params > <!-- YADE global profile ,background service settings , default log file --> <param name="settings" value="./jade_with_cs"> <settings conf/jade_settings.ini"/> <param name="profile" value="globals"/> <param name="file_spec" value="^UCD.*\.log$"/> <log_level ><![CDATA[debug9]]></log_level> </settings> <description > <param name="operation" value="copy"/> <param name="verbose" value="9"/> <!-- source settings --> <param name="source_protocol" <include filevalue="jobs/jadeJob.xml"/> </description> <params local"/> <param name="source_host" value="localhost"/> <param name="source_dir" value="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"/> <param name="profiletarget_credentialstore_keypath" value="SendUsingKeePasssos/server/mp.sos"/> <!-- target settings --> <param name="target_protocol" value="ftp"/> <param name="settings" value="$\{SCHEDULER_HOME\}\config\live\JADEWithCS\config\jade_settings.ini"/> target_dir" value="/home/test/inbound"/> <param name="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> |