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.




6 comments:

Saurabh said...

what channel name should be used when I want to connect to a local queue manager on windows environment ?

Anonymous said...

I'm getting authentication exception while connecting to MQ.
I even tried setting the Userid/password in the "Set Conn Id" and Checked "Use CSP".

Could you please give me some pointer

Anonymous said...

Just want to let you know, that I had to put the port in brackets (1414) without ":".
Otherwise it says "Host not availiable".
Hope this helps.

Anonymous said...

Great comment about the port with brackets!

Anonymous said...

Tried the above method but still getting 2538 Host not available. Please help

karamtulla said...

set MQSERVER=CHANNEL/TCP/SERVER_IP:PORT

I have used (PORT) instead-of :PORT like below, it worked for me.

set MQSERVER=CHANNEL/TCP/SERVER_IP(PORT)