Util script to remove raft logs
Change-Id: I1b2af4aada72b155769db7e680bb445518ea6b37
diff --git a/tools/test/bin/onos-remove-raft-logs b/tools/test/bin/onos-remove-raft-logs
new file mode 100755
index 0000000..9797016
--- /dev/null
+++ b/tools/test/bin/onos-remove-raft-logs
@@ -0,0 +1,13 @@
+#!/bin/bash
+# -----------------------------------------------------------------------------
+# Removes Raft logs on all instances
+# -----------------------------------------------------------------------------
+
+[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
+. $ONOS_ROOT/tools/build/envDefaults
+
+nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2)
+
+onos-service --cell stop
+
+for node in $nodes; do onos-ssh $node "rm -v /tmp/onos-copy-cat-log_*"; done