Discussion:
Testing MQ Client to Server Connectivity
(too old to reply)
j***@yahoo.com
2005-07-05 15:22:05 UTC
Permalink
Hi Folks,

I'm working on a integration project and have been assigned to make sure that the MQ Client works on a Windows 2000 server with the MQ Manager on our mainframe:

I need the following help:

1. Can someone give me an example for using amqscnxc
2. How do you read the amqclchl.tab file
3. How do you test if the client is installed and running correctly.
4. How do you use the amqsputc and what is it's purpose.

Thanks
b***@us.ibm.com
2005-07-05 20:55:02 UTC
Permalink
1. Check out the prologue for the code: amqscnxc -x hostname -c SYSTEM.DEF.SVRCONN my.qmgr
2. The amqclchl.tab file is read automatically if you don't specify that the MQSERVER environment variable.
3. I'd run a client sample (ie, amqsputc)
4. amqsputc puts a message onto a queue using a client connection. I'd suggest running it with the MQSERVER environment variable set (SET MQSERVER=SYSTEM.DEF.SVRCONN/tcp/hostname).
Glenn Baddeley
2005-07-06 01:40:34 UTC
Permalink
Post by b***@us.ibm.com
Post by b***@us.ibm.com
MQSERVER=SYSTEM.DEF.SVRCONN/tcp/hostname).
Note that TCP must be in upper case and if the queue manager is not
listening on the default port of 1414, the number is specified
as hostname(portnumber)

Glenn.
Post by b***@us.ibm.com
1. Check out the prologue for the code: amqscnxc -x hostname -c
SYSTEM.DEF.SVRCONN my.qmgr 2. The amqclchl.tab file is read
automatically if you don't specify that the MQSERVER environment
variable. 3. I'd run a client sample (ie, amqsputc) 4. amqsputc puts
a message onto a queue using a client connection. I'd suggest
running it with the MQSERVER environment variable set (SET
MQSERVER=SYSTEM.DEF.SVRCONN/tcp/hostname).
j***@yahoo.com
2005-07-06 15:22:08 UTC
Permalink
The Queue manager is not listening on the default port(1414), here is what I'm entering.
amqscnxc -x 192.168.5.5 -c SYSTEM.ADMIN.SVRCONN MQP1
The 192.168.5.5 is where the queue manager is running, I'm testing from a Win2000 machine that has MQ client installed and I get a "MQCONNX ended with reason code 2059"
I need to be able to read the amqclchl.tab file because we have only have limited MQ resources(Remote) and I like understand the environment asap.

Thanks for your help
Josh
Arnold Shoon
2005-07-06 19:12:53 UTC
Permalink
As Glenn mentioned if the qmgr is not listening on the default 1414 port you
need to enter the port # after the ip address in the following manner...
note you must keep the brackets

amqscnxc -x 192.168.5.5(PORT#) -c SYSTEM.ADMIN.SVRCONN MQP1
Post by j***@yahoo.com
The Queue manager is not listening on the default port(1414), here is what I'm entering.
amqscnxc -x 192.168.5.5 -c SYSTEM.ADMIN.SVRCONN MQP1
The 192.168.5.5 is where the queue manager is running, I'm testing from a
Win2000 machine that has MQ client installed and I get a "MQCONNX ended with
reason code 2059"
Post by j***@yahoo.com
I need to be able to read the amqclchl.tab file because we have only have
limited MQ resources(Remote) and I like understand the environment asap.
Post by j***@yahoo.com
Thanks for your help
Josh
j***@yahoo.com
2005-07-08 18:23:18 UTC
Permalink
All,

Thanks alot, it worked. Please correct my comments below if needed.

If anyone else wants to use this command to test to see if the remote MQ manager is reachable do the following:

1. Default listening mq port is 1414
2. If the default port is not used, check the amqclchl.tab file and you might find out some info from there, like ports used, queue name, queue manager name.(If environment variables are used you may not see this file)
3. Try to telnet to the machine name(Qmgr) followed by port#
go to dos: telnet 192.168.5.5 1414
If you see a blank window you are connected
If you get an error speak to your firewall folks
This test only proves that the port is open
4. The following test will connect to the queue manager and respond that you are connected/or fail:
amqscnxc [-x ConnName [-c SvrconnChannelName]] [QMgrName]

amqscnxc -x 192.168.5.5(1499) -c MQB1.myconn.type MQB1
Replace the following:

1. 192.168.5.5 - with your QMgr ip
2. (1499) - with your listening port - do not include ()if using default port 1414
3. MQB1.myconn.type with your queue name
4. MQB1 with the QMgr name

Hope this helps

Loading...