Xymon Mailing List Archive search

way to tell what version of the client is running

8 messages in this thread

list Paul Root · Thu, 30 May 2013 17:48:11 +0000 ·
Hi,
                Is there a way from the server, to find out what version the client is running?

                I looked in the xymon command man page, but didn't find anything.

Paul.
list Japheth Cleaver · Thu, 30 May 2013 22:20:50 -0000 (UTC) ·
quoted from Paul Root
Hi,
Is there a way from the server, to find out what version
the client is running?

I looked in the xymon command man page, but didn't find
anything.

Paul.

See http://www.xymon.com/xymon/help/manpages/man1/clientupdate.1.html


By default, no ... not unless you've created a file at
$XYMONHOME/etc/clientversion.cfg, which gets included in the
[clientversion] section by xymonclient.sh.

The Terabithia RPMs report their RPM version there automatically.
(Presumably if you're installing by RPM you probably wouldn't be running
the clientupdate binary to deploy tarballs.)


Either way, you'd query like so:

/]$ xymon localhost "clientlog rhel6-x86-64.build section=clientversion"
[clientversion]
Xymon version 4.3.11-8.1.el6

/]$


HTH,

-jc
list Maik Heinelt · Fri, 31 May 2013 08:37:10 +0900 ·
We will use several pfsense boxes and I am wondering if there is already 
plugin I easily can install to get displayed
those boxes in Xymon?
I was reading, someone else asked same question in past, but at this 
time he had to compile the clients in pfsense.

Interesting would be to get the pfsense graphs displayed in Xymon.

Maik
list Bruce Ferrell · Thu, 30 May 2013 17:51:40 -0700 ·
quoted from Maik Heinelt
On 05/30/2013 04:37 PM, Maik Heinelt wrote:
We will use several pfsense boxes and I am wondering if there is already plugin I easily can install to get displayed
those boxes in Xymon?
I was reading, someone else asked same question in past, but at this time he had to compile the clients in pfsense.

Interesting would be to get the pfsense graphs displayed in Xymon.

Maik

I just built a xymon client on mine
list Sean Clark · Mon, 3 Jun 2013 12:03:49 -0400 ·

On 5/30/13 6:20 PM, "user-87556346d4af@xymon.invalid" <user-87556346d4af@xymon.invalid>
quoted from Japheth Cleaver
wrote:
Hi,
Is there a way from the server, to find out what version
the client is running?

I looked in the xymon command man page, but didn't find
anything.

Paul.

See http://www.xymon.com/xymon/help/manpages/man1/clientupdate.1.html


By default, no ... not unless you've created a file at
$XYMONHOME/etc/clientversion.cfg, which gets included in the
[clientversion] section by xymonclient.sh.

The Terabithia RPMs report their RPM version there automatically.
(Presumably if you're installing by RPM you probably wouldn't be running
the clientupdate binary to deploy tarballs.)
You could have the base rpm on a kickstart server, so that all machines
get kickstarted with a standard image
And then later on in the process, the update client based on their machine
type once deployed, that is how ours runs
quoted from Japheth Cleaver

Either way, you'd query like so:

/]$ xymon localhost "clientlog rhel6-x86-64.build section=clientversion"
[clientversion]
Xymon version 4.3.11-8.1.el6

/]$


HTH,

-jc

This E-mail and any of its attachments may contain Time Warner Cable proprietary information, which is privileged, confidential, or subject to copyright belonging to Time Warner Cable. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout.
list Jeremy Laidman · Tue, 4 Jun 2013 15:16:32 +1000 ·
quoted from Sean Clark
On 31 May 2013 03:48, Root, Paul T <user-76fdb6883669@xymon.invalid> wrote:
Is there a way from the server, to find out what version the client is
running?

You could add this into client-local.cfg on the server:

file:`( echo "client/xymonversion $MACHINE.$OSTYPE"; echo
"[clientversion]"; $XYMON --version ) | $XYMON $XYMSRV @ >/dev/null`

Assign to each device you want to know about.  This causes each client to
run "xymon --version" and send the result back as a supplementary "client"
message.  Then on the server you can retrieve it with the "clientlog" type
message that Japheth showed.  If you upgrade clients, they will
automatically report new version strings.

J
list Roland Soderstrom · Wed, 5 Jun 2013 04:27:20 +0000 ·
My solution was this.

Change this line in client/bin/xymonclient.sh
CLIENTVERSION="`$XYMONHOME/bin/clientupdate --level`"
to
CLIENTVERSION="`$XYMONHOME/bin/xymon --version`"

This shows up on the info page.
Hostname:          host01
OS:         SunOS host01 5.10 Generic_147440-19 sun4u sparc SUNW,Sun-Fire-V240
Client S/W:         Xymon version 4.3.10
IP:           10.0.0.70
Of course that doesn't work if you push out the clients from your server.
The client will most probably clobber that file.
But I guess you could change the clientupdate to include this.
I don't use the clientupdate function.


-          Roland
quoted from Jeremy Laidman

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Jeremy Laidman
Sent: Tuesday, 4 June 2013 3:17 PM
To: Root, Paul T
Cc: xymon at xymon.com
Subject: Re: [Xymon] way to tell what version of the client is running

On 31 May 2013 03:48, Root, Paul T <user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid>> wrote:
Is there a way from the server, to find out what version the client is running?

You could add this into client-local.cfg on the server:

file:`( echo "client/xymonversion $MACHINE.$OSTYPE"; echo "[clientversion]"; $XYMON --version ) | $XYMON $XYMSRV @ >/dev/null`

Assign to each device you want to know about.  This causes each client to run "xymon --version" and send the result back as a supplementary "client" message.  Then on the server you can retrieve it with the "clientlog" type message that Japheth showed.  If you upgrade clients, they will automatically report new version strings.

J
list Japheth Cleaver · Wed, 5 Jun 2013 11:36:54 -0000 (UTC) ·
quoted from Roland Soderstrom
My solution was this.

Change this line in client/bin/xymonclient.sh
CLIENTVERSION="`$XYMONHOME/bin/clientupdate --level`"
to
CLIENTVERSION="`$XYMONHOME/bin/xymon --version`"

This shows up on the info page.
Hostname:          host01
OS:         SunOS host01 5.10 Generic_147440-19 sun4u sparc
SUNW,Sun-Fire-V240
Client S/W:         Xymon version 4.3.10
IP:           10.0.0.70
Of course that doesn't work if you push out the clients from your server.
The client will most probably clobber that file.
But I guess you could change the clientupdate to include this.
I don't use the clientupdate function.

This patch should do the trick as well, using `$XYMON --version` as a
fallback.

-jc
Attachments (1)