Free Form Command Settings
Free Form Command commands allow you to define your own commands using static commands and/or Automation Engine variables.
To define a Free Form Command command:
-
Select a connection under Free Form.
-
Enter commands in the Commands box.
-
If you do not want the Job to abort if this command fails, uncheck the Abort job on command failure box.
-
If you want the Job to abort when source file(s) are not found, check the Abort job when source file(s) not found (only used for put and get commands) box.
-
Optionally add a description of the command under Description.
-
The Description field acts as comment in the command sequence, and is not written to the Job report. To write a message to the Job report use an Echo command .
The only two selectable connections in the drop-down list are the ones selected in the From and To fields at the top of the RA FTP Agent Job definition page, above the command sequence.
When spaces are included in directories or files, double quotes " " should surround the entire argument.
This box allows Automation Engine variables in the format &<name>#.
Empty lines are not allowable and will cause the Job to fail.
FTP, FTPS, and FTPES Commands
Available FTP, FTPS, and FTPES commands are described below.
- ascii
- binary
- image
- ebcdic
- local
- get remote-path [local-path] [ERASE]
- put local-path [remote-path] [ERASE]
- mget remote-path [local-path] [ERASE]
- mput local-path [remote-path] [ERASE]
- site arg1 [ arg2 ] ...
- namelis [remote-directory]
- ls [remote-directory]
- dir [remote-directory]
- pwd
- cwd
- cd
- lcd
- account password
- allocate bytes
- mkdir directory-name
- rmdir directory-name
- rename from to
- move from to
- delete remote-file
- rm remote-file
- append local-file [remote-file]
- transfermode [stream|compressed|block]
- filestructure [file|page|record]
Sets the mode of file transfer to ASCII.
Sets the mode of file transfer to binary.
Sets the type to image where the data are sent as contiguous bits which, for transfer, are packed into the 8-bit transfer bytes.
Sets the type to EBCDIC to use EBCDIC for their internal character representation.
Sets the type to local where the data is transferred in logical bytes of the size specified by the obligatory second parameter, byte size.
Download file.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Upload file.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Download multiple files.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Upload multiple files.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Initiate a site command with argument(s).
Runs an NLST command on a remote directory.
Display an abbreviated list of files and subdirectories in a remote directory.
View a remote directory.
Display remote working directory.
Change the working directory.
Change the working directory on the remote computer.
Changes the working directory on the local computer.
Password for system log-in.
Allocate bytes for file storage on the remote computer.
Create specified directory on the remote computer.
Remove specified directory on the remote computer.
Rename remote file.
Move remote file.
Delete remote file.
Remove remote file.
Append file to file of same name on the remote computer.
Set the transfer mode.
Set the file structure.
In order to accommodate the RA FTP Agent's design, there are additional features added to standard FTP, specifically CANCEL and ERASE. CANCEL means that the file transfer will abort. Where multiple files are transferred, this is done on a case by case basis. ERASE means that the source file is deleted after the file transfer is complete.
SFTP Commands
Available SFTP commands are described below.
- cd path
- lcd path
- chgrp grp path
- chmod mode path
- chown own path
- help
- get remote-path [local-path] [ERASE]
- lls [path]
- ln oldpath newpath
- lpwd
- ls [path]
- mkdir path
- put local-path [remote-path] [ERASE]
- pwd
- stat path
- rename oldpath newpath
- rmdir path
- rm path
- symlink oldpath newpath
- readlink path
- realpath path
- rekey
- compression level
Change remote directory to 'path'.
Change local directory to 'path'.
Change group of file 'path' to 'grp'.
Change permissions of file 'path' to 'mode'.
Change owner of file 'path' to 'own'.
Display this help text.
Download file.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Display local directory listing.
Symlink remote file.
Print local working directory.
Display remote directory listing.
Create remote directory.
Upload file.
Includes the option to erase the source on successful transfer by entering the ERASE attribute at the end of the command.
Display remote working directory.
Display info about path.
Rename remote file.
Remove remote directory.
Delete remote file.
Symlink remote file.
Check the target of a symbolic link.
Canonicalize the path.
Key re-exchanging.
Packet compression will be enabled.