blob: c18d9231f26b35b553047536c80b40491be0f9e9 [file] [log] [blame]
Thomas Vachuska33bd2302015-02-19 14:53:44 -08001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Kills all remote ONOS log file monitors on the specified node.
4# -----------------------------------------------------------------------------
5
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8. $ONOS_ROOT/tools/test/bin/find-node.sh
9
10less=0
11[ "$1" = "-l" ] && shift && less=1
12
13remote=$(find_node $1)
14remote=$ONOS_USER@${remote:-$OCI}
15
16ssh $remote "ps -ef | grep \"tail -n 512\" | grep -v grep | cut -c10-15 | xargs kill"