[hobbit] Couple possible enhancement requests?
We have had several complete failures of the hobbit client when it hangs trying to look at remote file systems. Do you think the -l option should be the default? We typically do not care about NFS mounted or NIS mounted file systems although others may. Of course when Hobbit hangs ALL the tests go purple and you are unaware when it happens in the middle of the night.
From the Solaris man page:
-l Report on local file systems only. This option is used
only for mounted file systems. It cannot be used with
the -o option.
I was also wondering if 'bbcmd' could be upgraded to accommodate different home directories? It appears to use the home directory that you compiled it with which works most of the time except when you copy bbcmd to a client host with a different home directory.
nmsbb at thisHost:/var/home/nmsbb/client> bin/bbcmd perl ext/bb-se.pl 2006-06-29 16:27:37 Using default environment file /export/home/nmsbb/client/etc/hobbitclient.cfg 2006-06-29 16:27:37 Cannot open env file /export/home/nmsbb/client/etc/hobbitclient.cfg - No such file or directory
-- David Gore (v965-3670) Enhanced Technology Support (ETS) Network Management Systems (NMS) IMPACT Transport Team Lead - SCSA, SCNA Page: 1-800-PAG-eMCI pin 1406090 Vnet: 965-3676
David Gore wrote:
We have had several complete failures of the hobbit client when it hangs trying to look at remote file systems. Do you think the -l option should be the default? We typically do not care about NFS mounted or NIS mounted file systems although others may. Of course when Hobbit hangs ALL the tests go purple and you are unaware when it happens in the middle of the night.
From the Solaris man page:
-l Report on local file systems only. This option is used only for mounted file systems. It cannot be used with the -o option.I was also wondering if 'bbcmd' could be upgraded to accommodate different home directories? It appears to use the home directory that you compiled it with which works most of the time except when you copy bbcmd to a client host with a different home directory.
nmsbb at thisHost:/var/home/nmsbb/client> bin/bbcmd perl ext/bb-se.pl 2006-06-29 16:27:37 Using default environment file /export/home/nmsbb/client/etc/hobbitclient.cfg 2006-06-29 16:27:37 Cannot open env file /export/home/nmsbb/client/etc/hobbitclient.cfg - No such file or directory
$ man bbcmd Reformatting page. Please Wait... done
User Commands BBCMD(1)
NAME bbcmd - Run a Hobbit command with environment set
SYNOPSIS bbcmd --env=ENVFILE COMMAND
DESCRIPTION bbcmd(1) is a utility that can setup the Hobbit environment variables as defined in a hobbitlaunch(8) compatible environment definition file, and then execute a command with this environment in place. It is mostly used for testing extension scripts or in other situations where you need to run a single command with the environment in place.
The "--env=ENVFILE" option points bbcmd to the file where
the environment definitions are loaded from.
COMMAND is the command to execute after setting up the
environment.
If you want to run multiple commands, it is often easiest to
just use "sh" as the COMMAND - this gives you a sub-shell
with the environment defined globally.
SEE ALSO hobbitlaunch(8), hobbit(7)
Hobbit Lasttchange: Version 4.2-beta-20060601: 31 May 2006 1
Dominique UNIL - University of Lausanne
On Thu, Jun 29, 2006 at 04:28:58PM +0000, David Gore wrote:
We have had several complete failures of the hobbit client when it hangs trying to look at remote file systems. Do you think the -l option should be the default?
Yes. Done.
I was also wondering if 'bbcmd' could be upgraded to accommodate different home directories?
Use the --env option.
Henrik
Henrik Stoerner wrote:
On Thu, Jun 29, 2006 at 04:28:58PM +0000, David Gore wrote:
We have had several complete failures of the hobbit client when it hangs trying to look at remote file systems. Do you think the -l option should be the default?
Yes. Done.
Cool, thank you!
I was also wondering if 'bbcmd' could be upgraded to accommodate different home directories?
Use the --env option.
Ok, but I still get this...
../bin/bbcmd --env=../etc/hobbitclient.cfg perl bb-se.pl 2006-06-30 11:24:22 xgetenv: Cannot find value for variable HOBBITCLIENTHOME Could not open file: /etc/bb-proctab error: No such file or directory
Because:
more ../etc/hobbitclient.cfg . .
You normally dont need to modify anything below here
BBPORT="1984" # Portnumber where hobbitd listens BBHOME="$HOBBITCLIENTHOME" # Directory for the Hobbit client files
Obviously, I could hack around that, but I was hoping to avoid doing so. I just thought if runclient.sh could figure it out programmatically so could bbcmd?
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (3)
-
David.Gore@verizonbusiness.com
-
Dominique.Frise@unil.ch
-
henrik@hswn.dk