#!/bin/sh

TESTLOG=/tmp/test
vars=

read host
read ip


while read oid val; do
  if [ "$vars" = "" ]; then
    vars="$oid = $val"
  else
    vars="$vars, $oid = $val"
  fi
done

if [ -w $TESTLOG ]; then
  touch $TESTLOG
fi

#echo `/usr/bin/openssl rand 20 -base64` trap: $1 $host $ip $vars >> $TESTLOG
echo trap: $1 $host $ip $vars >> $TESTLOG

