[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: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Mon, 23 Apr 2007 13:52:32 +0200
- References: <32375232.245111177328321540.JavaMail.servlet (at) kundenserver>
- User-agent: Mutt/1.5.13 (2006-08-11)
On Mon, Apr 23, 2007 at 01:38:41PM +0200, Torsten Richter wrote:
> 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.
The "test=..." is used as a regular expression. So to get only those
that have the exact TEST status, use
./bb 127.0.0.1 'hobbitdboard test=(?-i)^TEST$ fields=hostname'
The "(?-i)" makes the match case-sensitive, and the "^...$" anchors it.
Regards,
Henrik