You can define a Secure FTP (SFTP_JOB) job to transfer binary files using the Secure File Transfer Protocol (SFTP). The SFTP protocol supports wildcard transfers, so you can upload multiple files to a remote computer or download multiple files to the agent computer.
Note: To run these jobs, your system requires CA WA Agent for UNIX, Linux, Windows, or i5/OS.
Required Statements
To define a Secure FTP job, you must specify the following statements:
Optional Statements
You can specify the following optional statements for a Secure FTP job:
Note: The REMOTENAME statement is required if the LOCALNAME statement does not contain a wildcard.
Example: Upload a File Using the Secure File Transfer Protocol
This example uploads the logs.tar file to the /u/tmp directory on the hpsupport server. The job uses the Secure File Transfer Protocol (SFTP).
AGENT WINAGENT TRANSFERDIRECTION UPLOAD SERVERADDR hpsupport REMOTEDIR /u/tmp REMOTENAME logs.tar LOCALNAME D:\temp\logs.tar USER causer
Example: Upload Multiple Files Using the Secure File Transfer Protocol
This example uploads the files in the c:\temp\upload directory to the /u1/build/uploaded directory on the aixunix server. The job uses the Secure File Transfer Protocol (SFTP). Since the LOCALNAME statement contains a wildcard, the REMOTENAME statement is not specified.
AGENT WINAGENT SERVERADDR aixunix TRANSFERDIRECTION UPLOAD USER causer REMOTEDIR /u1/build/uploaded LOCALNAME c:\temp\upload\*
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|