Set up the client on Windows
About this task
In this task, we will set up the client component using the MQSERVER environment variable. You will need to find out the network name of the machine which hosts queue manager QM_ORANGE from the system administrator.Procedure
- Open the Control Panel: Click Start > Sets > Control Panel
- Double-click System.
- Click the Advanced tab.
- Click Environment Variables.
- In the User Variables pane, click New.
- Type MQSERVER into the Variable Name field.
- Type CLIENT.QM_ORANGE/TCP/hostname into the Variable Value field, where hostname is the computer name or IP address that identifies the machine hosting queue manager QM_ORANGE. If we do not use the default port number 1414, you must also specify the port number where the listener is listening. For example: MQSERVER=CLIENT.QM_ORANGE/TCP/hostname (1415)
- Click OK. The MQSERVER environment variable is visible in the User Variables pane.
Results
We have now set up the client and server components needed on your Windows machine.Set up the client on Linux
About this task
In this task, we will set up the client component using the MQSERVER environment variable. You will need to find out the network name of the machine which hosts queue manager QM_ORANGE from the system administrator.Procedure
- Log in as the user who will be running Express File Transfer, who must be a member of the mqm group.
- Open a command prompt
-
Type
cd $HOME
-
Use a text editor to edit the profile. This example assumes that we are using the bash shell,
so we need to edit the file $HOME/.bashrc. If we are using a different system
shell, consult the system documentation. Add the following text to the end of the file:
MQSERVER=CLIENT.QM_ORANGE/TCP/'hostname'; export MQSERVER
Replace hostname with the name that identifies the server machine on the network. - Close the command prompt.
- Log out and log back in for the change to take effect.
Results
We have now set up the client and server components needed. The next task is to send a message from the client to the server queue manager QM_ORANGE.