Xymon Mailing List Archive search

Find hosts running bb client

6 messages in this thread

list Asif Iqbal · Tue, 23 Dec 2008 14:00:49 -0500 ·
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

Thanks

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Henrik Størner · Tue, 23 Dec 2008 20:47:56 +0000 (UTC) ·
quoted from Asif Iqbal
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"


Merry xmas,
Henrik
list Asif Iqbal · Tue, 23 Dec 2008 22:50:37 -0500 ·
quoted from Henrik Størner
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
list Asif Iqbal · Tue, 23 Dec 2008 22:59:30 -0500 ·
quoted from Henrik Størner
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"
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

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Asif Iqbal · Thu, 8 Jan 2009 10:45:50 -0500 ·
quoted from Henrik Størner
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"
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

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Henrik Størner · Mon, 12 Jan 2009 12:01:00 +0000 (UTC) ·
quoted from Asif Iqbal
In <user-f64fab0bc6e5@xymon.invalid> "Asif Iqbal" <user-6f4b51ac2a40@xymon.invalid> writes:
On Tue, Dec 23, 2008 at 3:47 PM, Henrik St=F8rner <user-ce4a2c883f75@xymon.invalid> wrote:
Easier way of doing the same:

 bb 127.0.0.1 "hobbitdboard test=3Dcpu fields=3Dhostname,client" | grep "=
quoted from Asif Iqbal
|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
Use 'test=^cpu$' - it's a normal regular expression.


Regards,
Henrik