Skip to content

Instantly share code, notes, and snippets.

@moonpolysoft
Created September 30, 2008 22:29
Show Gist options
  • Save moonpolysoft/13977 to your computer and use it in GitHub Desktop.
Save moonpolysoft/13977 to your computer and use it in GitHub Desktop.
diff --git a/src/erlang/rabbit/src/rabbit_control.erl b/src/erlang/rabbit/src/rabbit_control.erl
index b02afcb..52fb9b0 100644
--- a/src/erlang/rabbit/src/rabbit_control.erl
+++ b/src/erlang/rabbit/src/rabbit_control.erl
@@ -128,6 +128,11 @@ action(force_reset, Node, []) ->
io:format("Forcefully resetting node ~p ...", [Node]),
call(Node, {rabbit_mnesia, force_reset, []});
+action(stat_all, Node, []) ->
+ Res = call(Node, {rabbit_amqqueue, stat_all, []}),
+ io:format("~w~n", [Res]),
+ ok;
+
action(cluster, Node, ClusterNodeSs) ->
ClusterNodes = lists:map(fun list_to_atom/1, ClusterNodeSs),
io:format("Clustering node ~p with ~p ...",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment