100% found this document useful (3 votes)
5K views

MQSC Command Quick Ref

This document provides a quick reference for common IBM MQ commands. It includes commands for starting and stopping queue managers, channels, services, and listeners. It also includes commands for displaying configuration and status information for these objects.

Uploaded by

Amit D
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
5K views

MQSC Command Quick Ref

This document provides a quick reference for common IBM MQ commands. It includes commands for starting and stopping queue managers, channels, services, and listeners. It also includes commands for displaying configuration and status information for these objects.

Uploaded by

Amit D
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Version: 0.

1 March 24, 2007


Display Log Settings (Windows) MQSC Synonyms
amqmdain reg QmgrName -c display -s Log -v *
Quick Reference Card Display Queue Filenames for Queues Command/Verb synonyms
IBM WebSphere® MQ V6 dspmqfls -m QmgrName -t qlocal * ALTER ALT
DEFINE DEF
Reading Notes DELETE no synonym
• titles in grey are hyperlinks to original documentation on the web Start / Stop
DISPLAY DIS
• keywords between [ ] are optional and can be omitted
END no synonym
• )MQSC: indicates a runmqsc command, which can be executed Starting QueueManager PING no synonym (CHANNEL, QMGR)
while in runmqsc [QmgrName] or strmqm QmgrName REFRESH REF (CLUSTER, SECURITY)
as one line command using: Stopping QueueManager RESET no synonym (CHANNEL, CLUSTER, QMGR)
echo command | runmqsc [QmgrName]
on Unix platforms add double quotes: endmqm QmgrName RESOLVE no synonym (CHANNEL)

echo “command” | runmqsc [QmgrName] return control after end: endmqm -w QmgrName RESUME no synonym (QMGR)
end immediately: endmqm -i QmgrName START STA (CHANNEL, CHINIT, SERVICE, LISTENER)
if all else fails (use with caution!): endmqm -p QmgrName
Display STOP no synonym (CHANNEL, CONN, SERVICE, LISTENER)
SUSPEND no synonym (QMGR)
Starting Channel
MQ installed, which version Object synonyms
dspmqver (pre V6: mqver) )MQSC: START CHL(ChannelName) AUTHINFO no synonym
Display QueueManagers on a machine Stopping Channel CHANNEL CHL
PROCESS PR
dspmq )MQSC: STOP CHL(ChannelName) NAMELIST NL
Display QueueManager settings set inactive: STOP CHL(ChannelName) mode(quiesce) status(inactive) QUEUE Q (DISPLAY only)

)MQSC: DIS QMGR Starting Service QALIAS QA


Display Queues, name and type or ALL attributes [optional] )MQSC: START SERVICE(ServiceName) QLOCAL
QMGR
QL
no synonym
)MQSC: DIS Q(*) [ALL] Stopping Service QMODEL QM
Display Queues, specific attribute(s) )MQSC: STOP SERVICE(ServiceName) QREMOTE
SERVICE
QR
no synonym
)MQSC: DIS Q(*) CURDEPTH Starting Listener LISTENER LSTR

often used attributes: CURDEPTH IPPROCS OPPROCS GET PUT


)MQSC: START LSTR(ListenerName) Object status synonyms
MAXDEPTH MAXMSGL Stopping Listener CHSTATUS CHS
QSTATUS QS
Display non empty Queues
)MQSC: STOP LSTR(ListenerName) SVSTATUS no synonym
)MQSC: DIS Q(*) CURDEPTH WHERE(CURDEPTH GT 0) LSSTATUS no synonym
Display Channels, name and type or ALL attributes [optional] Status QMSTATUS no synonym

)MQSC: DIS CHL(*) [ALL] Display Channel status or ALL status information [optional]
Display Channels, specific attribute(s)
)MQSC: DIS CHS(*) [SAVED] [ALL]
)MQSC: DIS CHL(*) CONNAME Display Queue status or ALL status information [optional]
Display Services, name and type or ALL attributes [optional]
)MQSC: DIS QS(*) [TYPE(HANDLE)] [ALL]
)MQSC: DIS SERVICE(*) [ALL] Display Service status or ALL status information [optional]
Display Listener, name and type or ALL attributes [optional]
)MQSC: DIS SVSTATUS(*) [SAVED] [ALL]
)MQSC: DIS LSTR(*) [ALL] Display Listener status or ALL status information [optional]
)MQSC: DIS LSTATUS(*) [SAVED] [ALL]

You might also like