The REMOTENAME statement specifies a file on a remote server to be downloaded or uploaded in a secure file transfer.
Supported Job Types
This statement is required for the Secure Copy job type.
This statement is optional for the Secure FTP job type.
Note: For Secure FTP jobs, the REMOTENAME statement is required if the LOCALNAME statement does not contain a wildcard.
Syntax
This statement has the following format:
REMOTENAME file_name
Specifies the file's source location (if downloading) or the file's destination (if uploading).
Limits: Up to 256 characters; case-sensitive
Notes:
Mainframe:
Notes:
Example: Download a File from a Remote Server to the Agent Computer
This example downloads the install.log1 file from the root directory on the chi-linux server using the Secure Copy Protocol (SCP):
AGENT WINAGENT LOCALNAME C:\temp\install.log1 REMOTENAME install.log REMOTEDIR /root SERVERADDR chi-linux SERVERPORT 22 TRANSFERDIRECTION DOWNLOAD USER causer
Example: Upload a File from the Agent Computer to a Remote Server
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
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|