Util script to remove raft logs
Change-Id: I1b2af4aada72b155769db7e680bb445518ea6b37
Showing
1 changed file
with
13 additions
and
0 deletions
tools/test/bin/onos-remove-raft-logs
0 → 100755
1 | +#!/bin/bash | ||
2 | +# ----------------------------------------------------------------------------- | ||
3 | +# Removes Raft logs on all instances | ||
4 | +# ----------------------------------------------------------------------------- | ||
5 | + | ||
6 | +[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 | ||
7 | +. $ONOS_ROOT/tools/build/envDefaults | ||
8 | + | ||
9 | +nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2) | ||
10 | + | ||
11 | +onos-service --cell stop | ||
12 | + | ||
13 | +for node in $nodes; do onos-ssh $node "rm -v /tmp/onos-copy-cat-log_*"; done |
-
Please register or login to post a comment