Skip to content

Instantly share code, notes, and snippets.

@pfigue
Last active August 29, 2015 14:05
Show Gist options
  • Save pfigue/4ab52dc2c2fb1a357b96 to your computer and use it in GitHub Desktop.
Save pfigue/4ab52dc2c2fb1a357b96 to your computer and use it in GitHub Desktop.
rabbitmqctl use cases

Show virtual hosts:

sudo rabbitmqctl list_vhosts

Show who is connected where:

sudo rabbitmqctl -n rabbit@node list_connections user vhost peer_host

Check credentials (requires management plugin enabled):

curl http://user:password@server:15672/

Show permissions:

sudo rabbitmqctl list_permissions -p <virtualhost>

Show each queue with its parameters:

rabbitmqctl list_queues -p prod durable auto_delete consumers memory status name

Show each queue and its messages:

rabbitmqctl list_queues -p prod messages messages_ready messages_unacknowledged name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment