#!/bin/sh
#
# Run the r1 emulator in debug mode using local libraries
# (remember to do 'make' at the top level first)
#
# Non-debug invocation is more like this:
# snmpd -C -I vacm_conf -p /tmp/snmpd.pid.r1 -Lf /tmp/snmpd.r1.log -A -c ./r1.conf
#
# Andrew Findlay
# Nov 2009
#
# $Id: run-r1,v 1.1 2009/11/13 13:29:55 afindlay Exp $

echo Running R1 emulator on localhost:9111
echo Trace file /tmp/r1.trace
echo ''

RADDLE_DEBUG=2
export RADDLE_DEBUG
PERLLIB=../../blib/lib
export PERLLIB
strace -o /tmp/r1.trace snmpd -C -I vacm_conf -p /tmp/snmpd.pid.r1 -Le -A -f -M +`pwd`/mibs -m +BRIDGE-MIB -c `pwd`/r1-test.conf
