<?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 Re: total disk usage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040411#M432800</link>
    <description>arrgh, you stated used space.&lt;BR /&gt;&lt;BR /&gt;bdf | grep -v File | awk '{x+=$3}END{printf "%d\n",x}'</description>
    <pubDate>Mon, 16 Apr 2007 14:53:32 GMT</pubDate>
    <dc:creator>Court Campbell</dc:creator>
    <dc:date>2007-04-16T14:53:32Z</dc:date>
    <item>
      <title>total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040402#M432791</link>
      <description>How would one total the kbytes used from the bdf command?</description>
      <pubDate>Mon, 16 Apr 2007 14:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040402#M432791</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2007-04-16T14:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040403#M432792</link>
      <description>total=0&lt;BR /&gt;bdf | grep -v ^Filesystem | while read line&lt;BR /&gt;do&lt;BR /&gt;used=`echo $line | awk {'print $2'}`&lt;BR /&gt;(( total=$total+$used ))&lt;BR /&gt;done&lt;BR /&gt;echo $total " kilobytes of used disk space"&lt;BR /&gt;&lt;BR /&gt;hope this is what you are looking for.&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Apr 2007 14:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040403#M432792</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2007-04-16T14:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040404#M432793</link>
      <description>you would add the used kb but bdf is not a good way to see the disk usage because nfs mount are not on your system and they should not count&lt;BR /&gt;&lt;BR /&gt;lets say you wanted to find out how much disk usage is on vg00, you would do vgdisplay vg00 and you would take Alloc PE number * PE Size (Mbytes) that would give you how much disk is being used in MB</description>
      <pubDate>Mon, 16 Apr 2007 14:40:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040404#M432793</guid>
      <dc:creator>Aussan</dc:creator>
      <dc:date>2007-04-16T14:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040405#M432794</link>
      <description># bdf | awk '{tot+=$2}END{printf("total kbytes %d\n",tot)}'</description>
      <pubDate>Mon, 16 Apr 2007 14:43:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040405#M432794</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-04-16T14:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040406#M432795</link>
      <description>bdf | grep -v File | awk '{x=$2;x+=x}END{printf "%d\n",x}'</description>
      <pubDate>Mon, 16 Apr 2007 14:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040406#M432795</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-16T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040407#M432796</link>
      <description>scratch that it should be:&lt;BR /&gt;&lt;BR /&gt; bdf | grep -v File | awk '{x+=$2}END{printf "%d\n",x}'</description>
      <pubDate>Mon, 16 Apr 2007 14:48:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040407#M432796</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-16T14:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040408#M432797</link>
      <description>First, look around on the Forums for one of Bill's scripts called bdfmegs because it's gonna fix a problem that you ain't thought of yet.&lt;BR /&gt;&lt;BR /&gt;Then:&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;build_A1()&lt;BR /&gt;{&lt;BR /&gt;  echo "/^Filesystem/ { next}"&lt;BR /&gt;  echo "{"&lt;BR /&gt;  echo "  v1 += (\$2 + 0); v2 += (\$3 + 0); v3 += (\$4 + 0)"&lt;BR /&gt;  echo "}"&lt;BR /&gt;  echo "END {"&lt;BR /&gt;  echo " print v1,v2,v2"&lt;BR /&gt;  echo "}"&lt;BR /&gt;  return 0&lt;BR /&gt;} # build_A1&lt;BR /&gt;&lt;BR /&gt;A1=$(build_A1)&lt;BR /&gt;bdfmegs | awk "${A1}"&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;This will actually sum all three of the values but you should easily be able to adapt it to your exact needs.</description>
      <pubDate>Mon, 16 Apr 2007 14:49:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040408#M432797</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-04-16T14:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040409#M432798</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# bdf|awk '{if (NR&amp;gt;1) {USED+=$3}};END{print USED}'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 16 Apr 2007 14:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040409#M432798</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-04-16T14:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040410#M432799</link>
      <description>I am running into limitations in awk, it can not calculate that high of a number. Anyways to do it in perl or bc?</description>
      <pubDate>Mon, 16 Apr 2007 14:53:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040410#M432799</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2007-04-16T14:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040411#M432800</link>
      <description>arrgh, you stated used space.&lt;BR /&gt;&lt;BR /&gt;bdf | grep -v File | awk '{x+=$3}END{printf "%d\n",x}'</description>
      <pubDate>Mon, 16 Apr 2007 14:53:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040411#M432800</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-04-16T14:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040412#M432801</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;OK, you would like Perl (I do too!):&lt;BR /&gt;&lt;BR /&gt;# bdf|perl -nle 'if ($.&amp;gt;1) {@f=split;$used+=$f[2]};END{print $used}'&lt;BR /&gt;&lt;BR /&gt;...Note that Perl numbers things 0-relative unlike 'awk' which counts its split fields as 1-relative.  This too, skips the header line of the 'bdf'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 16 Apr 2007 14:59:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040412#M432801</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-04-16T14:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040413#M432802</link>
      <description>Dummy!&lt;BR /&gt;&lt;BR /&gt;That's why I suggested bdfmegs and not only will it solve the problem you've now discovered; it will also solve the one that you haven't discovered.&lt;BR /&gt;&lt;BR /&gt;Anyway, here's a copy of Bill's bdfmegs script.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Apr 2007 15:07:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040413#M432802</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-04-16T15:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040414#M432803</link>
      <description>What limitations? Could you post the output from the one-liners.</description>
      <pubDate>Mon, 16 Apr 2007 15:19:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040414#M432803</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-04-16T15:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: total disk usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040415#M432804</link>
      <description>.</description>
      <pubDate>Mon, 16 Apr 2007 15:26:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-usage/m-p/5040415#M432804</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2007-04-16T15:26:47Z</dc:date>
    </item>
  </channel>
</rss>

