Set up the client on Windows and Linux
Before you begin
Before setting up the client to communicate with queue manager QM_ORANGE,
you must ensure that the IBM MQ MQI client has been
installed on the client machine.
About this task
In this part of the tutorial, you must set up the client
component on the server using the MQSERVER environment
variable. You must find out the network name of the machine which
hosts queue manager QM_ORANGE from your system
administrator.
To set up the client on Windows or Linux , complete the steps for the platform that you are using:
Set up the client on Windows
About this task
In this task, you 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 your 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
You 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, you 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 your 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 you are using the bash shell,
so you need to edit the file $HOME/.bashrc. If you are using a different system
shell, consult your 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
You 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.