Search code examples
cmdrabbitmqamqp

How to test the connection to RabbitMQ Server?


I have the following problem: I need to test connection to RabbitMQ Server which operates on AMQ Protocol, and i need to do it using CMD or something similar, so i can execute the command from script. I don't know if it's possible,the only thing that I found on internet was testing connection through HTTP, and it doesn't work for me.So shortly, I need cmd command that tests connection to RabbitMQ server which uses AMQP.

I hope that someone understands what is my problem, maybe i didn't described it good.

Thanks in advance.


Solution

  • I find out what the problem was, and it's kinda silly. You need to establish connection first, but it's kinda tricky to do on local machine. Simply said, you need to simulate communication between, in this case, two scripts. Then, it's easy to list the connections with command:

    rabbitmqctl list_connections