Top
Systemwalker Operation Manager V17.0.1 Reference Guide

9.1.2 FCOPYSVR.EXE File Transfer Command

Synopsis

FCOPYSVR.EXE /S:SourceName [/SU:SourceUserName]
              /D:DestName [/DU:DestUserName]
              [/LG:LoginGroup] [/A | /B]
              [/RC:nn /RI:nnnn]

Description

The FCOPYSVR.EXE command transfers files between servers.

Local files, files that use the Windows shared directory, or files on the FTP server can be transferred. You can transfer files even to the destination server without having Systemwalker Operation Manager installed.

Parameters

/S:SourceName

Specify a path name of the transfer source file, including the file name. You can use a wildcard for this file name.

Use one of the following methods to specify SourceName in the URL format. The parts of path name must be no longer than 255 characters. If the path name contains a space character, enclose it in double quotation marks.

A local drive path:

Specify a path including a drive name.

Specify the path name of desired file directly after "file://" string.

Example:

file://C:\DATABASE\DATABASE.DB

UNC method (Windows network share method):

Specify a path in the format "\\computer name\share name". For a computer name, specify a Windows-based computer name within 15 alphanumeric characters. Specify a share name within 80 bytes.

Specify the path name of desired file directly after "file://" string.

Example:

file://\\foo\SHARE\DATABASE\DATABASE.DB

A path on the FTP server (FTP method):

Specify a path name to the FTP server.

The path name can be specified with a full path name or a relative path name from the current directory in logging in with FTP.

Specify the path name in the format of "server name/path name of desired file" directly after "ftp://" string.

Example) To specify using the full path name:

ftp://foo.bar.com//Usr/DataBase/DataBase.DB

Example) To specify using the relative path name:

ftp://foo.bar.com/DataBase/DataBase.DB

/SU:SourceUserName

Specifies a user name to be used to access the file specified in SourceName.

The user name to be specified to SourceUserName must be set in the password management book in advance. If a space character is contained in SourceUserName, enclose it in double quotation marks.

If SourceName is specified using a local drive path, this parameter's specification is ignored.

However, if the UNC method or a path on the FTP server is specified, be sure to specify this parameter.

If the UNC method is used, specify SourceUserName in either "domain name\user name" or "server name\user name" format. In this case, the domain name or server name must be no longer than 15 alphanumeric characters, and the user name must be no longer than 20 characters.

When specifying a path on the FTP server, "domain name\user name" cannot be used. Specify the user registered as "user name@domain name" in the password management book or the local account.

If a path on the FTP server is used, SourceUserName must be specified using up to 20 alphanumeric characters.

/D:DestName

Specify a path name of the destination file, including the file name. You can use a wildcard for this file name.

You can use the same specification methods as those described in the above "/S:SourceName" parameter. See the "/S:SourceName" parameter.

If the file name that already exists is specified, it will be overwritten.

Note that the same file path name as the one (SourceName) specified with /S should not be specified.

/DU:DestUserName

Specifies a user name to be used to access the file specified in DestName.

To specify the user name in DestUserName, it must be set in the password management book in advance. If DestUserName contains a space character, enclose the name in double quotation marks.

If a local drive path is set to DestName, this parameter's specification is ignored.

However, if DestName is specified using the UNC method or path on the FTP server, be sure to specify this parameter.

If the UNC method is used, specify DestUserName in either "domain name\user name" or "server name\user name" format. The domain name or server name must be no longer than 15 alphanumeric characters, and the user name must be no longer than 20 alphanumeric characters.

When specifying a path on the FTP server, "domain name\user name" cannot be used. Specify the user registered as "user name@domain name" in the password management book or the local account.

If a path on the FTP server is specified, DestUserName must be specified using up to 20 alphanumeric characters.

/LG:LoginGroup

Specifies a login definition name used to manage the password management book.

LoginGroup must be no longer than 256 characters, and enclose it in double quotation marks if a space character is contained.

If the /SU or /DU parameter is specified, be sure to specify this parameter.

/A

Transfers a file in the ASCII text mode.

This parameter is valid only when you transfer files on the FTP server (FTP method).

/B

Transfers a file in the binary mode.

This parameter is valid only when you transfer files on the FTP server (FTP method).

If neither /A nor /B is specified, the file is transferred in the binary mode.

/RC:nn

Specifies the retry count in case an error occurs in file transfer.

Specify an integer value between 0 and 99 for nn. Setting any other value results in an error. If omitted, no retry is performed.

If a wildcard is used to specify the transfer source file or transfer destination file, retry is performed only for the failed file.

/RI:nnnn

Specifies the retry interval in case an error occurs.

Specify an integer value between 0 and 9999 (in seconds) for nnnn. Setting any other value results in an error. The default value is 0.

This parameter is valid if 1 or a greater value is specified to nn in the /RC parameter.

Return Values

Return value

Meaning

0

Completed

Value other than 0

Abended

Command Location

Systemwalker Operation Manager installation directory\MpWalker.JM\bin

Example

In the following example, the local file "c:\database\master\database.db" on the server is transferred to the local file "d:\database\database.db". If the transfer fails, retry is performed up to three times at an interval of 60 seconds.

FCOPYSVR.EXE /S:file://c:\database\master\database.db
                /D:file://d:\database\database.db /RC:3 /RI:60

Execution Results/Output Format

After the command has been through processing, the information at command completion is output to the standard output.

The contents to be output are shown below.

[Process start time] MM-DD-YYYY HH:MM:SS
[Server host/User name] Server host name/user name (*)
[Retry count] Number of retries performed (*)
[Error] Error message (*)
[File transfer] Transfer source file name Transfer destination file name (**)
[Retry count] Number of retries performed (**)
[Error] Error message (**)
[Process end time] MM-DD-YYYY HH:MM:SS
*:

This information is always output if the /SU or /DU parameter is specified.

**:

If a wildcard is used, the information of each file is also output.

In [Error], "None" is output if the command completed successfully. A message is output if the command is canceled or failed. For details on the messages, see the Systemwalker Operation Manager Message Guide.

If an error occurs before performing file transfer, a message is output in the following format:

[Process start time] MM-DD-YYYY HH:MM:SS
[Command error] Error message
[Process end time] MM-DD-YYYY HH:MM:SS

For details on the messages, see the Systemwalker Operation Manager Message Guide.

Cautions