beautypg.com

Purging messages – HP Integrity NonStop H-Series User Manual

Page 40

background image

Table 4 Query options

Description

Usage: {broker-name}.sh query

Prints all the attributes of all registered objects queues, topics,
connections, and so on.

{broker-name}.sh query

Prints all the attributes of the queue whose destination name
is QUEUE.IN.

{broker-name}.sh query -QQueue=QUEUE.IN

Prints all the attributes of all registered topics.

{broker-name}.sh query -QTopic=*

Prints the attributes EnqueueCount and DequeueCount of all
registered objects.

{broker-name}.sh query --view

EnqueueCount,DequeueCount

Prints the attributes EnqueueCount and DequeueCount of all
registered topics.

{broker-name}.sh query -QTopic=* --view

EnqueueCount,DequeueCount

Prints the attributes EnqueueCount and DequeueCount of all
registered topics and queues.

{broker-name}.sh query -QTopic=*

-QQueue=* --view

EnqueueCount,DequeueCount

Prints all attributes of all topics except those that begins with
"ActiveMQ.Advisory".

{broker-name}.sh query -QTopic=*

-xQTopic=ActiveMQ.Advisory.*

Prints all attributes of all connectors and connections excluding
network connectors that belongs to the broker that begins
with local.

{broker-name}.sh query --objname

Type=*Connect*,BrokerName=local*

-xQNetworkConnector=*

Prints all attributes of all queues except those that are 4 letters
long.

{broker-name}.sh query -QQueue=*

-xQQueue=????

Purging messages

You can purge messages from a destination using the purge command. Purging deletes the
selected destination's messages.

To purge messages:

1.

Log on to NSMQ.

2.

Go to the <NSMQ-Installation-folder>/<broker_name>/bin directory.

This folder contains the <broker_name>.sh script.

3.

Run the command:

.sh purge

where <destination> is a queue or a topic.

This command deletes the selected destination's messages that matches the message selector.

Following is an example of the purge command:

40

Managing NSMQ

This manual is related to the following products: