[rabbitmq-discuss] Queue info

Tony Garnock-Jones tonyg at lshift.net
Fri Feb 29 12:31:23 GMT 2008


Hi Ying,

Ying He wrote:
> I was running rabbitmq-server.bat and I do have some queues with
> producers and consumers and they are working fine running in the
> backgroud. However this command does not show me the right info, when I
> start in another cmd 
> 
> C:\Program Files\erl5.5.5\bin>erl -sname yhe -remsh rabbit at localhost
> Eshell V5.5.5  (abort with ^G)
> (yhe at yhe)1> rabbit_amqqueue:stat_all().
> ** exited: {aborted,{no_exists,[amqqueue,[{'$1',[],['$1']}]]}} **

This is really interesting. I haven't tried the "-remsh" option on
Windows yet, but it looks like it's not registered that it's supposed to
connect to the running broker. For comparison, here's what I see on my
Linux machine:

~$ erl -sname foo -remsh rabbit at shortstop
Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [hipe]
[kernel-poll:false]

Eshell V5.5.5  (abort with ^G)
(rabbit at shortstop)1>


Notice how I said "-sname foo", and the *prompt* I'm given says
"rabbit at shortstop", indicating that I am issuing commands into a remote
erlang instance, not the local one. In the text you copied into your
email, above, we see "yhe at yhe" as the prompt, indicating that commands
you enter are being targetted at the *local* erlang instance, not the
remote one named in the "-remsh" command-line option.

I'll try to find a windows machine upon which to experiment.

> Please advise. Anything I did wrong? 'yhe' is the username.

If it's also the machine name, perhaps the following will do the trick?

erl -sname temp -remsh rabbit at yhe

> As to the management interface, it will be good to see the number of
> messages that has been through the queue and the number of messages that
> still sit on the queue and error log for failure of delivery etc( this
> could be optional)

The number-of-messages-seen could be added fairly easily. The number of
messages currently on the queue is already present. What do you mean by
"failure of delivery", in this case?

Regards,
  Tony
-- 
 [][][] Tony Garnock-Jones     | Mob: +44 (0)7905 974 211
   [][] LShift Ltd             | Tel: +44 (0)20 7729 7060
 []  [] http://www.lshift.net/ | Email: tonyg at lshift.net




More information about the rabbitmq-discuss mailing list