[rtg] BTONEILL's updatetargets.sh

Yu Safin calanet at gmail.com
Tue Nov 14 07:49:58 PST 2006


The updatetargets.sh command in BTONEILL's is trying to execute the
following command:

. /opt/rtg/targetmaker/etc/.shellsetup

However, I can't find it either in that directory or the directory
where I originally installed the product.

content of updatetargets.sh:
-----------------------------------------
#!/bin/ksh
# $Id: updatetargets.sh,v 1.5 2005/03/31 15:25:25 btoneill Exp $
# $Author: btoneill $
################################################
# I run this script out of cron to update my
# targets.cfg file on a nightly basis and to
# restart rtgpoll after it's been updated.
################################################

. /opt/rtg/targetmaker/etc/.shellsetup

echo Running findsnmp_hosts...
$d $FINDSNMP
echo Running targetmaker
$d $TARGETMAKER --output $RTGTARGET
echo Killing existing rtgpoll application
$d kill -9 `cat $RTGPOLLPID`
$d sleep 15
echo Starting rtgpoll application
$d $RTGPOLL $RTGPOLLARGS $RUNASDAEMON $ZERODELTA -c $RTGCONF -t
$RTGTARGET -p $RTGPOLLPID > $OUTPUT 2>&1

exit 0;


More information about the RTG mailing list