#!/bin/sh

. /usr/local/bcnu/etc/bcnuenv

LOGFILE="$BCNUHOME/logs/snmptrap.log"

LOGDATE=`date +%Y%m%d` 
LOGTIME=`date +%H.%M`

STAMP="$LOGDATE $LOGTIME"

read hostfrom

while read trap
do
	echo "$hostfrom $STAMP $trap" >> $LOGFILE
done
