Wednesday, June 17, 2015

Connecting to remote queue manager using RFHUTIL

The RFHUTIL is a great tool for interfacing with IBM MQ however you can tell it was developed by an engineer for engineers. So of course the user interface is not very friendly. One thing I found confusing was how to connect to a remote queue manager (e.g. queue manager hosted on a remote machine). Here is how I accomplished this.

Step 1

Create a file called rfhutil-remote.bat

Step 2

Edit the file and add the following:

set MQSERVER=CHANNEL/TCP/SERVER_IP:PORT
set PATH=C:\RFHUtil_v7.5;%PATH%
start rfhutilc.exe

Note:

Replace CHANNEL with the remote channel name (e.g. CHANNEL1).
Replace SERVER_IP with the remote server IP Address (e.g. 10.0.0.1).
Replace PORT with the remote server port (e.g. 1414).
Replace the RFHUTIL path with the path to where you installed RFHUTIL.

Step 3

Open the rfhutil-remote.bat file.

Step 4

In the Queue Manager Name text box set the connection string. The connection string is the same as the MQSERVER from the batch file. See below.

Afterwards click the "Load Names" button.