From the command prompt of the WebSphere MQ server machine, go to the <WebSphere MQ>\bin directory.
Use one of the following commands to test the connection for the queue:
amqsputc.
Use if you installed the WebSphere MQ client on the Integration Service node.
amqsput.
Use if you installed the WebSphere MQ server on the Integration Service node.
The
amqsputc
and
amqsput
commands put a new message on the queue. If you test the connection to a queue in a production environment, terminate the command to avoid writing a message to a production queue.
For example, to test the connection to the queue “production,” which is administered by the queue manager “QM_s153664.informatica.com,” enter one of the following commands:
amqsputc production QM_s153664.informatica.com
amqsput production QM_s153664.informatica.com
If the connection is valid, the command returns a connection acknowledgment. If the connection is not valid, it returns an WebSphere MQ error message.
If the connection is successful, press Ctrl+C at the prompt to terminate the connection and the command.