Wednesday, February 17, 2010

Q's operations

- Remote Queue Operations
New Remore Queue
=================
DEFINE QREMOTE (’RQ_NAME’) +
DESCR(’Description’) +
PUT(ENABLED) +
EFPSIST(NO) +
MAXDEPTH(200000) +
MSGDLVSQ(PRIORITY) +
XMITQ(’XQ_NAME’) +
TRIGTYPE (FIRST) +
RNAME(’RLQ_NAME’) +
RQMNAME(’RQM_NAME’) +
QDEPTHHI (80) +
QDEPTHLO (20) +
REPLACEDEFPSIST(NO) -> Persistant YES/NO
TRIGTYPE (FIRST) -> Trigger type (if present)
MAXDEPTH(20000) -> Max depth
MSGDLVSQ(PRIORITY) -> Message delivery meth
PUT -> Put (enable/disable)
XMITQ -> Transmit Queue name
RNAME -> Remore local queue name
RQNAME -> Remote Queue Manager name
QDEPTHHI -> High Queue depth
QDEPTHLO -> Low Queue Depth
REPLACE -> Replace if existing

Change the Queue properties
============================
alter qremote RQ_NAME [property]

Display Queue properties
========================
display qremote RQ_NAME

Give permissions to Queue
==========================
setmqaut -m RQ_NAME -n QM_NAME -t queue -g group/user [+browse +get +dsp +put]

Display existing permissions
=============================
dspmqaut -m LQ_NAME -n QM_NAME -t queue -g group/user


Websphere MQ - Transmit Queue Operations

New Transmit Queue
==================
DEFINE QLOCAL(’XQ_NAME’) +
DESCR (’Description’) +
DEFPSIST(NO) +
TRIGTYPE (FIRST) +
MAXDEPTH(200000) +
MSGDLVSQ(PRIORITY) +
USAGE(XMITQ) +
QDEPTHHI (80) +
QDEPTHLO (20) +
REPLACEDEFPSIST(NO) -> Persistant YES/NO
TRIGTYPE (FIRST) -> Trigger type (if present)
MAXDEPTH(20000) -> Max depth
MSGDLVSQ(PRIORITY) -> Message delivery meth
USAGE(XMITQ) -> Queue usage (XMITQ)
QDEPTHHI (80) -> High Queue depth
QDEPTHLO (20) -> Low queue depth
REPLACE -> Replace if existing

Change the Queue properties
============================
alter qlocal XQ_NAME [property]

Display Queue properties
========================
display qlocal LQ_NAME

Give permissions to Queue
==========================
setmqaut -m XQ_NAME -n QM_NAME -t queue -g group/user [+browse +get +dsp +put]

Display existing permissions
=============================
dspmqaut -m LQ_NAME -n QM_NAME -t queue -g group/user

Websphere MQ - Local Queue Operations

New Local Queue
================
DEFINE QLOCAL(’LQ_NAME’) +
DESCR (’description’) +
DEFPSIST(NO) +
TRIGTYPE (FIRST) +
MAXDEPTH(200000) +
MSGDLVSQ(PRIORITY) +
USAGE(NORMAL) +
QDEPTHHI (80) +
QDEPTHLO (20) +
REPLACE

DEFPSIST(NO) -> Persistant YES/NO
TRIGTYPE (FIRST) -> Trigger type
MAXDEPTH(20000) -> Max depth
MSGDLVSQ(PRIORITY) -> Message delivery meth
USAGE(NORMAL) -> Queue usage (NORMAL/XMITQ)
QDEPTHHI (80) -> High Queue depth
QDEPTHLO (20) -> Low queue depth
REPLACE -> Replace if existing

Change the Queue properties
============================
alter qlocal LQ_NAME [property]

Display Queue properties
========================
display qlocal LQ_NAME

Give permissions to Queue
==========================
setmqaut -m LQ_NAME -n QM_NAME -t queue -g group/user [+browse +get +dsp +put]

Display existing permissions
=============================
dspmqaut -m LQ_NAME -n QM_NAME -t queue -g group/user


Websphere MQ - Queue Manager Operations

Create new Queue manager
crtmqm QM_NAME

Display all Queue manages
dspmq

starting Queue Manager
srtmqm QM_NAME

Stopping Queue Manager
endmqm QM_NAME

Connect to Queue Manager
runmqsc QM_NAME

Delete Queue manager
dltmqm Queue_Manager

No comments:

Post a Comment