[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: Henrik "Størner" <henrik (at) hswn.dk>
- Date: Tue, 23 Dec 2008 20:47:56 +0000 (UTC)
- Newsgroups: lists.hobbit
- Organization: Linux Users Inc.
- References: <a60f25fc0812231100t4cea6d73y4da026c4afd2d76b (at) mail.gmail.com>
- User-agent: nn/6.7.3
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"
Merry xmas,
Henrik