IN PROGRESS
Scope
- YADE implements a Virtual File System that supports a number of data providers, e.g. SMB/CIFS protocol implementation by Samba, SFTP protocol implemented by JSch library.
- Data providers can make use of individual Java properties, e.g. for SMB/CIFS to specify compatibility levels for authentication with NTLMv2 and newer or for SFTP to specify packet compression to zlib, compression level 9 or Cipher blowfish-cbc,aes192-ctr etc.
- YADE allows to specify Java property files at a global level and individually per transfer fragment.
- YADE allows to specify configuration files individually per transfer fragment.
YADE Java Property File Configuration
YADE System Property Configuration
The Java properties configured using system_property_files
options are global properties available to all protocol fragments. The system_property_files
option can be assign a semicolon separated list of property files. A property file can contain on or more properties as key value pairs.
Following are two examples of such system property files, which contains global Java properties for a data providers. One system property file can also contain properties for multiple data provider. At the run time the YADE will automatically apply applicable properties to respective data provider e.g. SFTP properties to JSch data provider and SMB properties to JCifs data provider.
sftp_system_properties.ini
SystemProperyFile sftp_system_proprerties.in# SFTP properties known_hosts=/home/gollum.sos/.ssh/known_hosts remote_exec=true
smb_system_properties.ini
SystemProperyFile smb_system_properties.ini# SMB properties jcifs.smb.client.useExtendedSecurity=false
Example
Description
- The YADE profile has three sections
- Globals section
- Protocol Fragments section
- Transfer Profiles section
- In the following example
yade_settings.ini
file, under the globals section the system property files are configure as semicolon separated list of files by the optionsystem_property_files
. - The properties defined in the files
sftp_system_properties.ini
and smb_system_properties.ini will be available to all the protocol fragments. At the run time the YADE will automatically apply applicable properties to respective data provider e.g. SFTP properties to JSch data provider and SMB properties to JCifs data provider. The
known_hosts
andprotocol_fragment_sftp@sftp-uk.sos
andprotocol_fragment_sftp@sftp-japan.sos
.
YADE Settings
YADE Configuration Files Configuration
The protocol fragment specific Java properties can be configured using configuration_files
option on protocol fragment level . The configuration_files
option can be assign a semicolon separated list of property files. A property file can contain on or more properties as key value pairs.
Example
- SFTP packet compression configuration sftp-zlip-compression.ini
# ssh packet compression compression.s2c=zlib@openssh.com,zlib,none compression.c2s=zlib@openssh.com,zlib,none compression_level=9
- SFTP Cipher configuration sftp-cipher-aes128-ctr.ini
# ssh transfer cipher cipher=aes128-ctr
Description
- The global SystemProperty file will be applicable as described in the previous section YADE System Property Configuration.
- In the following YADE Settings example two configuration files are created, both of them has configuration properties for the SFTP data provider;
sftp-zlip-compression.ini
: effects packet compression during transfer over SFTP.sftp-cipher-aes128-ctr.ini
: effects Cipher used by SFTP data provider.
The
sftp-zlip-compression.ini
is referred by the protocol fragmentprotocol_fragment_sftp@sftp-uk.sos
usingconfiguration_files
option, thus the packet compression properties will only be applicable to the transfers using protocol fragment protocol_fragment_sftp@sftp-uk.sos e.g.CopyLocal2SFTPUKSOS
Similarly the
sftp-cipher-aes128-ctr.ini
is referred by the protocol fragment protocol_fragment_sftp@sftp-japan.sos usingconfiguration_files
option, thus the Cipher aes128-ctr will only be applicable to the transfers using the protocol fragmentprotocol_fragment_sftp@sftp-japan.sos e.g. CopySFTPJapanSOS2Local.
YADE Settings
References
Change Management References