...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="utf-8"?> <Configurations xsi:noNamespaceSchemaLocation="http://www.sos-berlin.com/schema/yade/YADE_configuration_v1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Fragments> <ProtocolFragments> <SFTPFragment name="SFTP_192.11.0.111:4445"> <BasicConnection> <Hostname><![CDATA[192.11.0.111]]></Hostname> </BasicConnection> <SSHAuthentication> <Account><![CDATA[test]]></Account> <AuthenticationMethodPassword> <Password><![CDATA[testxxxx]]></Password> </AuthenticationMethodPassword> </SSHAuthentication> </SFTPFragment> <SFTPFragment name="SFTP_192.11.0.111:4446"> <BasicConnection> <Hostname><![CDATA[192.11.0.111]]></Hostname> </BasicConnection> <SSHAuthentication> <Account><![CDATA[sos]]></Account> <AuthenticationMethodPassword> <Password><![CDATA[sosxxxx]]></Password> </AuthenticationMethodPassword> </SSHAuthentication> </SFTPFragment> <SFTPFragment name="SFTP_192.11.0.95:4445"> <BasicConnection> <Hostname><![CDATA[192.11.0.95]]></Hostname> </BasicConnection> <SSHAuthentication> <Account><![CDATA[sos]]></Account> <AuthenticationMethodPassword> <Password><![CDATA[sosxxxx]]></Password> </AuthenticationMethodPassword> </SSHAuthentication> </SFTPFragment> <SFTPFragment name="SFTP_192.11.0.95:4446"> <BasicConnection> <Hostname><![CDATA[192.11.0.95]]></Hostname> </BasicConnection> <SSHAuthentication> <Account><![CDATA[sos]]></Account> <AuthenticationMethodPassword> <Password><![CDATA[sosxxxx]]></Password> </AuthenticationMethodPassword> </SSHAuthentication> </SFTPFragment> </ProtocolFragments> </Fragments> <Profiles> <SFTPFragment<Profile nameprofile_id="SFTP_192.11.0.111:44484445"> <BasicConnection><Operation> <Copy> <Hostname><![CDATA[192.11.0.111]]></Hostname> </BasicConnection><CopySource> <SSHAuthentication> <CopySourceFragmentRef> <Account><![CDATA[test]]></Account> <LocalSource <AuthenticationMethodPassword>/> <Password><![CDATA[test]]></Password></CopySourceFragmentRef> </AuthenticationMethodPassword> <SourceFileOptions> </SSHAuthentication> </SFTPFragment><Selection> </ProtocolFragments> </Fragments> <Profiles> <Profile profile_id="192.11.0.111:4445"> <Operation><FileSpecSelection> <Copy> <CopySource><FileSpec><![CDATA[.*\.(sh|gz)$]]></FileSpec> <CopySourceFragmentRef> <Directory><![CDATA[C:\tmp\agent_batch]]></Directory> <LocalSource </>FileSpecSelection> </CopySourceFragmentRef>Selection> <SourceFileOptions></SourceFileOptions> </CopySource> <Selection> <CopyTarget> <FileSpecSelection> <CopyTargetFragmentRef> <FileSpec><![CDATA[.*\.(sh|gz)$]]></FileSpec><SFTPFragmentRef ref="SFTP_192.11.0.111:4445" /> </CopyTargetFragmentRef> <Directory><![CDATA[C:\tmp\agent_batch/home/test/tmp/]]></Directory> </CopyTarget> </FileSpecSelection>Copy> </Operation> </Profile> </Selection><Profile profile_id="192.11.0.111:4446"> <Operation> </SourceFileOptions><Copy> </CopySource><CopySource> <CopyTarget> <CopySourceFragmentRef> <CopyTargetFragmentRef> <LocalSource /> <SFTPFragmentRef ref="SFTP_192.11.0.111:4445" /> </CopySourceFragmentRef> </CopyTargetFragmentRef><SourceFileOptions> <Directory><![CDATA[/home/test/tmp/]]></Directory> <Selection> </CopyTarget> </Copy><FileSpecSelection> </Operation> </Profile> <Profile profile_id="192.11.0.111:4446"> <Operation><FileSpec><![CDATA[.*\.(sh|gz)$]]></FileSpec> <Copy> <CopySource> <Directory><![CDATA[C:\tmp\agent_batch]]></Directory> <CopySourceFragmentRef> </FileSpecSelection> <LocalSource </>Selection> </CopySourceFragmentRef>SourceFileOptions> </CopySource> <SourceFileOptions> <CopyTarget> <Selection> <CopyTargetFragmentRef> <FileSpecSelection> <SFTPFragmentRef ref="SFTP_192.11.0.111:4446" /> <FileSpec><![CDATA[.*\.(sh|gz)$]]></FileSpec> </CopyTargetFragmentRef> <Directory><![CDATA[C:\tmp\agent_batch/home/sos/tmp/]]></Directory> </CopyTarget> </FileSpecSelection>Copy> </Operation> </Selection>Profile> <Profile profile_id="192.11.0.95:4445"> <Operation> </SourceFileOptions> <Copy> </CopySource> <CopyTarget><CopySource> <CopyTargetFragmentRef><CopySourceFragmentRef> <SFTPFragmentRef ref="SFTP_192.11.0.111:4446"<LocalSource /> </CopyTargetFragmentRef>CopySourceFragmentRef> <Directory><![CDATA[/home/sos/tmp/]]></Directory><SourceFileOptions> </CopyTarget> <Selection> </Copy> <FileSpecSelection> </Operation> </Profile> <Profile profile_id="192.11.0.95:4445"> <FileSpec><![CDATA[.*\.(sh|gz)$]]></FileSpec> <Operation> <Copy> <Directory><![CDATA[C:\tmp\agent_batch]]></Directory> <CopySource> <CopySourceFragmentRef></FileSpecSelection> <LocalSource </>Selection> </CopySourceFragmentRef>SourceFileOptions> <SourceFileOptions></CopySource> <Selection><CopyTarget> <CopyTargetFragmentRef> <FileSpecSelection> <SFTPFragmentRef ref="SFTP_192.11.0.95:4445" /> <FileSpec><![CDATA[.*\.(sh|gz)$]]></FileSpec> </CopyTargetFragmentRef> <Directory><![CDATA[C:\tmp\agent_batch/home/sos/tmp/]]></Directory> </FileSpecSelection>CopyTarget> </Copy> </Selection>Operation> </SourceFileOptions>Profile> <Profile profile_id="192.11.0.95:4446"> <Operation> </CopySource> <Copy> <CopyTarget><CopySource> <CopyTargetFragmentRef><CopySourceFragmentRef> <SFTPFragmentRef ref="SFTP_192.11.0.95:4445"<LocalSource /> </CopyTargetFragmentRef>CopySourceFragmentRef> <Directory><![CDATA[/home/sos/tmp/]]></Directory><SourceFileOptions> </CopyTarget> <Selection> </Copy> </Operation> </Profile><FileSpecSelection> <Profile profile_id="192.11.0.95:4446"> <Operation> <Copy><FileSpec><![CDATA[.*\.(sh|gz)$]]></FileSpec> <CopySource> <Directory><![CDATA[C:\tmp\agent_batch]]></Directory> <CopySourceFragmentRef> </FileSpecSelection> <LocalSource /> </CopySourceFragmentRef>Selection> <SourceFileOptions></SourceFileOptions> </CopySource> <Selection> <CopyTarget> <FileSpecSelection> <CopyTargetFragmentRef> <FileSpec><![CDATA[.*\.(sh|gz)$]]></FileSpec><SFTPFragmentRef ref="SFTP_192.11.0.95:4446" /> </CopyTargetFragmentRef> <Directory><![CDATA[C:\tmp\agent_batch/home/test/tmp/]]></Directory> </CopyTarget> </FileSpecSelection>Copy> </Operation> </Selection>Profile> </SourceFileOptions> </CopySource> <CopyTarget> <CopyTargetFragmentRef> <SFTPFragmentRef ref="SFTP_192.11.0.95:4446" /> </CopyTargetFragmentRef> <Directory><![CDATA[/home/test/tmp/]]></Directory> </CopyTarget> </Copy> </Operation> </Profile> <Profile profile_id="Profiles> </Configurations> |
HINTS:
- Note that this is a XML file and YADE will expect an INI file to do the transfer, as we indicated in the installer configuration file (in the section
<globals><install_path><transfer><settings>
).- It is recommended to use the XML Editor for converting from XML to INI format (see below paragraph Using the XML Editor)
- Here is an example of an INI file, converted from the XML file attached above:
Code Block title INI file collapse true [protocol_fragment_sftp@SFTP_192.11.0.111:
...
4445] protocol
...
...
...
...
= sftp host
...
...
...
...
= 192.11.0.111 user
...
...
= test ssh_auth_method
...
= password password
...
...
= xxxx [protocol_fragment_sftp@SFTP_192.11.0.111:4446] protocol
...
...
=
...
sftp host
...
...
...
= 192.11.0.111
...
user
...
...
= sos ssh_auth_method
...
...
=
...
password password
...
HINTS:
- Note that this is a XML file and YADE will expect an INI file to do the transfer, as we indicated in the installer configuration file (in the section
<globals><install_path><transfer><settings>
).- It is recommended to use the XML Editor for converting from XML to INI format (see below paragraph Using the XML Editor)
- Here is an example of an INI file, converted from the XML file attached above:
Code Block title INI file collapse true = xxxx [protocol_fragment_sftp@SFTP_192.11.0.11195:4445] protocol = sftp host = 192.11.0.11195 user = testsos ssh_auth_method = password password = xxxx [protocol_fragment_sftp@SFTP_192.11.0.95:44454446] protocol = sftp host = 192.11.0.95 user = sos ssh_auth_method = password password = xxxx [192.11.0.111:4445] operation = copy source_protocol = local file_spec = .*\.(sh|gz)$ source_dir = C:\tmp\agent_batch target_include = protocol_fragment_sftp@SFTP_192.11.0.111:4445 target_dir = /home/test/tmp/ [192.11.0.111:44454446] operation = copy source_protocol = local file_spec = .*\.(sh|gz)$ source_dir = C:\tmp\agent_batch target_include = protocol_fragment_sftp@SFTP_192.11.0.111:44454446 target_dir = /home/test2sos/tmp/ [192.11.0.95:4445] operation = copy source_protocol = local file_spec = .*\.(sh|gz)$ source_dir = C:\tmp\agent_batch target_include = protocol_fragment_sftp@SFTP_192.11.0.95:4445 target_dir = /home/sos/tmp/ [192.11.0.95:44454446] operation = copy source_protocol = local file_spec = .*\.(sh|gz)$ source_dir = C:\tmp\agent_batch target_include = protocol_fragment_sftp@SFTP_192.11.0.95:44454446 target_dir = /home/sos2test/tmp/
Anchor | ||||
---|---|---|---|---|
|
...