<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic bdf one line output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-one-line-output/m-p/4493063#M363907</link>
    <description>Hi Guys,&lt;BR /&gt;  &lt;BR /&gt;     I have HP-UX 11.00 server. Below is the bdf output of it.&lt;BR /&gt;&lt;BR /&gt;$ bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3    1048576   41307  944370    4% /&lt;BR /&gt;/dev/vg00/lvol1     255253   74183  155544   32% /stand&lt;BR /&gt;/dev/vg00/lvol8    3145728  647245 2349665   22% /var&lt;BR /&gt;/dev/vg00/lvol7    1048576  561919  456264   55% /usr&lt;BR /&gt;/dev/vg00/lvpatrol 1024000  224406  749634   23% /usr/localcw/opt/patrol&lt;BR /&gt;/dev/vg00/lvol6    1572864    2057 1472672    0% /tmp&lt;BR /&gt;/dev/vg00/lvol5    1572864  898294  632427   59% /opt&lt;BR /&gt;/dev/vg00/lvol4      32768    3796   27186   12% /home&lt;BR /&gt;/dev/vg_glxy_02/obus_syb_fs&lt;BR /&gt;                   4104192    4750 3845593    0% /biller/obus_sybase&lt;BR /&gt;/dev/vg_glxy_02/obus_rep_fs&lt;BR /&gt;                   2052096    2281 1922348    0% /biller/obus_repserver&lt;BR /&gt;&lt;BR /&gt;As you can see above, the last two FS of bdf comes in separate lines, but we run one script that need to have the one line output for every FS, and all fields of bdf are mandatory. That script is scheduled and run on many other servers also. I tried df -kp, but no use.&lt;BR /&gt;&lt;BR /&gt;   Is there anyway that we can get the one line output of every FS in bdf or any other command.&lt;BR /&gt;   &lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 07 Sep 2009 15:01:23 GMT</pubDate>
    <dc:creator>Vishu</dc:creator>
    <dc:date>2009-09-07T15:01:23Z</dc:date>
    <item>
      <title>bdf one line output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-one-line-output/m-p/4493063#M363907</link>
      <description>Hi Guys,&lt;BR /&gt;  &lt;BR /&gt;     I have HP-UX 11.00 server. Below is the bdf output of it.&lt;BR /&gt;&lt;BR /&gt;$ bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3    1048576   41307  944370    4% /&lt;BR /&gt;/dev/vg00/lvol1     255253   74183  155544   32% /stand&lt;BR /&gt;/dev/vg00/lvol8    3145728  647245 2349665   22% /var&lt;BR /&gt;/dev/vg00/lvol7    1048576  561919  456264   55% /usr&lt;BR /&gt;/dev/vg00/lvpatrol 1024000  224406  749634   23% /usr/localcw/opt/patrol&lt;BR /&gt;/dev/vg00/lvol6    1572864    2057 1472672    0% /tmp&lt;BR /&gt;/dev/vg00/lvol5    1572864  898294  632427   59% /opt&lt;BR /&gt;/dev/vg00/lvol4      32768    3796   27186   12% /home&lt;BR /&gt;/dev/vg_glxy_02/obus_syb_fs&lt;BR /&gt;                   4104192    4750 3845593    0% /biller/obus_sybase&lt;BR /&gt;/dev/vg_glxy_02/obus_rep_fs&lt;BR /&gt;                   2052096    2281 1922348    0% /biller/obus_repserver&lt;BR /&gt;&lt;BR /&gt;As you can see above, the last two FS of bdf comes in separate lines, but we run one script that need to have the one line output for every FS, and all fields of bdf are mandatory. That script is scheduled and run on many other servers also. I tried df -kp, but no use.&lt;BR /&gt;&lt;BR /&gt;   Is there anyway that we can get the one line output of every FS in bdf or any other command.&lt;BR /&gt;   &lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 07 Sep 2009 15:01:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-one-line-output/m-p/4493063#M363907</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-09-07T15:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: bdf one line output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-one-line-output/m-p/4493064#M363908</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;This question arises frequently.&lt;BR /&gt;&lt;BR /&gt;You could use:&lt;BR /&gt;&lt;BR /&gt;# bdf | awk '{if (NF==1) {line=$0;getline;sub(" *"," ");print line$0} else {print}}'&lt;BR /&gt;&lt;BR /&gt;OR:&lt;BR /&gt;&lt;BR /&gt;You could avail yourself of a richly functional script by Bill Hassell which accomodates your requirement and much, much more.  Bill's most recent version (5.2) is attached at the end of this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1326767" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1326767&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Sep 2009 15:06:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-one-line-output/m-p/4493064#M363908</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-07T15:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: bdf one line output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-one-line-output/m-p/4493065#M363909</link>
      <description>Hi,&lt;BR /&gt;The best utility is bdfmesg created by Greate Bill H.&lt;BR /&gt;I am attaching the script download and enjoy..and thanks to Bill.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Mon, 07 Sep 2009 16:26:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-one-line-output/m-p/4493065#M363909</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-09-07T16:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: bdf one line output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-one-line-output/m-p/4493066#M363910</link>
      <description>Split lines from bdf are always a problem, but there is an easy scripting method to handle it. Basically, you read the first line then check the 2nd variable (lvol size). If it doesn't have a value, read the rest of the values, like this:&lt;BR /&gt; &lt;BR /&gt;bdf | while read FS TOT USED AVAIL PERCENT MNT&lt;BR /&gt;do&lt;BR /&gt;if [ $FS != "Filesystem" ]  # skip the header&lt;BR /&gt;then&lt;BR /&gt;if [ "$TOT" = "" ] # must be a split line&lt;BR /&gt;then&lt;BR /&gt;read TOT USED AVAIL PERCENT MNT&lt;BR /&gt;fi&lt;BR /&gt;# here's the output&lt;BR /&gt;echo  $FS $TOT $USED $AVAIL $PERCENT $MNT&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;Attached is the latest version of bdfmegs. I made a change to the divisor from 1024 down to 1000. This makes the output match bdf. For your script to monitor space, you may find options -qP90 vey useful to provide a list of filesystems greater than 90% full and without any header:&lt;BR /&gt; &lt;BR /&gt;bdfmegs -qP90&lt;BR /&gt; &lt;BR /&gt;bdfmegs can also look at specific volume groups (-V option) or ignore specific volume groups (-N option).</description>
      <pubDate>Mon, 07 Sep 2009 19:31:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-one-line-output/m-p/4493066#M363910</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-09-07T19:31:04Z</dc:date>
    </item>
  </channel>
</rss>

