[rabbitmq-discuss] Queue Info question
rabbitmq-discuss_efine at usa.net
Sun Jun 29 00:18:49 BST 2008
I read a thread (Queue Info) quite a while ago in which a user had problems
using the -remsh option on Windows:
erl -sname temp -remsh rabbit at myhost
(rabbit at myhost1>rabbit_amqqueue:stat_all().
I wondered if it might be easier simply to use an erlang rpc call to do the
As long as you use the identical erlang.cookie file (or use -setcookie on
the command line) that was used to start the rabbitmq daemon, you can call
any exported MFA in the context of the daemon using Erlang rpc.
$ cat ~/.erlang.cookie
$ erl -sname test # or erl -sname test -setcookie KGNBMYPYKVUOXCHBCBFW
(test at myhost)1> rpc:call('rabbit at myhost', rabbit_amqqueue, stat_all, ).
Is there any special reason, other than it's easier just to type
rabbit_amqqueue:stat_all(), why one would want to use erl -sname temp -remsh
rabbit at myhost? Just curious.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss