[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
remove-all-purple.ksh
- To: hobbit system monitoring <hobbit (at) hswn.dk>
- Subject: remove-all-purple.ksh
- From: "T.J. Yang" <tj_yang (at) hotmail.com>
- Date: Wed, 2 Jul 2008 15:47:49 -0500
- Importance: Normal
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