MQ Queue Managers

 


Overview

This page contains examples of some MQSC commands that one can use to display or alter queue manager attributes.

 

Displaying queue manager attributes

To display the attributes of the queue manager specified on the runmqsc command, use the following MQSC command:

DISPLAY QMGR

Typical output from this command is shown below:

0784726, 5639-B43 (C) Copyright IBM Corp. 1994, 2002.  ALL RIGHTS RESERVED.
Starting WebSphere MQ script Commands.
 
DISPLAY QMGR
     1 : DISPLAY QMGR
AMQ8408: Display Queue Manager details.
   DESCR( )                                DEADQ(SYSTEM.DEAD.LETTER.QUEUE)
   DEFXMITQ( )                             CHADEXIT( )
   CLWLEXIT( )                             CLWLDATA( )
   REPOS( )                                REPOSNL( )
   SSLKEYR(C:\MQM\qmgrs\Q\ssl\key)         SSLCRLNL( )
   SSLCRYP( )                              COMMANDQ(SYSTEM.ADMIN.COMMAND.QUEUE)
   QMNAME(saturn.queue.manager)            CRDATE(2002-03-14)
   CRTIME(17.21.40)                        ALTDATE(2002-03-14)
   ALTTIME(17.21.40)                       QMID(Q_2002-03-14_17.21.40)
   TRIGINT(999999999)                      MAXHANDS(256)
   MAXUMSGS(10000)                         AUTHOREV(DISABLED)
   INHIBTEV(DISABLED)                      LOCALEV(DISABLED)
   REMOTEEV(DISABLED)                      PERFMEV(DISABLED)
   STRSTPEV(ENABLED)                       CHAD(DISABLED)
   CHADEV(DISABLED)                        CLWLLEN(100)
   MAXMSGL(4194304)                        CCSID(437)
   MAXPRTY(9)                              CMDLEVEL(530)
   PLATFORM(WINDOWSNT)                     SYNCPT
   DISTL(YES)

The ALL parameter (the default) on the DISPLAY QMGR command displays all the queue manager attributes. In particular, the output indicates the default queue manager name (saturn.queue.manager), the dead-letter queue name (SYSTEM.DEAD.LETTER.QUEUE), and the command queue name (SYSTEM.ADMIN.COMMAND.QUEUE).

You can confirm that these queues exist by entering the command:

DISPLAY QUEUE (SYSTEM.*)

This displays a list of queues that match the stem SYSTEM.*. The parentheses are required.

 

Altering queue manager attributes

To alter the attributes of the queue manager specified on the runmqsc command, use the MQSC command ALTER QMGR, specifying the attributes and values to change. For example, use the following commands to alter the attributes of chicago.queue.manager:

runmqsc chicago.queue.manager
 
ALTER QMGR DEADQ (ANOTHERDLQ) INHIBTEV (ENABLED)

The ALTER QMGR command changes the dead-letter queue used, and enables inhibit events.

 

 

 

 

 

 

 

 

 

 

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.