[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: Tue, 23 Dec 2008 22:59:30 -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=o3Z9x8PyM7kkRBDgjPjWcfHoxk6Q26/QuJT6QELrSq0=; b=cgYZadyvIJFmFDNpZ+W+5qU+lIaHjNd01fN+uiNyFp6EUCaxh9pn5OC72FVEZIrhdx mWH0aORyu8/CQP+hUUw6mJiqN22/koKNGzRN5n275U/UmaIabFm1u5l1MmhS3B0b90F2 1VaGyZjy/uK0GXRaH7H56asBpx3uSOhtg4Ldg=
- 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=AiXbgjoJPG8jpjqqEOSG/KOYjiCNxvsyfN61MWUzokzqaIXvNvqTwy3eW/TmcxR7wS q4YxtRkCs5SblvXKtC0afQigqU+h28LbE9BRIlxB+nXMY/df7BQNuo2BcL1lCsbK6JvB dhJmIzNGL/iurm9yjXAavhfRW2hMWZqnYafKg=
- 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"
I did not see that fieldname `client' in the fieldlist in bb man page
http://www.xymon.com/hobbit/help/manpages/man1/bb.1.html
Also if I don't filter by fieldname I don't see the `Y or N' in
hobbitdboard output.
Again have a great holiday to all
>
>
> 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