<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Minor tweak for the HP-UX client, possibly others for df output</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P.MsoAutoSig {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoAutoSig {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoAutoSig {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Extract from bdf manpage:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM>If file system names are too long, the output 
for a given entry is   <BR>displayed on two 
lines.                                              
<BR></EM>                                                                     
</FONT></DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Lars</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=Neil.Brookins@Yellowbook.com 
  href="mailto:Neil.Brookins@Yellowbook.com">Brookins, Neil (YBUSA-KOP)</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=hobbit@hswn.dk 
  href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, October 05, 2005 3:48 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [hobbit] Minor tweak for the 
  HP-UX client, possibly others for df output</DIV>
  <DIV><BR></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">On HP-UX there are 
  two versions of “df”. One is called “df” the other is called “bdf”. I think 
  that bdf with the appropriate flags will always give output onto a single 
  line; therefore eliminating the need to use “sed”. I would think a solution 
  that results in a single output line without needing sed would be preferred. 
  (faster running, cleaner code)</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I don’t have an HP-UX 
  box handy to test bdf on right now; I’m stating this information from 
  memory.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Linux boxes using the 
  GNU df command always output a single line when used with the “-P” option. Sed 
  is not needed on Linux.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
  <DIV>
  <P class=MsoAutoSig><FONT face="Times New Roman" color=navy size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: navy">Neil G. Brookins</SPAN></FONT></P></DIV>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT> </P>
  <DIV>
  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
  face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
  <HR tabIndex=-1 align=center width="100%" SIZE=2>
  </SPAN></FONT></DIV>
  <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
  face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Deiss, 
  Mark [mailto:Mark.Deiss@acs-inc.com] <BR><B><SPAN 
  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, October 05, 2005 7:03 
  AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 
  'hobbit@hswn.dk'<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> 
  [hobbit] Minor tweak for the HP-UX client, possibly others for df 
  output</SPAN></FONT></P></DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">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 
  ...</SPAN></FONT></P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">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. </SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">in 
  hobbitclient-hpux.sh file:</SPAN></FONT> </P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">Before 
  -</SPAN></FONT> </P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">echo 
  "[df]"</SPAN></FONT> <BR><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">/usr/bin/df -Pk </SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">After 
  -</SPAN></FONT> </P>
  <P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">echo 
  "[df]"</SPAN></FONT> <BR><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">/usr/bin/df -Pk | sed -e '/^[^  
  ][^     ]*$/{</SPAN></FONT> <BR><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">N</SPAN></FONT> <BR><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">s/[     ]*\n[   ]*/ 
  /</SPAN></FONT> <BR><FONT size=2><SPAN 
  style="FONT-SIZE: 10pt">}'</SPAN></FONT> </P></DIV></BLOCKQUOTE></BODY></HTML>