...
YADE System Property Configuration
The System property is a global property Java properties configured using System Property Files are global properties available to all protocol fragments and transfer profiles. The SystemPropertyFiles
option can be assign a semicolon separated list of property files. The property files can contain on or more properties as key value pairs.
Following is the example of such a System Property File which contains global properties for multiple data providers. The YADE will apply applicable properties to respective data provider e.g. SFTP properties to JSch data provider and SMB properties to JCifs data provider.
sftp_system_proprieties.ini
Code Block language bash title SystemProperyFile
...
sftp_
...
system_
...
proprieties.
...
in # SFTP properties known_hosts=/home/gollum.sos/.ssh/known_hosts remote_exec=true
smb_system_proprieties.ini
Code Block language bash title SystemProperyFile smb_system_proprieties.ini # SMB properties jcifs.smb.client.useExtendedSecurity=false
Example
Description
- The YADE profile has three sections 1. globals section 2. Protocol sections and 3. Transfer profile sections.sections
- Globals section
- ProtocolsFragments section
- Transfer Profiles section
- The system properties files configure under globals section with option
system_property_files
will be available to all the protocol fragments and transfer profilesThe YADE will apply applicable properties to respective data provider e.g. SFTP properties to JSch data provider and SMB properties to JCifs data provider. . - In following above mentioned example the location of hashed known hosts file is configured as name value pair in the file
hashed_known_hosts.ini.
The
known_hosts
system property will be available and applied to all the fragments and profile using SFTP data provider e.g. to protocol fragments protocol_fragment_sftp@sftp-uk.sos and protocol_fragment_sftp@sftp-japan.sos.
YADE Settings
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[globals] history = /home/test/sos-berlin.com/jade_client/logs/jade_history.csv system_property_files = /home/test/sos-berlin.com/jade_client/configurations/sftp_system_proprieties.ini ; /home/test/sos-berlin.com/jade_client/configurations/hashedsmb_knownsystem_hostsproprieties.ini [protocol_fragment_sftp@sftp-uk.sos] protocol = sftp host = uk.sos port = 22 user = london ssh_auth_method = publickey ssh_auth_file = ${HOME}/.ssh/id_rsa [protocol_fragment_sftp@sftp-japan.sos] protocol = sftp host = japan.sos user = tokyo ssh_auth_method = publickey ssh_auth_file = ${HOME}/.ssh/id_rsa [CopyLocal2SFTPUKSOS] operation = copy file_spec = TEST-M-1111.TXT source_protocol = local source_dir = /mnt/r2d2/nobackup/data/from_galadriel target_include = protocol_fragment_sftp@sftp-uk.sos target_dir = /home/london/data/to_london/ [CopySFTPJapanSOS] operation = copy file_spec = TEST-M-2222.TXT source_protocol = sftp source_include = protocol_fragment_sftp@sftp-japan.sos source_dir = /home/tokyo/data/from_tokyo/ target_protocol = local target_dir = /mnt/r2d2/nobackup/data/to_galadriel |
...
Code Block language bash collapse true [globals] history = /home/test/sos-berlin.com/jade_client/logs/jade_history.csv system_property_files = /home/test/sos-berlin.com/jade_client/configurations/known_hosts_filesftp_system_proprieties.ini ; /home/test/sos-berlin.com/jade_client/configurations/smb_system_proprieties.ini [protocol_fragment_sftp@sftp-uk.sos] protocol = sftp host = uk.sos port = 22 user = london ssh_auth_method = publickey ssh_auth_file = ${HOME}/.ssh/id_rsa configuration_files = /home/test/sos-berlin.com/jade_client/configurations/sftp-zlip-compression.ini [protocol_fragment_sftp@sftp-japan.sos] protocol = sftp host = japan.sos user = tokyo ssh_auth_method = publickey ssh_auth_file = ${HOME}/.ssh/id_rsa configuration_files = /home/test/sos-berlin.com/jade_client/configurations/sftp-cipher-aes128-ctr.ini [CopyLocal2SFTPUKSOS] operation = copy file_spec = TEST-M-1111.TXT source_protocol = local source_dir = /mnt/r2d2/nobackup/data/from_galadriel target_include = protocol_fragment_sftp@sftp-uk.sos target_dir = /home/london/data/to_london/ [CopySFTPJapanSOS] operation = copy file_spec = TEST-M-2222.TXT source_protocol = sftp source_include = protocol_fragment_sftp@sftp-japan.sos source_dir = /home/tokyo/data/from_tokyo/ target_protocol = local target_dir = /mnt/r2d2/nobackup/data/to_galadriel
...