fteSetupCommands (create the MFT command.properties file)
The fteSetupCommands command creates the Managed File Transfer command.properties file. This properties file specifies the details of the queue manager that connects to the IBM® MQ network when you issue commands.
On AIX®, Linux®, and Windows systems, if you are
using the IBM MQ server installation image, you must
satisfy both these conditions in order to run the command: - Be an IBM MQ administrator.
- Be a member of the mqm group (if the mqm group is defined on the system).
On z/OS® systems, you must satisfy at
least one of these conditions in order to run the command:- Be a member of the mqm group (if the mqm group is defined on the system).
- Be a member of the group named in the BFG_GROUP_NAME environment variable (if one is named).
- Have no value set in the BFG_GROUP_NAME environment variable when the command is run.
Purpose
Use the fteSetupCommands command to create a command.properties file in the coordination queue manager configuration directory. The command uses the MQ_DATA_PATH environment variable and the installation.properties file to determine where to locate the command.properties file. Ensure that you have already created and configured a coordination queue manager before you issue the fteSetupCommands command.
For more information about properties files, see The MFT command.properties file.
Syntax
Parameters
- -connectionQMgr connection_qmgr_name
- Required. The name of the queue manager used to connect to the IBM MQ network to issue commands.
- -connectionQMgrHost connection_qmgr_host
- Optional. The host name or IP address of the connection queue manager.
If you do not specify the -connectionQMgrHost parameter, a bindings mode connection is assumed. Therefore, this parameter is required if you are using a client mode connection.
If you specify a value for the -connectionQMgrHost parameter but do not specify values for the -connectionQMgrPort and -connectionQMgrChannel properties, a port number of 1414 and a channel of SYSTEM.DEF.SVRCONN are used by default.
- -connectionQMgrPort connection_qmgr_port
- Optional. The port number used to connect to the connection queue manager in client mode. If you specify the -connectionQMgrPort parameter, you must also specify the -connectionQMgrHost parameter.
- -connectionQMgrChannel connection_qmgr_channel
- Optional. The channel name used to connect to the connection queue manager. If you specify the -connectionQMgrChannel parameter, you must also specify the -connectionQMgrHost parameter.
- -p configuration_options
- Optional. This parameter determines the set of configuration options that is used to set up a
command queue manager. Use the name of a non-default coordination queue manager as the input for
this parameter. The fteSetupCommands command then uses the set of properties
files associated with this non-default coordination queue manager.
If you do not specify this parameter, the set of configuration options based on the default coordination queue manager is used.
- -credentialsFile file_path
- Optional. The full file path of an existing or new credentials file, to which the IBM MQ authentication details are added.
This command supports the addition of a set of IBM MQ authentication details, to a named Managed File Transfer credentials file. Use this command when IBM MQ connection authentication has been enabled. If you update the existing details, you must use the -f force parameter.
- -userid user_id
- Optional. The user ID used to associate the credential details. If you do not specify a user ID, the credential details will apply to all users. You must also specify the -credentialsFile parameter.
- -f
- Optional. Forces an overwrite of the existing command.properties file with the details specified in this command.
- -? or -h
- Optional. Displays command syntax.
Example
fteSetupCommands -connectionQMgr QM_NEPTUNE -connectionQMgrHost 9.146.157.241
-connectionQMgrPort 1414 -connectionQMgrChannel SYSTEM.DEF.SVRCONN
Return codes
| Return code | Description |
|---|---|
| 0 | Command completed successfully |
| 1 | Command ended unsuccessfully |
