|
setting FASTCopy to work on a different port
Question:
How do I setup FASTCopy to work on a different port, other than the default TCP/IP port of 5745?
Answer:
Configuring FASTCopy to use a different TCP/IP port is actually two tasks:
- Configuring FASTCopy's daemon (fcopyd - the process that is waiting to receive incoming jobs) to "listen" on a different port. This task will be discussed in length below.
- Configuring FASTCopy Client (The 'fcopy' command or fcopy console) to work with a different port.
This can be done temporarily by adding the qualifier "-port=5555" to the command line. This qualifier is applicable in all Operating Systems (/port=5555 on VMS). Example:
>fcopy a.a 192.168.6.129:/temp/. -user=username -pass=password -port=5555
This will initiate the FASTCopy job using port '5555'. Note that '5555' should be replaced with any port the remote node's FASTCopy daemon has been configured to work with (using the instructions given below).
To make the change permanent, please follow the instructions for configuring the daemon using the services.
Configuring FASTCopy's daemon 'fcopyd' to work with a different port
- On a UNIX machine:
- Temporary change : You can add an additional temporary fcopyd process that uses a different port, simply by issuing the command "fcopyd -port=5555" from the command line, where '5555' is replaced by the TCP/IP port you wish to use. This will enable both the default port and port 5555 to be available for incoming FASTCopy operations. Multiple instances of fcopyd can operate simultaneously, each one listening to a different port. To stop the temporary fcopyd process, use the command "fcopyd -kill -port=5555" . Port '5555' is just used as an example and should be replaced by whatever port you have started the process with. These temporary instances of fcopyd will be lost should the computer be shut down and you will need to reissue the commands to start them.
- Permanent change : If you wish to permanently change the default port of the primary fcopyd daemon, you will need to edit the file "/etc/services" (where the xinetd service spawns the initial fcopyd daemon). Edit the "/etc/services" file, and look for the following row:
fcopy$server 5745/tcp # Added by FASTCopy Install
Now, simply replace the specified port (5745) at the above row with the port you would like to use. Then issue the services reload command. Example (on a RedHat 7.x Linux machine):
service xinetd reload
Now, inetd will listen on the port you specified and will spawn fcopyd daemon in response to requests on this port.
To permanently stop inetd from listening for requests on the FASTCopy port, you must edit "/etc/services", and place a remark tag ('#') at the beginning of the above-mentioned row. Then reload the services file.
- On a Windows machine : Windows cannot run more than one instance of fcopyd service at a given time. To change the default port that the fcopyd service is currently using, edit the 'services' file (usually located in directory c:\Winnt\system32\drivers\etc\services") and locate the following row:
fcopy$server 5745/tcp
Replace the default 5745 port with any port you wish to use. Then, restart the FASTCopy daemon service through the Services panel from the Administrative Tools of the Control Panel. Alternatively, you can issue the following commands from the command prompt (in the ~softlink/fastcopy/bin directory):
>fcopyd -stop
>fcopyd -start
Changing the default port using the above method is permanent, meaning that even a restart of the machine will not restore FASTCopy's default 5745 port. The only way to change the port again is by editing the 'services' file a second time (following the above-mentioned procedure).
Related Topics:
WINDOWS
UNIX
SECURITY
Back to FAQ Index
|