Xymon Mailing List Archive search

Find hosts running bb client

list Asif Iqbal
Tue, 23 Dec 2008 22:50:37 -0500
Message-Id: <user-ae296051ecbc@xymon.invalid>

On Tue, Dec 23, 2008 at 3:47 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
In <user-cc196d186558@xymon.invalid> "Asif Iqbal" <user-6f4b51ac2a40@xymon.invalid> 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"
sweet!!
Merry xmas,
You too.
Henrik
Thanks a lot
-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu