Yuta HIGUCHI | c588aa3 | 2014-11-13 14:28:48 -0800 | [diff] [blame] | 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 | |
Claudine Chiu | 45312d0 | 2016-06-15 13:17:12 +0000 | [diff] [blame] | 9 | nodes=$(env | sort | egrep "^OC[0-9]+" | cut -d= -f2) |
Yuta HIGUCHI | c588aa3 | 2014-11-13 14:28:48 -0800 | [diff] [blame] | 10 | |
| 11 | onos-service --cell stop |
| 12 | |
Yuta HIGUCHI | 43e3a7e | 2014-11-30 23:22:11 -0800 | [diff] [blame] | 13 | # TODO: use $KARAF_DATA |
| 14 | for node in $nodes; do onos-ssh $node "rm -v -- $ONOS_INSTALL_DIR/$KARAF_DIST/data/raft/onos-copy-cat-log_*"; done |