#!/bin/sh

if [ $# != 2 ]; then
    if [ $# != 3 ]; then
      echo "Usage: $0 <project/experiment> <my-ip> [stub-ip]"
      exit 1;
    fi
fi

PID=$1
EID=$2
SID=$3

SCRIPT=`which $0`
SCRIPT_LOCATION=`dirname $SCRIPT`
BIN_LOCATION=$SCRIPT_LOCATION/../libnetmon/
BIN=netmond

if ! [ -x $BIN_LOCATION/$BIN ]; then
    echo "$BIN_LOCATION/$BIN missing - run 'gmake' in $BIN_LOCATION to build it"
    exit 1;
fi

echo "Starting up netmond for $PID $EID $SID";
$BIN_LOCATION/$BIN | python monitor.py ip-mapping.txt $PID $EID $SID

#!/bin/sh

if [ $# != 3 ]; then
    if [ $# != 4 ]; then
      echo "Usage: $0 <project> <experiment> <my-ip> [stub-ip]"
      exit 1;
    fi
    SIP=$4
fi

PID=$1
EID=$2
MIP=$3

SCRIPT=`which $0`
SCRIPT_LOCATION=`dirname $SCRIPT`
BIN_LOCATION=$SCRIPT_LOCATION/../libnetmon/
BIN=netmond

if ! [ -x $BIN_LOCATION/$BIN ]; then
    echo "$BIN_LOCATION/$BIN missing - run 'gmake' in $BIN_LOCATION to build it"
    exit 1;
fi

echo "Starting up netmond for $PID/$EID $MIP $SIP";
$BIN_LOCATION/$BIN | python monitor.py ip-mapping.txt $PID/$EID $MIP $SIP

Fix to be more in line with the current command line args of the monitor.
Fix to be more in line with the current command line args of the
monitor.
