rabbitmq commands

15 commands, each with a one-line explanation. Click a command to copy it, or its title for details.

Commands 15 shown

  • rabbitmqctl list_queues name messages consumers durable

    Show queues with message count and consumer count

    monitoring

  • rabbitmqctl list_exchanges name type durable

    Show all exchanges and their types

  • rabbitmqctl list_bindings

    Show all queue-exchange bindings

  • rabbitmqctl list_connections name peer_host port user

    Show all active AMQP connections

    monitoring

  • rabbitmqctl purge_queue <queue>

    Delete all messages from a queue without removing it

  • rabbitmqctl status

    Show node info, running applications, memory, listeners

    monitoring

  • rabbitmq-plugins enable rabbitmq_management

    Enable the HTTP management API and web UI on port 15672

    config

  • rabbitmqctl export_definitions /tmp/rabbitmq-definitions.json

    Export all exchanges, queues, bindings, users, policies

    config

  • rabbitmqctl list_queues name messages consumers

    Show queue names, message depth and consumer count

  • rabbitmqctl cluster_status

    Show cluster nodes, disk nodes and partitions

    debug

  • rabbitmqctl purge_queue my_queue -p my_vhost

    Remove all messages from a queue without deleting it

  • rabbitmqctl list_exchanges name type durable

    Show all exchanges with type and durability

  • rabbitmqctl list_bindings -p my_vhost

    Show exchange-to-queue bindings for a vhost

  • rabbitmq-plugins enable rabbitmq_management && rabbitmqctl restart

    Enable web UI on port 15672

  • curl -s -u guest:guest http://localhost:15672/api/definitions | jq '.' > rabbitmq-defs.json

    Export all vhosts, exchanges and policies via management API