Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

WebSphere MQ Basic

IBM MQ Commands

Commands are case sensitive and lower case.

Some of the most popular sample programs are:

amqsput PUT

amqsbcg BROWSE

amqsget GET

These are some of the most common:

crtmqm – creates QMGR

strmqm – starts QMGR

endmqm – ends QMGR

dltmqm – deletes QMGR

runmqsc – starts MQ script

Create a Queue manager
command:
 crtmqm QM1

Start the queue manager
 strmqm QM1

Starting MQSC for queue manager QM1.
 runmqsc QM1

Create a local queue called LQ1
 define qlocal(LQ1)

Stop the scripting tool (command line )
 end

Displaying Queue Manager Status
 dspmq

Putting a message to the Queue LQ1
 amqsput LQ1 QM1

To end amqsput, press Enter.

Getting messages from the Queue LQ1
amqsget LQ1 QM1

Queue types –

local queues (normal and xmitq)

alias queue (points to targq)

remote queue (points to queue on remote qmgr
– actual put is to local xmitq)

cluster queue (many different types of queues
which are broadcast as part of a cluster)

model queue (template for dynamic queues)

Dead Letter Queue (DLQ)
- When messages can not be delivered to their intended
destination they may be sent to a Dead Letter Queue
- MQ provides an automated way of handling these Dead
Letter messages – the Dead Letter Queue handler,
invoked by runmqdlq command, is the default routine
supplied by MQ
- We recommend all QMGRs have a DLQ configured. Can
be added via runmqsc alter qmgr command or can be
done during crtmqm with –u option
(i.e. crtmqm -u SYSTEM.DEAD.LETTER.QUEUE TESTQMGR) 

 MQ commands

Command namePurpose
amqccertCheck certificate chains
amqoamdOutput setmqaut commands
amqmdainConfigure or control WebSphere MQ services (Windows® systems only)
amqtcertTransfer certificates
crtmqcvxConvert data
crtmqmCreate a local queue manager
dltmqmDelete a queue manager
dmpmqautDump authorizations to an object
dmpmqlogDump a log [url]
dspmqDisplay queue managers
dspmqautDisplay authorizations to an object
dspmqcsvDisplay the status of a command server
dspmqflsDisplay file names
dspmqrteDisplay route application
dspmqtrcDisplay formatted trace output (UNIX® systems only)
dspmqtrnDisplay details of transactions [pareja de rsvmqtrn]
dspmqverDisplay version number
endmqcsvStop the command server on a queue manager
endmqdnmStop .NET monitor
endmqlsrStop the listener process on a queue manager
endmqmStop a local queue manager
endmqtrcStop tracing for an entity
mqftappRun the File Transfer Application
mqftrcvReceive file using the File Transfer Application (server)
mqftrcvcReceive file using the File Transfer Application (client)
mqftsndSend file using the File Transfer Application (server)
mqftsndcSend file using the File Transfer Application (client)
rcdmqimgWrite an image of an object to the log
rcrmqobjRecreate an object from their image in the log
rsvmqtrnCommit or back out a transaction
runmqchiStart a channel initiator process
runmqchlStart a sender or requester channel
runmqdlqStart the dead-letter queue handler
runmqdnmRun .NET monitor
runmqlsrStart a listener process
runmqscIssue MQSC commands to a queue manager
runmqtmcInvoke a trigger monitor for a client (AIX® clients only)
runmqtrmInvoke a trigger monitor for a server
setmqautChange authorizations to an object
setmqcrlSet certificate revocation list (CRL) LDAP server definitions (Windows® systems only)
setmqprdEnroll production license
setmqscpSet service connection points (Windows® systems only)
strmqcsvStart the command server for a queue manager
strmqmStart a local queue manager
strmqtrcEnable tracing

 
 

 



This post first appeared on Learning Help You To Achieve Your Biggest Goals, please read the originial post: here

Share the post

WebSphere MQ Basic

×

Subscribe to Learning Help You To Achieve Your Biggest Goals

Get updates delivered right to your inbox!

Thank you for your subscription

×