This section contains examples of some MQSC commands that you can use to display or alter queue manager attributes. See the WebSphere MQ Script (MQSC) Command Reference for detailed information about these commands.
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 in Figure 5.
Figure 5. Typical output from a DISPLAY QMGR command
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( ) DEFXMITQ( ) CHADEXIT( ) CLWLEXIT( ) CLWLDATA( ) REPOS( ) REPOSNL( ) SSLKEYR(C:\MQM\qmgrs\Q\ssl\key) SSLCRLNL( ) SSLCRYP( ) COMMANDQ(SYSTEM.ADMIN.COMMAND.QUEUE) QMNAME(Q) 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 tells you 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.
To alter the attributes of the queue manager specified on the runmqsc command, use the MQSC command ALTER QMGR, specifying the attributes and values that you want to change. For example, use the following commands to alter the attributes of jupiter.queue.manager:
runmqsc jupiter.queue.manager ALTER QMGR DEADQ (ANOTHERDLQ) INHIBTEV (ENABLED)
The ALTER QMGR command changes the dead-letter queue used, and enables inhibit events.