ページの先頭行へ戻る
Interstage Application Server V12.0.0 Java EE 7 設計・構築・運用ガイド
FUJITSU Software

10.6.12 purge durサブコマンド

形式

imqcmd purge dur [-c クライアントID] -n サブスクライバの識別名


機能説明

永続サブスクリプションを削除しないで、永続サブスクリプションのすべてのメッセージを破棄します。


オプション

オプション名

説明

-c

クライアントIDを指定します。クライアントIDのないサブスクリプションのメッセージを破棄する場合、指定する必要はありません。

-n

サブスクライバの識別名を指定します。


戻り値

0: 正常終了
0以外: 異常終了


使用例

以下のように実行します。
永続サブスクリプションのメッセージを削除してもよいかが確認されます。削除してもよい場合は、「y」を入力します。

C:\Interstage\F3FMisje7\mq\bin\imqcmd purge dur -c test -n sample
Username: admin
Password:
Purging the durable subscription where:

------------------------------
Durable Sub. Name    Client ID
------------------------------
sample               test

On the broker specified by:

-------------------------
Host         Primary Port
-------------------------
localhost    17686

Are you sure you want to purge this durable subscription? (y/n)[n] y

Successfully purged the durable subscription.

/opt/FJSVisje7/mq/bin/imqcmd purge dur -c test -n sample
Username: admin
Password:
Purging the durable subscription where:

------------------------------
Durable Sub. Name    Client ID
------------------------------
sample               test

On the broker specified by:

-------------------------
Host         Primary Port
-------------------------
localhost    17686

Are you sure you want to purge this durable subscription? (y/n)[n] y

Successfully purged the durable subscription.