[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] hobbitdboard arguments
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] hobbitdboard arguments
- From: s_aiello (at) comcast.net
- Date: Mon, 23 Apr 2007 07:53:53 -0400
- References: <32375232.245111177328321540.JavaMail.servlet (at) kundenserver> <462C9CB4.9030507 (at) unil.ch>
- User-agent: KMail/1.9.5
> Torsten Richter wrote:
> > Hi fellows,
> >
> > I've a question about the bb option hobbitdboard.
> > I am just converting a few scripts I've written for BB and I want of
> > course incorporate the functionality that Hobbit has instead of digging
> > through the log files. What I'm trying to do is to get a list on which
> > servers a certain test is running. I do this by firing : ./bb 127.0.0.1
> > "hobbitdboard test=TEST"|awk -F\| '{print $1}' and get a list of all
> > machines running TEST. But not only thes machines but also the ones that
> > are running test or myTEST or TestNEW which I don't want to be displayed.
> > So it seems that Hobbit is doing its search case insensitive.
> > Is there a switch for this and for search only tests that match the whole
> > word instead of a substring?
>
> ./bb 127.0.0.1 "hobbitdboard test=^myTEST$ |awk -F\| '{print $1}'
>
Also, you don't need to use awk to filter on certain fields, you can just use
the hobbitdboard fields= option.
./bb 127.0.0.1 "hobbitdboard test=^myTEST$ fields=hostname,testname"
~Steve