[rabbitmq-discuss] rabbitmqadmin and ability to read configuration files

Simon MacMullen simon at rabbitmq.com
Tue Feb 21 13:32:02 GMT 2012


On 20/02/12 12:55, Lionel Cons wrote:
> With our patch, we can put default_vhost=foo in the conf file and both
> list/show commands (ignoring it) and declare commands (using it) will work.

Ah, thanks, I see.

It doesn't seem to work though:

$ cat /home/simon/.rabbitmqadmin.conf

[test]
hostname = localhost
default_vhost = foo

$ rabbitmqadmin list vhosts

+------+---------+
| name | tracing |
+------+---------+
| /    | False   |
| foo  | False   |
+------+---------+

$ rabbitmqadmin -N test declare queue name=lives_in_foo

queue declared

$ rabbitmqadmin -N test list queues vhost name
+-------+--------------+
| vhost |     name     |
+-------+--------------+
| /     | lives_in_foo |
+-------+--------------+

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list