remove-all-purple.ksh

T.J. Yang tj_yang at hotmail.com
Wed Jul 2 22:47:49 CEST 2008



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080702/3f0a55e5/attachment.html>


More information about the Xymon mailing list