Sunteți pe pagina 1din 8

MQ Display Commands:

MQ installated,which version
Dspmqver (per v6: mqver)
Display QueueManagers on a machine
Dspmq
Display Queue Manager settings
Dis QMG
Display Queues,name and type or all attri!utes "optional#
MQ$C: dis q(%) "&''#
Display Queues,speci(ic attri!ute(s)
MQ$C: D)$ Q(%) curdepth
*(ten used attri!utes: C+G,-./ ipprocs opprocs get put
ma0depth ma0msgl
Display non empty Queues
MQ$C: D)$ Q(%) C+D,-./ where (curdepth gt 1)
Display channels,name and type or &'' attri!utes"optional#
MQ$C: D)$ chl(%) "&''#
Dislay channels,speci(ic attri!ute(s)
MQ$C: D)$ chl(%) conname
Display services,name and type or &'' attri!utes"optional#
MQ$C dis service(%) "&''#
Display 'istener,name and type or &'' attri!utes"optional#
MQ$C: Dis lstr(%) "&''#
Display log settings (windows)
&mqmdain reg Qmgr2ame 3c display 3s 'og 3v %
Display Queue 4ilenames (or Queues
Dspmq(ls 3m Qmgr2ame 3t qlocal %
Display authority
Dspmqaut 3m qmgrname 3o!5ectname 3t o!5type 3p
user
or
&mqoamd 3m qmgrname 6s
Display command server
Dspmqcsv qmgrname
Display (ormatted trace output
Dspmqtrc 3h 3s 3o output7(ilename
Dump authority
Dmpmqaut 3m qmgrname 3n pro(ile(o!5ect name) 3t
o!5ecttype 6p 8user9
MQ start6stop commands
$tarting QueueManager
$trmqm Qmgr2ame
$topping QueueManager
,ndmqm Qmgr2ame
eturn control a(ter end: endmqm 3w Qmgr2ame
,nd immediately: endmqm 3) Qmgr2ame
)( all else (ailes (use with caution:) endmqm 3p
Qmgr2ame
$tarting Channel
MQ$C $.&. chl(channel2ame)
$et inactive: stop chl(channelname) mode(quiesce)
status(inactive)
$tarting service
MQ$C start service(service name)
$topping service
MQ$C stop service(service name)
$tarting 'istener
MQ$C: start lstr('istener2ame)
$topping 'istener
MQ$C: stop '$.('istener2ame)
,ndmqlsr "3w # 3m qmgrname
6w 666 wait !e(ore returning control;
,nd Command $erver
,ndmqcsv 6c or 3) qmgrname
6c 666 controlled manner
6) 666 immediately
$tart trace
$trmqtrc 3m qmgrname 3t all 30 all 3l 8ma0si<e o( (ile
in M=9
,nd trace
,ndmqtrc 3m qmgrname 6a (ends all tracing)
un channel initiator
unmqchi 3q initaion qname 3m qmgrname
Optional parameters
-q InitiationQName
.he name o( the initiation queue to !e processed !y
this channel initiator; )( you omit it,
$>$.,M;C/&22,';)2).Q is used;
-m QMgrName
.he name o( the queue manager on which the
initiation queue e0ists; )( you omit the name, the
de(ault queue manager is used;
un channel
unmqchl 3c channelname 3m qmgrname
Description
+se the dead6letter queue handler to per(orm various
actions on selected messages !y speci(ying a set o( rules
that can !oth select a message and de(ine the action to
!e per(ormed on that message;
.he runmqdlq command ta?es its input (rom stdin;
@hen the command is processed, the results and a
summary are put into a report that is sent to stdout;
=y ta?ing stdin (rom the ?ey!oard, you can
enter runmqdlq rules interactively;
=y redirecting the input (rom a (ile, you can apply a
rules ta!le to the speci(ied queue; .he rules ta!le must
contain at least one rule;
)( you use the D'Q handler without redirecting stdin
(rom a (ile (the rules ta!le), the D'Q handler reads its
input (rom the ?ey!oard; )n @e!$phereA MQ (or &)BA,
$olaris, /-6+B, and 'inu0, the D'Q handler does not
start to process the named queue until it receives an
end7o(7(ile (CtrlCD) character; )n @e!$phere MQ (or
@indows, it does not start to process the named queue
until you press the (ollowing sequence o( ?eys: CtrlCD,
,nter, CtrlCD, ,nter;
Creating 3 De(ining and Deleting the QM and QM o!5ects:
Creating a queue manager with de(ault transmission queue
and dead letter queue
Crtmqm 3d 80mitq9 6u 8dlq9 QMgr2ame
Deleting QM
Dltmqm QMgr2ame
estore and =ac?up commands
ecord media image:
cdmqimg 3m qmgrname 3< 3l 3t o!5type 66o!5ect
name
+se the rcdmqimg command to write an image o( an
o!5ect, or group o( o!5ects, to the log (or use in media
recovery; .his command can only !e used when using linear
logging; $ee 'inear logging (or more in(ormation a!out
linear logging; +se the associated command rcrmqobj to
recreate the o!5ect (rom the image;
rcdmqimg must !e run manually or (rom an automated
tas? you have created; .he command does not run
automatically as it needs to !e run in accordance with, and
as determined !y, each individual customerEs usage o(
@e!$phere MQ;
unning rcdmqimg moves the log sequence num!er ('$2)
(orwards and (rees up old log (iles (or archival or deletion;
GenericObjName
.he name o( the o!5ect to record; .his parameter can
have a trailing asteris? to record that any o!5ects with
names matching the portion o( the name !e(ore the
asteris?;
.his parameter is required unless you are recording a
queue manager o!5ect or the channel synchroni<ation
(ile; &ny o!5ect name you speci(y (or the channel
synchroni<ation (ile is ignored;
-t ObjectType
.he types o( o!5ect (or which to record images;
Optional parameters
-m QMgrName
.he name o( the queue manager (or which to record
images; )( you omit this, the command operates on the
de(ault queue manager;
-z
$uppresses error messages;
-l
@rites messages containing the names o( the oldest log
(iles needed to restart the queue manager and to
per(orm media recovery; .he messages are written to
the error log and the standard error destination; ()( you
speci(y !oth the 6< and 6l parameters, the messages
are sent to the error log, !ut not to the standard error
destination;)
@hen issuing a sequence o( rcdmqimg commands,
include the 6l parameter only on the last command in
the sequence, so that the log (ile in(ormation is
gathered only once;
Examples
.he (ollowing command records an image o( the queue
manager o!5ect saturn;queue;manager in the log;
rcdmqimg 6t qmgr 6m saturn;queue;manager
F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6F6
ecreate *!5ect
crmqimg 3m qmgrname 3t o!5ecttype (generico!5name)
GenericObjName
.he name o( the o!5ect to re6create; .his parameter
can have a trailing asteris? to re6create any o!5ects
with names matching the portion o( the name !e(ore
the asteris?;
.his parameter is required unless the o!5ect type is
the channel synchroni<ation (ileG any o!5ect name
supplied (or this o!5ect type is ignored;
-t ObjectType
.he types o( o!5ect to re6create
Examples
H; .he (ollowing command recreates all local queues (or
the de(ault queue manager:
rcrmqo!5 6t ql %
I; .he (ollowing command recreates all remote queues
associated with queue manager store:
rcrmqo!5 6m store 6t qr %

S-ar putea să vă placă și