NETCOPY

This tool allows parameter-controlled network file transfers to be performed. It will support file transfers between UNIX and VMS systems. The files to transfer are specified with a filemask containing wildcard characters. The filemask should be as specific as possible to avoid undesired results. The destination for the copy must be a directory.

By default, the FTP file transfer protocol is used, but when running on a UNIX host, a mode using RSH/RCP is also available.

Parameters can be supplied to the tool either on the command line, or from a disk file (i.e. a resource file). The tool can be run within an OPUS pipeline by invoking it from a shell script and running the shell script within the pipeline via the OPUS XPOLL facility.

File transfers are, by default, confirmed by listing the files AFTER the copy completes in the destination directory. If the transfer is confirmed, the original source files can be deleted if the DELETE_AFTER_COPY option is selected.

Usage: netcopy -pa pathfile |

If either the pathfile or parmfile parameter is supplied, the rest of the parameters are ignored on the command line, as they are obtained from the provided file instead.

The flags can be specified in any order by any number of unique characters (e.g. -de, -del, and -delete are treated equally).

Context

Inputs

Outputs

Constraints

Resource file

The following parameters appear in the NETCPY resource file. Their values can be specified directly in the resource file itself, or be pulled through from the path file by giving them path file mnemonics as their values.

FIREWALL

REMOTE_MACHINE REMOTE_FILESPEC NETCPY_MAIL_FILE LOCAL_FILESPEC REMOTE_LOGIN (optional) REMOTE_TYPE DISK_SLOP_PERC DELETE_AFTER_COPY ROLLBACK_PARTIAL_COPY SAFE_COPY NO_COPY_CONFIRMATION NO_DELETION_CONFIRMATION TEMP_DIR FILE_TYPE PUT_OR_GET USE_RSH_RCP

        Use the RSH/RCP mode of file transfer, as opposed to the default mode of FTP.  This assumes that the proper set up on the remote system has been performed to allow RSH/RCP access.  See the system documention on RSH/RCP for detail on this setup.
 
 

Qualifiers

-pa[thfile]

-fil[ename] -rm[achine] -rt[ype] -rf[ilespec] -lf[ilespec] -rl[ogin] -ds[lop_percentage] -de[lete_after_copy] -ro[llback_partial_copy] -saf[e_copy_mode]

        Same as SAFE_COPY

-nc[opy_confirmation]

        Same as NO_COPY_CONFIRMATION

-nd[eletion_confirmation]

        Same as NO_DELETION_CONFIRMATION

-fir[ewall]

-t[emp_directory] -lo[gfile] -ft[ype] -pg -rs[h_rcp_mode]

        Same as USE_RSH_RCP
 

-pw[ord]

 
Encrypted password used to connect to the remote system.  If this parameter is not provided, then the password will be prompted for interactively.  Even in interactive mode, the password should still be entered in encrypted form.

 
Examples

$ netcopy -pa opus_definitions_dir:blue.path

Uses values from the process resource file (opus_definitions_dir:netcpy.resource) to determine which remote machine and directories should be searched for files. The password for the remote system will be prompted for.

$ netcopy -rm ajuga -rt UNIX -pg GET -rf /home/mswam/data/*.c -lf disk$lyra:[mswam.dest] -delete -pw q1w2e3r4e3w2q1

Searches for files matching the filespec "/home/mswam/data/*.c" on the UNIX machine "ajuga". If found, they are copied back to "disk$lyra:[mswam.dest]". If the files are copied successfully, they are deleted afterwards from the remote host "ajuga".  FTP is used for all file transfers.