way to tell what version of the client is running
On 31 May 2013 03:48, Root, Paul T <Paul.Root at centurylink.com> 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
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
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 <Paul.Root at centurylink.com<mailto:Paul.Root at centurylink.com>> 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
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
participants (3)
-
cleaver@terabithia.org
-
jlaidman@rebel-it.com.au
-
Rolands@logicaltech.com.au