[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Remove/Drop all of one test type
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Remove/Drop all of one test type
- From: "Matthew Davis" <matthew (at) familycampground.org>
- Date: Tue, 10 Oct 2006 13:57:18 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=RFNKmAo7fDPC+eFhnq5tukxEVleUof67n3RCcWLpAXJEjg1+kag2OkDaiOWCmnDNxqnczZAv3a7ro2NaFPJCzQ63hJgSHHhb0t8MatRlAf45QRuzvMdt0BizfT+yMx3MuZLDFrJ5dfBINiZM4VC/8gpzWUHodskJhrToQXWXzNc=
- References: <27ae92160610101034ofec8fb0n96c6c733c5dd0416@mail.gmail.com>
On 10/10/06, Shane Presley <shane.presley (at) gmail.com> wrote:
I have ~300 servers, and recently changed the ping column from "conn"
to "Ping". Now of course my old conn column is all purple.
How can I remove all my conn tests? I tried this, but it didn't work:
bb 127.0.0.1 "drop * testname conn"
From a message sent by Hendrik to the list dated: Tue, 5 Sep 2006 09:26:23
The command
bb 127.0.0.1 "hobbitdboard"
is your friend, combined with a bit of scripting. E.g:
Is it possible to remove a single test from *all* hosts?
bb 127.0.0.1 "hobbitdboard test=MYTEST fields=hostname" |
while read H; do bb 127.0.0.1 "drop $H MYTEST"; done
Or all tests from all hosts?
bb 127.0.0.1 "hobbitdboard test=info fields=hostname" |
while read H; do bb 127.0.0.1 "drop $H"; done
Or all tests that are purple?
bb 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`
bb 127.0.0.1 "drop $HOST $TEST"
done
--
Matthew Davis
http://familycampground.org/matthew/