The LOCALNAME statement specifies a file on the agent computer to be downloaded or uploaded in a secure file transfer.
Supported Job Types
This statement is required for the following job types:
Syntax
This statement has the following format:
LOCALNAME file_name
Specifies the file's destination (if downloading) or the file's source location (if uploading).
Limits: Up to 256 characters; case-sensitive
Notes:
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 Multiple Files from the Agent Computer to a Remote Server
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.
|
|