Xymon Mailing List Archive search

bbcmd on clients does not set MACHINE and MACHINEDOTS

4 messages in this thread

list Dominique Frise · Thu, 18 May 2006 08:12:10 +0200 ·
Hi,

We noticed a problem when using bbcmd on clients for testing extension scripts:
the variables exported in runclient.sh are not set.

At least MACHINE and MACHINEDOTS should be set for beeing able to test any 
client-side extension script (Big Brother style or Hobbit style).


Dominique
UNIL - University of Lausanne
list Frédéric Mangeant · Wed, 05 Jul 2006 14:18:00 +0200 ·
quoted from Dominique Frise
Dominique Frise a écrit :
Hi,

We noticed a problem when using bbcmd on clients for testing extension scripts:
the variables exported in runclient.sh are not set.

At least MACHINE and MACHINEDOTS should be set for beeing able to test any client-side extension script (Big Brother style or Hobbit style).

Hi Henrik

I totally agree with Dominique : I'm currently "upgrading" Big Brother clients to Hobbit 4.1.2p1 clients, and some of my external scripts are run from other scripts (post-backup ones, for example).

Would it be possible to modify bbcmd to export MACHINE, MACHINEDOTS, BBOSTYPE and HOBBITCLIENTHOME, so we can run external scripts outside of Hobbit ?

Thanks in advance !

-- 

Frédéric Mangeant

Steria EDC Sophia-Antipolis
list Rolf Schrittenlocher · Wed, 05 Jul 2006 14:34:12 +0200 ·
Hi Frédéric,

I'd prefer not to as we have to set  some of these variables to different values because of several virtual aliases using one  hobbit installation. Why don't you put a line in those scripts which reads those variables?

regards
Rolf
quoted from Dominique Frise
Dominique Frise a écrit :
Hi,

We noticed a problem when using bbcmd on clients for testing extension scripts:
the variables exported in runclient.sh are not set.

At least MACHINE and MACHINEDOTS should be set for beeing able to test any client-side extension script (Big Brother style or Hobbit style).

Hi Henrik

I totally agree with Dominique : I'm currently "upgrading" Big Brother clients to Hobbit 4.1.2p1 clients, and some of my external scripts are run from other scripts (post-backup ones, for example).

Would it be possible to modify bbcmd to export MACHINE, MACHINEDOTS, BBOSTYPE and HOBBITCLIENTHOME, so we can run external scripts outside of Hobbit ?

Thanks in advance !
-- 

Mit freundlichen Gruessen
Rolf Schrittenlocher

HRZ/BDV, Senckenberganlage 31, 60054 Frankfurt Tel: (XX) XX - XXX XXXXX   Fax: (XX) XX - XXX XXXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-6ea8e907e200@xymon.invalid
list Henrik Størner · Sun, 9 Jul 2006 17:14:49 +0200 ·
quoted from Frédéric Mangeant
On Wed, Jul 05, 2006 at 02:18:00PM +0200, Frédéric Mangeant wrote:
Dominique Frise a écrit :
Hi,

We noticed a problem when using bbcmd on clients for testing extension >scripts: the variables exported in runclient.sh are not set.

At least MACHINE and MACHINEDOTS should be set for beeing able to test >any client-side extension script (Big Brother style or Hobbit style).
I totally agree with Dominique : I'm currently "upgrading" Big Brother clients to Hobbit 4.1.2p1 clients, and some of my external scripts are run from other scripts (post-backup ones, for example).

Would it be possible to modify bbcmd to export MACHINE, MACHINEDOTS, BBOSTYPE and HOBBITCLIENTHOME, so we can run external scripts outside of Hobbit ?
Done now. HOBBITCLIENTHOME is decided based on the location of the environment file that is loaded, which should give the right result
in any normal setup.


Regards,
Henrik