FreeKB - IBM MQ display chlauth command
IBM MQ - display chlauth command

This assumes you have already used the define channel or alter channel commands to give a user access to a channel. For example, let's say user JohnDoe has been granted access to CHANNEL01. These examples are based on Linux. Switch to the mqm user.

su - mqm


Start the MQSC utility for the queue manager that you want to alter the server connection channel. In this example, MANAGER01 is the name of the queue manager. If you are not sure the name of the queue manager, use the dspmq command to display the queue managers. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.

The display chlauth command can be used to display the access to a channel.

echo "display chlauth (CHANNEL01)" | runmqsc MANAGER01


If the following is returned, the set chlauth command has not yet been used. In this scenario, you would use the set chlauth command to give the channel authority.

AMQ8884E: Channel authentication record not found.
One MQSC command read.
No commands have a syntax error.
One valid MQSC command could not be processed.


Take for example the following output. In this example, since ADDRESS is a wildcard, access from all IP addresses is allowed.

DESCR( )                CUSTOM( )
ALTDATE(2018-12-07)     ALTTIME(15.12.34)


If the channel is using ADDRESSMAP, only clients that match ADDRESS will be allowed to connect to the channel.

CHLAUTH(CHANNEL01)                      TYPE(ADDRESSMAP)
DESCR(Allow access and use ID from channel)
CUSTOM( )                               ADDRESS(
USERSRC(CHANNEL)                        CHCKCLNT(ASQMGR)
ALTDATE(2019-08-20)                     ALTTIME(07.09.01)


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 27105 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |