RabbitMQ - List Virtual Hosts using the rabbitmqctl list_vhosts command

The list_vhosts option can be used to return the list of virtual hosts which should produce something like this.

~]$ rabbitmqctl list_vhosts
Listing vhosts ...


There are only two additional arguments that can be included, name and tracing. The tracing option will return either true or false.

~]$ rabbitmqctl list_vhosts name tracing
Listing vhosts ...
name    tracing
/       false
foo     false
bar     false


The --quiet option can be used to suppress "Listing vhosts ..." from the output.

~]$ rabbitmqctl list_vhosts name tracing --quiet
name    tracing
/       false
foo     false
bar     false


The --formatter json option can be used to return the output in JSON.

~]$ rabbitmqctl list_vhosts name tracing --quiet --formatter json

Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 2db51 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |