Custom Search

Sunday, December 28, 2014

How to Access RabbitMQ Management Plugin rabbitmqadmin Command Line

1)
Enable rabbitmq_management
#sudo rabbitmq-plugins enable rabbitmq_management

2)
Restart rabbitmq-server
#sudo service rabbitmq-server restart

3)
Access GUI
http://rabbitmq-server-ip:15672/
username:guest
password:guest

4)
Access  rabbitmqadmin Command Line
http://rabbitmq-server-ip:15672/cli

a)
Download  rabbitmqadmin script
#wget http://rabbitmq-server-ip:15672/cli/rabbitmqadmin

b)
Change permission
#chmod +x rabbitmqadmin

5)
rabbitmqadmin Commands

a) 
Help 
#./rabbitmqadmin --help

b)
List all exchanges
#./rabbitmqadmin -u guest -p cloud -H localhost list exchanges
-u : username
-p : password

c)
List all queues
#./rabbitmqadmin -u guest -p cloud -H localhost list queues

d)
Get help of subcommands
#./rabbitmqadmin help subcommands
#./rabbitmqadmin help subcommands | grep queue
#./rabbitmqadmin help subcommands | grep exchnage
#./rabbitmqadmin help subcommands | grep binding
#./rabbitmqadmin help subcommands | grep channel
#./rabbitmqadmin help subcommands | grep connection

e)
Config
#./rabbitmqadmin help config




No comments:

Post a Comment