RabbitMQ列表队列仅用于通过命令行的特定队列

时间:2017-01-20 05:48:09

标签: queue rabbitmq command-line-interface amqp

我想知道它是否可以list the message_unacknowledged of specific queue?我的意思是我在1个虚拟主机中有一个4-5队列,但我想仅检查message_unacknowledged特定队列。

这是我的命令:

C:\Python26\python.exe C:\Python26\rabbitmqadmin.exe --host %host% --port 443 --ssl --user %user% --password %password% list queues messages_unacknowledged

输出: Output of with name

这是我想要只看到的内容。 enter image description here

谢谢!

1 个答案:

答案 0 :(得分:0)

如果您运行此命令

C:\Python26\python.exe C:\Python26\rabbitmqadmin.exe help subcommands

它将显示您可以运行的所有命令。 遗憾的是,您无法获取特定队列的消息计数。

但你可以编写一个脚本来点击这个url,它将返回一个包含队列所有细节的Json

http://username:password@queue-server:15672/api/queues/%2f/queue_name