BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Re[2]: {bb} tweak for HP-UX sites
I'm running BB 1.3, and I originally didn't notice the df output problem
with HPUX. Thanks for the heads up, and even better - a correction.
I implemented this in a couple of stages. First, I modified my
etc/bbdefs.local
file to add your changes. Worked great! Second, I distributed this change
to all of my systems. Finally, I kept reading this thread and noticed that
what
was really necessary was a modification of "bin/bb-local.sh" to use this fix
ONLY if the $BBOSTYPE came up as "hpux". This doesn't require any change
to the etc/bbdef.local file! Either the $DF value can be specified in
etc/bbdefs.local,
or in how it is used in bin/bb-local.sh, but not both. I'm not sure which
is the "cleaner"
solution.
Just a few words of warning about the BB1.3 distribution. As was pointed
out,
"bin/bb-local.sh" tests for $BBOSTYPE to match "HPUX" rather than the "hpux"
that is actually set in "etc/bbdef.sh". Second, the sed script in the BB
1.3 bin/bb-local.sh
script that concatenates the HPUX bdf lines, has LOTS of spaces rather than
tab/space
white space identifiers. Although what is sent out works, it should be
cleaned up as
Mark identified in his message. Third, the call to "sed", as in BB 1.3 and
in Mark's
posted correction should be changed to "$SED" as he identified.
This brings up another question. Most (all?) of the commands used in BB are
defined to include the fully command path. I assume that this is somewhat
for
security purposes, but it should also speed up invoking the commands because
of not needing to search through the path for the command. Does this
provide
any significant speedup?
Thanks all! Your work is truly appreciated.
Bill Larson
PS: Mark - your work to correct this bdf problem IS identified in the BB
1.3 distribution!
> -----Original Message-----
> From: Mark.Deiss@acs-gsg.com [SMTP:Mark.Deiss@acs-gsg.com]
> Sent: Tuesday, November 30, 1999 9:28 AM
> To: bb@bb4.com
> Subject: Re[2]: {bb} tweak for HP-UX sites
>
> DF="eval /bin/bdf | sed -e '/^[^b\t][^b\t]*$/{ N ; s/[b\t]*\n[b\t]*/b/ ;
> }'"
>
> where as below -- the b signifies a space and a \t signifies a tab. All
> other
> blank white spaces are single spaces.
>
> The usage of both the space and the tab are not strictly necessary as the
> current HPUX $DF (/bin/bdf) command appears to use lots of spaces and not
> tabs.
> I included both spaces and tabs in the patterns out of laziness and
> extreme
> paranoid misstrust.
>
> Umm, guess maybe sed should be $SED too... or possibly expand it out with
> correct OS dependent path (/usr/bin/sed for HPUX).
>
> It would be nice if some of the HP-UX users would check this out on their
> boxes
> to make sure it covers their variants before including it into the
> official BB
> release. There are some other HP-UX BB users out there, .... right?
>
> Major oops on my part - this pertains to BB versions through 1.2b. I am
> remiss
> in grabbing the latest and greatest BB 1.3 ( have to fortify myself with
> strong
> drink before going through all the differences in the official BB
> release(s) and
> our version that looks like roadkill). Was holding off until all the
> PURPLEDELAY
> stuff settled out. Do not know how this fix pertains to the BB version 1.3
> if at
> all.
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index