Hi Henrik
on one of my servers, I'm running Hobbit 4.1.2p1 configured like this :
bbproxy listens on TCP 1984 and forwards to hobbitd, which listens on
TCP 1985 on the same server.
I'm doing this because without the bbproxy running, I got from times to
times "purple" statuses telling me "CAN'T CONNECT TO bbd SERVER @
xx.xx.xx.xx".
Everything works fine but the "hobbitdboad" command, which does not reply anything.
Is it possible to use this command through a bbproxy, or has it been corrected in Hobbit 4.2.0 ?
Many thanks in advance for your answer.
--
Frédéric Mangeant
Steria EDC Sophia Antipolis
I have a setup like yours. When you specify your server for the bb command, specify the port as well, like this:
$BBHOME/bin/bb hobbit_server:1985 "hobbitdboard ..."
Thanks, Larry Barber
On 6/13/07, Frédéric Mangeant <frederic.mangeant at steria.com> wrote:
Hi Henrik
on one of my servers, I'm running Hobbit 4.1.2p1 configured like this : bbproxy listens on TCP 1984 and forwards to hobbitd, which listens on TCP 1985 on the same server. I'm doing this because without the bbproxy running, I got from times to times "purple" statuses telling me "CAN'T CONNECT TO bbd SERVER @ xx.xx.xx.xx".
Everything works fine but the "hobbitdboad" command, which does not reply anything.
Is it possible to use this command through a bbproxy, or has it been corrected in Hobbit 4.2.0 ?
Many thanks in advance for your answer.
--
Frédéric Mangeant
Steria EDC Sophia Antipolis
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Larry Barber a écrit :
I have a setup like yours. When you specify your server for the bb command, specify the port as well, like this:
$BBHOME/bin/bb hobbit_server:1985 "hobbitdboard ..."
Thanks for your answer. I've already tried that (and it works), but firewalls do not let me access the TCP 1985 port from outside.
I gess I'll have to ask the network team...
--
Frédéric Mangeant
Steria EDC Sophia Antipolis
I've written a slight mod for the filesystem check for the hobbitclient-sunos.sh client file. I didn't want to have an external script doing the NFS check, nor do I want the client hanging if the filesystem becomes unavailable. The difficulty is always those timeouts. The only command I've found (without installing something else) is the showmount command. It times out after 15 seconds, so that shouldn't tie up the Hobbit client for too long.
Can someome with a test server, they can control the shares on, run some tests with this code and make sure it works ok in case of a real failure? Note: the <tab> indicators are to be replaced by real tab characters since \t doesn't work with egrep for some reason.
echo "[df]"
FSTYPES=/bin/df -n -l|awk '{print $3}'|egrep -v "^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs"|sort|uniq
if test "$FSTYPES" = ""; then FSTYPES="ufs"; fi
set $FSTYPES
/bin/df -F $1 -k | grep -v " /var/run"
shift
while test "$1" != ""; do
/bin/df -F $1 -k | grep -v " /var/run" | tail +2
shift
done
/usr/xpg4/bin/egrep '[ <tab>]nfs[ <tab>]' /etc/mnttab |
/usr/xpg4/bin/egrep -v ' <tab>,[ <tab>,]' |
/usr/bin/awk '{print $1, $2}' | while read line
do
set -- $line
NFSHOST=echo $1 | /usr/bin/awk -F: '{print $1}'
SHARE=echo $1 | /usr/bin/awk -F: '{print $2}'
/usr/sbin/ping $NFSHOST 5 >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "$1 IS NOT RESPONDING(ping_failed) 999% $2"
else
/usr/sbin/showmount -d $NFSHOST >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "$1 IS NOT AVAILABLE(showmount_failed) 999% $2"
else
/usr/sbin/showmount -d $NFSHOST | /usr/xpg4/bin/egrep "^$SHARE$"
/dev/null 2>&1 if [ $? -ne 0 ]; then echo "$1 IS NOT AVAILABLE(showmount_failed_to_find_share) 999% $2" else /bin/df -k $2 | tail +2 fi fi fi done
Oops I realized that the showmount command should be using -e, not -d. Also, I made a version for hobbitclient-linux.sh:
echo "[df]"
df -Pl -x none -x tmpfs -x shmfs -x unknown -x iso9660 | sed -e '/^[^
][^ ]*$/{
N
s/[ ]*\n[ ]*/ /
}'
/bin/egrep '[ ]nfs[ ]' /etc/mtab | /bin/egrep -v '
,[ ,]' | /usr/bin/awk '{print $1, $2}' | while read
line
do
set -- $line
NFSHOST=echo $1 | /usr/bin/awk -F: '{print $1}'
SHARE=echo $1 | /usr/bin/awk -F: '{print $2}'
/bin/ping -c 1 $NFSHOST >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "$1 IS NOT RESPONDING(ping_failed) 999% $2"
else
/usr/sbin/showmount -e $NFSHOST >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "$1 IS NOT AVAILABLE(showmount_failed) 999% $2"
else
/usr/sbin/showmount -e $NFSHOST | egrep "^$SHARE " >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "$1 IS NOT AVAILABLE(showmount_failed_to_find_share) 999% $2"
else
/bin/df -k $2 | /bin/sed -e '/^[^ ][^ ]*$/{
N
s/[ ]*\n[ ]*/ /
}' | tail +2
fi
fi
fi
done
participants (3)
-
frederic.mangeant@steria.com
-
lebarber@gmail.com
-
matthew.epp@us.army.mil