Tuesday, 12 March 2019

Rabbitmq mangement console

# Get the cli and make it available to use.
wget http://127.0.0.1:15672/cli/rabbitmqadmin
chmod +x rabbitmqadmin
https://stackoverflow.com/questions/4545660/rabbitmq-creating-queues-and-bindings-from-a-command-line

See list of items in queue
./rabbitmqadmin -H 127.0.0.1 -u <user> -p <password> get queue=myqueue requeue=true count=10
+-------------+----------+---------------+---------------------------------------+---------------+------------------+------------+-------------+
| routing_key | exchange | message_count |                        payload        | payload_bytes | payload_encoding | properties | redelivered |
+-------------+----------+---------------+---------------------------------------+---------------+------------------+------------+-------------+
| abcxyz      | kowalski | 10            | foobar                                | 6             | string           |            | True        |
| abcxyz      | kowalski | 9             | {'testdata':'test'}                   | 19            | string           |            | True        |
| abcxyz      | kowalski | 8             | {'mykey':'myvalue'}                   | 19            | string           |            | True        |
| abcxyz      | kowalski | 7             | {'mykey':'myvalue'}           

list of queues
./rabbitmqadmin -H 127.0.0.1 -u <user> -p <password> list queues

list of users
./rabbitmqadmin -H 127.0.0.1 -u <user> -p <password> list users
https://stackoverflow.com/questions/4545660/rabbitmq-creating-queues-and-bindings-from-a-command-line
https://stackoverflow.com/questions/10709533/is-it-possible-to-view-rabbitmq-message-contents-directly-from-the-command-line

https://docs.bitnami.com/oci/infrastructure/rabbitmq/administration/use-admin-console/

No comments:

Post a Comment