...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="ISO-8859-1"?> <job order="no" stop_on_error="no"> <params > <!-- SOURCE ==> DMZ ==> TARGET --> <!-- file settings --> <param name="file_spec" value="^jade_test_bigfile_.*\.csv$"/> <!-- operation copytointernet --> <param name="operation" value="copytointernet"/> <param name="verbose" value="2"/> <!-- file source local_source Jobscheduler host--> <param name="source_host" value="localhost"/> <param name="source_dir" value="C:\sandbox\source"/> <param name="source_protocol" value="local"/> <!-- DMZ server settings--> <param name="jump_host" value="gollum"/> <param name="jump_user" value="jenkins"/> <param name="jump_ssh_auth_method" value="password"/> <param name="jump_password" value="Bt347w%3Ka-AuZp"/> <param name="jump_protocol" value="sftp"/> <param name="jump_command" value="/home/jenkins/sos-berlin.com/jade/client.1.7-SNAPSHOT/bin/jade.sh"/> <!-- target server settings--> <param name="target_host" value="homer.sos"/> <param name="target_port" value="22"/> <param name="target_protocol" value="sftp"/> <param name="target_user" value="test"/> <param name="target_ssh_auth_method" value="password"/> <param name="target_password" value="D3f*-ex;n55N6Hx"/> <param name="target_dir" value="/home/test/inbound"/> <!-- useruse explicit passive mode if firewall blocks the data connection --> <param name="target_passive_mode" value="true"/> </params> <script language="java" java_class_path="" java_class="sos.scheduler.jade.Jade4DMZJob"/> <run_time /> </job> |
Receive files from internet via DMZ
1) Copy data
As a first step, after checking and creating the temp-folder, the files from the remote server are copied by the JADE client to the temp-folder in the DMZ.
(2) Start JADE Client on DMZ by SSH
The JADE Client is starting the JADE CLI on the DMZ, using SSH.
(3) Copy data to Internet
The JADE CLI on the DMZ is transferring the files to the destination site in the internal zone
(4) Delete data on DMZ
After successful transfer the JADE Client is deleting the files on the DMZ using SSH.
(5) Delete data on local
If configured to do so, the files on the receiving site will be deleted by the JADE Client.
Example CopyFromInternet JADE JILT Job
Example CopyToInternet JADE Client Profile
Code Block | ||||
---|---|---|---|---|
| ||||
[CopyFromInternet]
file_spec = \.txt$
;;operation copyfrominternet
operation = copyfrominternet
verbose = 2
;; file source local_source Jobscheduler host
;;
target_host = localhost
target_dir = C:\sandbox\target
target_protocol = local
;; DMZ server settings
;;
jump_host = gollum
jump_user = jenkins
jump_ssh_auth_method = password
jump_password = Bt347w%3Ka-AuZp
jump_protocol = sftp
jump_command = /home/jenkins/sos-berlin.com/jade/client.1.7-SNAPSHOT/bin/jade.sh
;; target server settings
;;
source_host = homer.sos
source_port = 22
source_protocol = sftp
source_user = test
source_ssh_auth_method = password
source_password = D3f*-ex;n55N6Hx
source_dir = /home/test/outbound
;; use explicit passive mode if firewall blocks the data connection -->
source_passive_mode = true |
Receive files from internet via DMZ
1) Copy data
As a first step, after checking and creating the temp-folder, the files from the remote server are copied by the JADE client to the temp-folder in the DMZ.
(2) Start JADE Client on DMZ by SSH
The JADE Client is starting the JADE CLI on the DMZ, using SSH.
(3) Copy data to Internet
The JADE CLI on the DMZ is transferring the files to the destination site in the internal zone
(4) Delete data on DMZ
After successful transfer the JADE Client is deleting the files on the DMZ using SSH.
(5) Delete data on local
If configured to do so, the files on the receiving site will be deleted by the JADE Client.
Example CopyFromInternet JADE JILT Job
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
<job order="no" stop_on_error="no">
<params >
<!-- SOURCE ==> DMZ ==> TARGET -->
<!-- file settings -->
<param name="file_spec" value="\.txt$"/>
<!-- operation copyfrominternet -->
<param name="operation" value="copyfrominternet"/>
<param name="verbose" value="2"/>
<!-- file source local_source Jobscheduler host-->
<param name="target_host" value="localhost"/>
<param name="target_dir" value="C:\sandbox\target"/>
<param name="target_protocol" value="local"/>
<!-- DMZ server settings-->
<param name="jump_host" value="gollum"/>
<param name="jump_user" value="jenkins"/>
<param name="jump_ssh_auth_method" value="password"/>
<param name="jump_password" value="Bt347w%3Ka-AuZp"/>
<param name="jump_protocol" value="sftp"/>
<param name="jump_command" value="/home/jenkins/sos-berlin.com/jade/client.1.7-SNAPSHOT/bin/jade.sh"/>
<!-- target server settings-->
<param name="source_host" value="homer.sos"/>
<param name="source_port | ||||||
Code Block | ||||||
| ||||||
<?xml version="1.0" encoding="ISO-8859-1"?> <job order="no" stop_on_error="no"> <params > <!-- SOURCE ==> DMZ ==> TARGET --> <!-- file settings --> <param name="file_spec" value="\.txt$22"/> <param name="source_protocol" <!-- operation copyfrominternet -- value="sftp"/> <param name="operation"source_user" value="copyfrominternettest"/> <param name="source_ssh_auth_method" value="verbosepassword"/> <param name="source_password" value="2D3f*-ex;n55N6Hx"/> <!-- file source local_source Jobscheduler host--> <param name="targetsource_hostdir" value="localhost/home/test/outbound"/> <param<!-- name="target_dir" value="C:\sandbox\target"/use explicit passive mode if firewall blocks the data connection --> <param name="targetsource_passive_protocolmode" value="localtrue"/> <!-- DMZ server settings--> <param name="jump_host" </params> <script value="gollumlanguage="java" java_class_path="" java_class="sos.scheduler.jade.Jade4DMZJob"/> <param name="jump_user"<run_time /> </job> |
Example CopyFromInternet JADE Client Profile
Code Block | ||||
---|---|---|---|---|
| ||||
[CopyFromInternet] file_spec value="jenkins"/> <param name="jump_ssh_auth_method" value="password"/> <param name="jump_password" \.txt$ ;; operation copyfrominternet operation value="Bt347w%3Ka-AuZp"/> = copyfrominternet verbose <param name="jump_protocol" value="sftp"/> <param name="jump_command"= 2 ;; file source local_source Jobscheduler host ;; source_host value="/home/jenkins/sos-berlin.com/jade/client.1.7-SNAPSHOT/bin/jade.sh"/> = localhost source_dir <!-- target server settings--> <param name="= C:\sandbox\target source_host"protocol = local ;; DMZ value="homer.sos"/> <param name="source_port"server settings ;; jump_host value="22"/> = gollum jump_user <param name="source_protocol" = jenkins jump_ssh_auth_method value="sftp"/> = password jump_password <param name="source_user" = Bt347w%3Ka-AuZp jump_protocol value="test"/> = sftp jump_command <param name="source_ssh_auth_method" value="password"/> <param name="source_password" /home/jenkins/sos-berlin.com/jade/client.1.7-SNAPSHOT/bin/jade.sh ;; target server settings ;; target_host value="D3f*-ex;n55N6Hx"/> = homer.sos target_port <param name="source_dir" = 22 target_protocol value="/home/test/outbound"/> = sftp target_user <!-- user explicit passive mode if firewall blocks the data connection --> = test target_ssh_auth_method = password target_password <param name="source_passive_mode"= D3f*-ex;n55N6Hx target_dir value="true"/> </params> <script language="java" java_class_path="" java_class="sos.scheduler.jade.Jade4DMZJob"/> <run_time /> </job>= /home/test/outbound ;; use explicit passive mode if firewall blocks the data connection --> target_passive_mode = true |
Related Downloads
...