<?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 space used /free .. gigs.. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663472#M48935</link>
    <description>Here is harry's script modified so that it gives you the output in GB to 2 decimal precision.</description>
    <pubDate>Wed, 13 Feb 2002 17:04:38 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2002-02-13T17:04:38Z</dc:date>
    <item>
      <title>total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663458#M48921</link>
      <description>Hey everyone &lt;BR /&gt;Is there a command that will give me the total disk space used and free in gigs?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Richard</description>
      <pubDate>Tue, 12 Feb 2002 19:25:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663458#M48921</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-02-12T19:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663459#M48922</link>
      <description>There's nothing native to HP-UX.&lt;BR /&gt;&lt;BR /&gt;Here's a little awk script that will total up the columns of bdf output for you:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bdf -l | awk '{ if ( $1 &amp;gt; 0 )&lt;BR /&gt;   { total+=$1;totused+=$2;totfree+=$3 }&lt;BR /&gt;   else  &lt;BR /&gt;   { total+=$2;totused+=$3;totfree+=$4 }&lt;BR /&gt;   }&lt;BR /&gt;   END  {OFMT="%.2f";print "Total Space Used =",totused/1048576,"GB.  Total Space Allocated =",total/1048576,"GB.  Total Space Free=",totfree/1048576,"GB."}'</description>
      <pubDate>Tue, 12 Feb 2002 19:35:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663459#M48922</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-02-12T19:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663460#M48923</link>
      <description>not heard of anyhting for that so far...anxious to know from others..&lt;BR /&gt;I will do bdf and do the calculations to get the Gigs&lt;BR /&gt;&lt;BR /&gt;James&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Feb 2002 19:39:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663460#M48923</guid>
      <dc:creator>James George_1</dc:creator>
      <dc:date>2002-02-12T19:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663461#M48924</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;Not sure about a HP-UX command which directly reports disk space in Gbytes (most of the time listing in Kbytes or Mbytes). However, you can do simple calculations on the outputs of following commands:&lt;BR /&gt;&lt;BR /&gt;1) bdf ( lists file system usage in Kbytes )&lt;BR /&gt;2) du -k ( directory usage in Kbytes )&lt;BR /&gt;3) pvdisplay ( PV usage; multiply PE size with total PE ; in Mbytes)&lt;BR /&gt;4) vgdisplay ( VG usage; multiply PE size with total PE; in Mbytes)&lt;BR /&gt;5) lvdisplay ( lv size in Mbytes)&lt;BR /&gt;6) SAM ( displays all disk information)&lt;BR /&gt;7) STM ( online diag )&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Tue, 12 Feb 2002 20:05:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663461#M48924</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-02-12T20:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663462#M48925</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;you can look at the script posted by Andreas Voss in the link below,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfb046d96588ad4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfb046d96588ad4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Feb 2002 20:08:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663462#M48925</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-02-12T20:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663463#M48926</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;bdf|grep -v Filesystem|tr -s "  " " "|cut -d" " -f 1-4|sort|&lt;BR /&gt;awk 'BEGIN {&lt;BR /&gt;            prev="";&lt;BR /&gt;            totals[0]=0;&lt;BR /&gt;            totals[1]=0;&lt;BR /&gt;            totals[2]=0;&lt;BR /&gt;            gtotals[0]=0;&lt;BR /&gt;            gtotals[1]=0;&lt;BR /&gt;            gtotals[2]=0;&lt;BR /&gt;            printf("%4s %14s %14s %14s\n","VG","Size","In use","Available");&lt;BR /&gt;           }&lt;BR /&gt;           {split($1,curr,"/");&lt;BR /&gt;            if (prev!="" &amp;amp;&amp;amp; prev!=curr[3])&lt;BR /&gt;               {printf("%4s %14d %14d %14d\n",prev,totals[0],totals[1],totals[2]&lt;BR /&gt;);&lt;BR /&gt;                gtotals[0]+=totals[0];&lt;BR /&gt;                gtotals[1]+=totals[1];&lt;BR /&gt;                gtotals[2]+=totals[2];&lt;BR /&gt;                totals[0]=0;&lt;BR /&gt;                totals[1]=0;&lt;BR /&gt;                totals[2]=0;&lt;BR /&gt;               }&lt;BR /&gt;            prev=curr[3];&lt;BR /&gt;            totals[0]+=$2;&lt;BR /&gt;            totals[1]+=$3;&lt;BR /&gt;            totals[2]+=$4;&lt;BR /&gt;           }&lt;BR /&gt;     END   {&lt;BR /&gt;            gtotals[0]+=totals[0];&lt;BR /&gt;            gtotals[1]+=totals[1];&lt;BR /&gt;            gtotals[2]+=totals[2];&lt;BR /&gt;            printf("%4s %14d %14d %14d\n",prev,totals[0],totals[1],totals[2]);&lt;BR /&gt;            printf("%4s %14s %14s %14s\n","----","--------------","-------------&lt;BR /&gt;-","--------------");&lt;BR /&gt;            printf("%4s %14d %14d %14d\n","Totl",gtotals[0],gtotals[1],gtotals[2&lt;BR /&gt;]);&lt;BR /&gt;           }' &lt;BR /&gt;&lt;BR /&gt;to modify for gb's just add the division of 1gb to the output.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 12 Feb 2002 21:26:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663463#M48926</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-12T21:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663464#M48927</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;I sort of got lost trying to read Harry's script, so I now feel like a little bit of comedy.... get a calculator!&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;Michael</description>
      <pubDate>Tue, 12 Feb 2002 21:45:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663464#M48927</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-02-12T21:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663465#M48928</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;You haven't had enough to drink yet :-)) I'll help you out, but I usually don't drink beer, so I'll bring some Wild Turkey : - )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 12 Feb 2002 21:54:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663465#M48928</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-12T21:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663466#M48929</link>
      <description>Bit early for me Harry.... It's only 9AM... I at least wait until the sun is around the yard arm! (Midday)&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;hiccup&lt;BR /&gt;-Michael</description>
      <pubDate>Tue, 12 Feb 2002 22:03:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663466#M48929</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-02-12T22:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663467#M48930</link>
      <description>I would like to give proper gredit, but I have forgotten where I stole this script from.  It is called bdfmegs and outputs (obviously) in megabytes.  To generate output in GB simply change '1024" to '1048576'.</description>
      <pubDate>Tue, 12 Feb 2002 22:22:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663467#M48930</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2002-02-12T22:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663468#M48931</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Linux knows "df -h" -h for HUMAN.&lt;BR /&gt;&lt;BR /&gt;Calculates to K, M, G according to size of filesystem.&lt;BR /&gt;&lt;BR /&gt;May be you can get the source compiled to HPUX&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 13 Feb 2002 08:30:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663468#M48931</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-02-13T08:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663469#M48932</link>
      <description>Hey Harry .. lets see if you are still reading this post .. but I get an error when I try to run your script.&lt;BR /&gt;&lt;BR /&gt; syntax error The source line is 14.&lt;BR /&gt; The error context is&lt;BR /&gt;                {printf("%4s %14d %14d %14d\n",prev,totals[0],totals[1],totals[2&lt;BR /&gt;]  &amp;gt;&amp;gt;&amp;gt; &lt;BR /&gt; &amp;lt;&amp;lt;&amp;lt; &lt;BR /&gt; awk: The statement cannot be correctly parsed.&lt;BR /&gt; The source line is 14.&lt;BR /&gt; awk: The string ---------- cannot contain a newline character.&lt;BR /&gt; The source line is 32.&lt;BR /&gt;        awk: There is a missing ) character.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Wed, 13 Feb 2002 16:50:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663469#M48932</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-02-13T16:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663470#M48933</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;attached is the corrected script that harry gave.  The problem(s) is when you just cut and paste from the window, there are some lines that wrapped to a new line that shouldn't have.  I have fixed it on my machine for you.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Feb 2002 16:55:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663470#M48933</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-02-13T16:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663471#M48934</link>
      <description>Crazy thing didn't attach.  Let's try this again.</description>
      <pubDate>Wed, 13 Feb 2002 16:56:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663471#M48934</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-02-13T16:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663472#M48935</link>
      <description>Here is harry's script modified so that it gives you the output in GB to 2 decimal precision.</description>
      <pubDate>Wed, 13 Feb 2002 17:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663472#M48935</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-02-13T17:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663473#M48936</link>
      <description>OK.  Sorry for all these attachments.  Ignore the last one.  It wasn't completely set up to convert to GB.&lt;BR /&gt;&lt;BR /&gt;This one should be.</description>
      <pubDate>Wed, 13 Feb 2002 17:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663473#M48936</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-02-13T17:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663474#M48937</link>
      <description>Hey Patrick you think too much coffe this morning?&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Wed, 13 Feb 2002 17:16:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663474#M48937</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-02-13T17:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: total disk space used /free .. gigs..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663475#M48938</link>
      <description>Thanks Patrick! Should we also add in VG info, as in free extents, used, and allocated?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 13 Feb 2002 17:18:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/total-disk-space-used-free-gigs/m-p/2663475#M48938</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-13T17:18:27Z</dc:date>
    </item>
  </channel>
</rss>

