Skip to content

Commit

Permalink
Merge branch 'bz927-cluster-info-console' into riak-0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
slfritchie committed Dec 21, 2010
2 parents 67fd1a5 + b643f22 commit ff12960
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion rel/files/riak-admin
Expand Up @@ -144,6 +144,18 @@ case "$1" in
$NODETOOL rpc riak_kv_console transfers $@
;;

cluster_info)
# Make sure the local node IS running
RES=`$NODETOOL ping`
if [ "$RES" != "pong" ]; then
echo "Node is not running!"
exit 1
fi
shift

$NODETOOL rpc riak_kv_console cluster_info $@
;;

services)
$NODETOOL rpcterms riak_core_node_watcher services ''
;;
Expand Down Expand Up @@ -268,7 +280,7 @@ case "$1" in
*)
echo "Usage: $SCRIPT { join | leave | backup | restore | test | status | "
echo " reip | js_reload | wait-for-service | ringready | "
echo " transfers | remove }"
echo " transfers | remove | cluster_info }"
exit 1
;;
esac

0 comments on commit ff12960

Please sign in to comment.