Xymon Mailing List Archive search

remove-all-purple.ksh

list T.J. Yang
Wed, 2 Jul 2008 15:47:49 -0500
Message-Id: <user-daeef6748f80@xymon.invalid>


here is another one I need to use frequently as a hb admin.

bash-3.00$ cat remove-all-purple.ksh
# !/usr/bin/ksh
HBBB="/opt/hobbitserver42/bin/bb --debug"

${HBBB}  127.0.0.1 "hobbitdboard color=purple fields=hostname,testname" |
while read L; do
      HOST=`echo $L | cut -d'|' -f1`
      TEST=`echo $L | cut -d'|' -f2`
      ${HBBB} 127.0.0.1 "drop $HOST $TEST"
done
bash-3.00$


T.J. Yang
Watch “Cause Effect,” a show about real people making a real difference.  Learn more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause