Commits

Anonymous committed 488bdc0

Added ringready and transfers commands to riak-admin

Comments (0)

Files changed (1)

rel/files/riak-admin

         $NODETOOL rpc riak_kv_console status $@
         ;;
 
+    ringready)
+        # 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 ringready $@
+        ;;
+
+    transfers)
+        # 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 transfers $@
+        ;;
+
     js_reload)
         # Reload all Javascript VMs
         RES=`$NODETOOL ping`
 
         ;;
     *)
-        echo "Usage: $SCRIPT { join | leave | backup | restore | test | status | reip | js_reload  }"
+        echo "Usage: $SCRIPT { join | leave | backup | restore | test | status | "
+        echo "                    reip | js_reload | ringready | transfers }"
         exit 1
         ;;
 esac