[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Find hosts running bb client
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Find hosts running bb client
- From: "Asif Iqbal" <vadud3 (at) gmail.com>
- Date: Thu, 8 Jan 2009 10:45:50 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pHXEIPYkwGYLhctPUVxQs6jgxE/x3TsOLCj7e8XwmUw=; b=BPfRmph4F+KYiw9pHbm2rqh9td4qvKm+dcwVuiWFWMIAMuxBG9GIHtXeDRkrwdOK4Z UYg4HHcLV/tO2pwUSiHnwu48EJkfFOL9GKPa865/RzcsZeR3Jw3BAN678tVxQ408qn12 rpf3lwOD10UnKYg22qwpJ48hmeVoA0q80iKn8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=wcXho1IkBeWm0NNLbnRh1cK7zGOiGDKLhIp+E1JOnlm+ht4JjruI9no7oyzWPxAlld zO+ek8fS2DE+XHz6CqHYa3bCfCLLr9peJDnQe3uNhsv9TRUaHTPW6fImvQlWYcgnToj+ tQLGWGh+/lRWxJhUlz6ugnaXbdXp34YA2Of/o=
- References: <a60f25fc0812231100t4cea6d73y4da026c4afd2d76b (at) mail.gmail.com> <girips$ra1$1 (at) voodoo.hswn.dk>
On Tue, Dec 23, 2008 at 3:47 PM, Henrik Størner <henrik (at) hswn.dk> wrote:
> In <a60f25fc0812231100t4cea6d73y4da026c4afd2d76b (at) mail.gmail.com> "Asif Iqbal" <vadud3 (at) gmail.com> writes:
>
>>I still have few servers that are running bb client and not hobbit
>>client. Is there a hobbit way to find out which servers still running
>>bb-client?
>
>>I could do some ugly tricks like this
>> awk '/^[1-9]/ {print $2}' server/etc/bb-hosts to get the list of hosts
>> do echo bb 127.0.0.1 \"clientlog $h section=uname\"; done > script.sh
>> run the script.sh
>> find the hosts with no output
>
> Easier way of doing the same:
> bb 127.0.0.1 "hobbitdboard test=cpu fields=hostname,client" | grep "|N"
Is it possible to update the test name to match exact string? I have a
test name called `cpuinfo' so unless I put a `$' end of the test
string I get results from both tests
(hobbit)@hobbit:~$ bb 127.0.0.1 "hobbitdboard test=cpu
fields=hostname,client" | wc -l
449
(hobbit)@hobbit:~$ bb 127.0.0.1 "hobbitdboard test=cpu$
fields=hostname,client" | wc -l
334
>
>
> Merry xmas,
> Henrik
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu