#!/bin/sh
COMMUNITY=lookatit
VAR=ifInUcastPkts
if [ $0 = ds3mon ]
then
	VAR="ds3CurrentESs ds3CurrentUASs ds3CurrentSESs ds3CurrentSEFSs ds3CurrentCSSs ds3CurrentCSSs ds3CurrentBPVs ds3CurrentCVs"
fi
#VAR=ifInUcastPkts
while :
do
	for node in `cat $PINGKYDIR/nsfnett3.STATUS | grep NODE | grep 140.222 | awk '{ print $5}'`
	do
		hostlist=`echo $hostlist -h $node`
	done
#	./snmptable2 -c $COMMUNITY $hostlist $VAR | awk '{ if ($3 != 0) print }'| sort -r -n +2 | uniq >/tmp/play.out
	clear
	echo "ReportingNode    DS3ERROR    DSU# VAL      "`date`
	echo "----------------------------------------------------------------------------"
	cat /tmp/play.out
	sleep 30
done
