|
Thanks, it works great. I´ve installed the *h version, and found no “df” in bbsys.local. so I changed the “DF” variable in bbsys.sh for server and client (suse is also server and client).
Thanks again! -----Ursprüngliche Nachricht-----
I posted the solution to the “df” line wrapping issue here on Aug. 3, 2005. See below for the details. Basically you just need to use the “-P” option to “df” on any Linux distribution.
------------------------------------------------------------------------- Issue: df command on Linux outputs in multi-line format when volume name is too long. This breaks Big Brother parsing of data. The BB web page displays just the volume name and not the numbers, percent full, and mount point.
Solution: use the "-P" option in df to force single line output.
Patch location: ${BBHOME}/install/bbsys.suse (before installation) ${BBHOME}/etc/bbsys.local (after installation)
Old code: DF="/bin/df -k" New code: DF="/bin/df -P"
Example with "df -k": (note the new line after the volume name) /dev/rootvg/postgresslv 6192704 4088668 1789464 70% /usr/local/postgress
Example with "df -P": (note that everything is on one line) /dev/rootvg/postgresslv 6192704 4088880 1789252 70% /usr/local/postgress
Can this patch be applied to the official sources for the next release?
This patch applies to all platforms based upon the GNU implementation of df.
Note that the removal of the "-k" option still results in output in KB. This option does not appear to be needed.
Neil G. Brookins
From:
owner-bb@bb4.com [mailto:owner-bb@bb4.com] On
Behalf Of Daniel Bierstedt
Hello,
i´m trying to get disk information from my suse server, but it seems that the line is too long for the display. The output looks like that:
/dev/mapper/data-data /dev/sd2 ****** **** 60% /
You see, the volume information of the lv “data” is missing. The output of df for the lv is in two lines… |