IBM Support

Commands to create a queue manager and to configure it for remote administration via MQ Explorer

Troubleshooting


Problem

This document provides details of the line commands for WebSphere MQ to create a queue manager and to configure it for remote administration using MQ Explorer

Cause

This technote is a companion to the following IBM SupportTV video on YouTube:

Resolving The Problem

Issue these three steps to create a WebSphere MQ queue manager using line commands:

1. It is good practice to define a Dead Letter Queue when creating a queue manager

crtmqm -u SYSTEM.DEAD.LETTER.QUEUE QM_TEST


2. Start the queue manager

strmqm QM_TEST


3. Run the MQ administration tool

runmqsc QM_TEST

a. Define and start a listener. The default is port 1414.
define listener(TCP.LISTENER) trptype(tcp) control(qmgr) port(1414)
start listener(TCP.LISTENER)

b. Define a channel to be used by a remote MQ Explorer
define channel(SYSTEM.ADMIN.SVRCONN) chltype(SVRCONN) REPLACE

c. For MQ 7.1 and later, and if you need to allow remote connections by an MQ Administrator.
Note: This is too broad and it is useful for test queue managers. For production queue managers you may need to customize the remote access to MQ Administrators.

set CHLAUTH(*) TYPE(BLOCKUSER) USERLIST('nobody','*MQADMIN')
set CHLAUTH(SYSTEM.ADMIN.*) TYPE(BLOCKUSER) USERLIST('nobody')

d. For MQ 8.0 and later, and if you want the password to be optional for an MQ Administrator.
Note: This is NOT recommended for production queue managers. It might be fine for your test queue managers.
ALTER AUTHINFO(SYSTEM.DEFAULT.AUTHINFO.IDPWOS) AUTHTYPE(IDPWOS) +
CHCKCLNT(OPTIONAL)
REFRESH SECURITY TYPE(CONNAUTH)

end

+++ Additional commands are needed for non-MQ administrators to connect to the queue manager and to access queues using MQ Explorer

For more details see:

HOW TO: Setmqaut commands to allow Windows Explorer remote administration of WMQ on a UNIX

++ References

WMQ 7.1, 7.5, 8.0 queue manager RC 2035 MQRC_NOT_AUTHORIZED or AMQ4036 when using client connection as an MQ Administrator

MQ 8.0: errors AMQ5540 and AMQ5541, application did not supply a user ID and password, 2035 MQRC_NOT_AUTHORIZED

[{"Product":{"code":"SSFKSJ","label":"WebSphere MQ"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Configuration","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"8.0;7.5;7.1;7.0","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}}]

Product Synonym

WebSphere MQ WMQ

Document Information

Modified date:
15 June 2018

UID

swg21623113