<?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: script for summation in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416828#M682240</link>
    <description>Hi Ahsan,&lt;BR /&gt;&lt;BR /&gt;You will find in attachment a self made script to prepare a semicolumn separated field to import in Excel. This summarizes per vg all lv's and make an global total fron a server. This script can be running in cron ans send the result in a mail.&lt;BR /&gt;&lt;BR /&gt;I hope it will help&lt;BR /&gt;&lt;BR /&gt;Roland</description>
    <pubDate>Mon, 11 May 2009 08:46:53 GMT</pubDate>
    <dc:creator>Roland Piette</dc:creator>
    <dc:date>2009-05-11T08:46:53Z</dc:date>
    <item>
      <title>script for summation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416821#M682233</link>
      <description>I have redirected the bdf output in a file and I want to sum all the Assigned, Used and free space and show separately. how can I did this reading all lines of bdf output?</description>
      <pubDate>Sun, 10 May 2009 14:41:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416821#M682233</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2009-05-10T14:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: script for summation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416822#M682234</link>
      <description>Please check attached file, copy to your unix box make it executable and run.&lt;BR /&gt;&lt;BR /&gt;I recieved this updated bdf version from here some of formus.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 10 May 2009 15:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416822#M682234</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-05-10T15:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: script for summation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416823#M682235</link>
      <description>thnks for the reply but I need to sum the $2 $3 $4 position of bdf output and the scenario.</description>
      <pubDate>Sun, 10 May 2009 15:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416823#M682235</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2009-05-10T15:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: script for summation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416824#M682236</link>
      <description>&amp;gt;I need to sum the $2 $3 $4 position of bdf output&lt;BR /&gt;&lt;BR /&gt;Did you see the -s option to bdfmegs?</description>
      <pubDate>Sun, 10 May 2009 17:43:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416824#M682236</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-10T17:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: script for summation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416825#M682237</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As noted, Bill has done this and much, much more in his script provided to you.&lt;BR /&gt;&lt;BR /&gt;However, as a general example, here is one way to perform summation of fields in input data.  Using 'bdf' output:&lt;BR /&gt;&lt;BR /&gt;# bdf|awk '/^\/dev/ {KB+=$2;U+=$3;A+=$4};END{printf "%7.0f %7.0f %7.0f\n",KB/1024,U/1024,A/1024}'&lt;BR /&gt;&lt;BR /&gt;The /^\/dev/ says when matched, perform what exists in the {...} statement.  In this case, this skips the 'bdf' header from consideration.&lt;BR /&gt;&lt;BR /&gt;The summation is done into our own variables 'KB', 'U' and 'A' for the appropriate fields of each line read by 'awk'.  Fields are labeled '$1...$199' and a whole line is denoted by $0.&lt;BR /&gt;&lt;BR /&gt;The 'END{...}' block is executed once when all input has been exhausted.  Here, we simply print what we have summed, converting from values in KB to values in MB by dividing the sums by 1024.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 10 May 2009 18:45:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416825#M682237</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-10T18:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: script for summation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416826#M682238</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;just one on the top. bdf has a little problem with long devicenames. This could be a point, if you are using VXVM. So I would use awk the other way round:&lt;BR /&gt;&lt;BR /&gt;bdf | awk '/% \// {KB+=$(NF-4);U+=$(NF-3);A+=$(NF-2)};END{printf "%7.0f %7.0f %7.0f\n",KB/1024,U/1024,A/1024}'&lt;BR /&gt;&lt;BR /&gt;$(NF-4) is the fifth field from the end of line and so on. If you don't want to see NFS mounts in your output use "bdf -l".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 May 2009 05:48:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416826#M682238</guid>
      <dc:creator>Matthias Zander</dc:creator>
      <dc:date>2009-05-11T05:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: script for summation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416827#M682239</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please download this file (bdfmesg) from below link you will find this is a great tool written by Mr.Bill Hassell.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1326767" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1326767&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For you to query you have to use &lt;BR /&gt;#bdfmesg -s &lt;BR /&gt;&lt;BR /&gt;-s = summarize total, used and available&lt;BR /&gt;&lt;BR /&gt;Many Thanks to Mr.Bill Hassell to create a nice and useful tool. &lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Mon, 11 May 2009 05:59:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416827#M682239</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-05-11T05:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: script for summation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416828#M682240</link>
      <description>Hi Ahsan,&lt;BR /&gt;&lt;BR /&gt;You will find in attachment a self made script to prepare a semicolumn separated field to import in Excel. This summarizes per vg all lv's and make an global total fron a server. This script can be running in cron ans send the result in a mail.&lt;BR /&gt;&lt;BR /&gt;I hope it will help&lt;BR /&gt;&lt;BR /&gt;Roland</description>
      <pubDate>Mon, 11 May 2009 08:46:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416828#M682240</guid>
      <dc:creator>Roland Piette</dc:creator>
      <dc:date>2009-05-11T08:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: script for summation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416829#M682241</link>
      <description>Hi (agtain) Ahsan:&lt;BR /&gt;&lt;BR /&gt;Be advised that the copy (version 5.0) of Bill's script attached by the poster named "avizen9" (above) has a small bug.  Bill corrected this the following month.&lt;BR /&gt;&lt;BR /&gt;You should fetch and use his 5.1 version posted by Bill at the bottom of this link:&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...</description>
      <pubDate>Mon, 11 May 2009 10:34:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416829#M682241</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-11T10:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: script for summation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416830#M682242</link>
      <description>thanks ...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 May 2009 10:46:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-summation/m-p/4416830#M682242</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-05-11T10:46:28Z</dc:date>
    </item>
  </channel>
</rss>

