IBM MQ - Update queue manager using the alter qmgr command

by
Jeremy Canfield |
Updated: April 15 2024
| IBM MQ articles
Let's say the display qmgr command returns the following for the IBM MQ queue manager named MANAGER01.
Notice in this example that the MAXMSGL (max message length) is set to the default value of 41943040 bytes (about 41 MB).
~]# echo "display qmgr" | runmqsc MANAGER01
QMNAME(MANAGER01) ACCTCONO(DISABLED)
ACCTINT(60) ACCTMQI(OFF)
ACCTQ(OFF) ACTIVREC(MSG)
ACTVCONO(DISABLED) ACTVTRC(OFF)
ADVCAP(ENABLED) ALTDATE(2018-04-26)
ALTTIME(11.04.25) AMQPCAP(YES)
AUTHOREV(ENABLED) CCSID(819)
CERTLABL(example.com) CERTVPOL(ANY)
CHAD(DISABLED) CHADEV(ENABLED)
CHADEXIT( ) CHLEV(ENABLED)
CHLAUTH(DISABLED) CLWLDATA( )
CLWLEXIT( ) CLWLLEN(100)
CLWLMRUC(999999999) CLWLUSEQ(LOCAL)
CMDEV(DISABLED) CMDLEVEL(910)
COMMANDQ(SYSTEM.ADMIN.COMMAND.QUEUE) CONFIGEV(ENABLED)
CONNAUTH(MANAGER01.LDAP.AUTHINFO) CRDATE(2018-04-11)
CRTIME(17.41.33) CUSTOM( )
DEADQ(SYSTEM.DEAD.LETTER.QUEUE) DEFCLXQ(SCTQ)
DEFXMITQ( ) DESCR(Manager01 Queue Manager)
DISTL(YES) IMGINTVL(60)
IMGLOGLN(OFF) IMGRCOVO(YES)
IMGRCOVQ(YES) IMGSCHED(MANUAL)
INHIBTEV(ENABLED) IPADDRV(IPV4)
LOCALEV(ENABLED) LOGGEREV(DISABLED)
MARKINT(5000) MAXHANDS(256)
MAXMSGL(41943040) MAXPROPL(NOLIMIT)
MAXPRTY(9) MAXUMSGS(10000)
MONACLS(QMGR) MONCHL(OFF)
MONQ(LOW) PARENT( )
PERFMEV(ENABLED) PLATFORM(UNIX)
PSMODE(ENABLED) PSCLUS(ENABLED)
PSNPMSG(DISCARD) PSNPRES(NORMAL)
PSRTYCNT(5) PSSYNCPT(IFPER)
QMID(MANAGER01_2018-04-11_17.41.33) REMOTEEV(ENABLED)
REPOS( ) REPOSNL( )
REVDNS(ENABLED) ROUTEREC(MSG)
SCHINIT(QMGR) SCMDSERV(QMGR)
SPLCAP(ENABLED) SSLCRLNL( )
SSLCRYP( ) SSLEV(ENABLED)
SSLFIPS(YES)
SSLKEYR(/shared/qmgrs/MANAGER01/ssl/MANAGER01)
SSLRKEYC(0) STATACLS(OFF)
STATCHL(LOW) STATINT(1800)
STATMQI(OFF) STATQ(OFF)
STRSTPEV(ENABLED) SUITEB(NONE)
SYNCPT TREELIFE(1800)
TRIGINT(600000) VERSION(09010003)
XRCAP(YES)
The alter qmgr command can be used to update the queue manager settings.
AVOID TROUBLE
When a value is a string and contains one or more white spaces, the value must be wrapped in quotes. In this example, Queue Manager is wrapped in quotes.
echo "alter qmgr DESCR ('Queue Manager')" | runmqsc MANAGER01
AVOID TROUBLE
When a value is an integer, the value must NOT be wrapped in quotes. In this example, 100000000 is not wrapped in quotes.
echo "alter qmgr MAXMSGL (100000000)" | runmqsc MANAGER01
Did you find this article helpful?
If so, consider buying me a coffee over at
Comments
April 18 2024 by Rich
Did I miss something, or are the command examples using the wrong command?
April 19 2024 by Jeremy (moderator)
Opps, my bad. I mistakenly had "alert" instead of "alter". I just corrected the commands now to have "alter"