#!/bin/sh
#
# $Source: /afs/net.mit.edu/tools/src/hostcheck/RCS/hostcheck,v $
# $Author: tom $
# $Header: /afs/net.mit.edu/tools/src/hostcheck/RCS/hostcheck,v 1.3 91/02/21 12:23:44 tom Exp $
#

PATH=/bin
VARFILE=${VARFILE-/mit/snmp/nyser/etc/snmp.variables}

if [ ! -r $VARFILE ]; then
	echo -n "attaching snmp... "
        /bin/athena/attach snmp
        if [ ! -r $VARFILE ]; then
                echo "Unable to read SNMP variables file." 1>&2
                exit 1
        fi
fi

/afs/net/tools/@sys/simon -request "query_agent -noprompt $*"


