<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.88">
<TITLE>Minor tweak for the HP-UX client, possibly others for df output</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=2>Some sites that have 'df" filesystem listings that span multiple lines may need to consolidate each filesystem listing onto a single line.   Noticed that the Hobbit rrd entries for our HPs have some "interesting" results ...</FONT></P>

<P><FONT SIZE=2>Just add the sed filter listed below to clean up the lines. Multiple lines can occur on HP-UX servers that have long volume group names, think it may also happen on some versions of Linux boxes, AIX boxes. Filter below is what is incorporated in BB. </FONT></P>
<BR>

<P><FONT SIZE=2>in hobbitclient-hpux.sh file:</FONT>
</P>

<P><FONT SIZE=2>Before -</FONT>
</P>

<P><FONT SIZE=2>echo "[df]"</FONT>
<BR><FONT SIZE=2>/usr/bin/df -Pk </FONT>
</P>
<BR>

<P><FONT SIZE=2>After -</FONT>
</P>

<P><FONT SIZE=2>echo "[df]"</FONT>
<BR><FONT SIZE=2>/usr/bin/df -Pk | sed -e '/^[^  ][^     ]*$/{</FONT>
<BR><FONT SIZE=2>N</FONT>
<BR><FONT SIZE=2>s/[     ]*\n[   ]*/ /</FONT>
<BR><FONT SIZE=2>}'</FONT>
</P>

</BODY>
</HTML>