<?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: monitor file system size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-file-system-size/m-p/3874372#M279007</link>
    <description>Thanks for your help.  What i did was i added an 85 inside of the ($5,z,"85%") and it worked the way it was suppose to.  In other words i have one filesystem on my unix box that is actually over 85% and that line showed up in my e-mail not the last file sytem with only 9%.</description>
    <pubDate>Thu, 05 Oct 2006 06:37:18 GMT</pubDate>
    <dc:creator>keith demingware</dc:creator>
    <dc:date>2006-10-05T06:37:18Z</dc:date>
    <item>
      <title>monitor file system size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-file-system-size/m-p/3874370#M279005</link>
      <description>I run the following command out of cron, but what i get is the last file system that is listed when a bdf command is ran.  What i need is to be notified of the actual filesystem that is over the percentage of usage.  Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;P.S. If some one could explain to me the details on how this command works i would really appreciate it.  I have researched it but have not come up with anything in my script book.&lt;BR /&gt;&lt;BR /&gt;bdf | awk 'z[split($5,z,"%")-1]&amp;gt;85' | elm -s "Filesystem &amp;gt; 85%"</description>
      <pubDate>Wed, 04 Oct 2006 11:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-file-system-size/m-p/3874370#M279005</guid>
      <dc:creator>keith demingware</dc:creator>
      <dc:date>2006-10-04T11:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: monitor file system size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-file-system-size/m-p/3874371#M279006</link>
      <description>You will need to add an email address at the end of that command:&lt;BR /&gt;&lt;BR /&gt;bdf | awk 'z[split($5,z,"%")-1]&amp;gt;85' | elm -s "Filesystem &amp;gt; 85%" keith@company.com&lt;BR /&gt;&lt;BR /&gt;It will split "%" from 5th column of the bdf output (so only number leaft)and put the numbers in array "z". If numbers in "z" bigger than "85" then pass the bdf output of those related lines to "elm" -- an email tool and send the results to keith@company.com with subject "Filesystem &amp;gt; 85%".&lt;BR /&gt;&lt;BR /&gt;BTW, you want to monitor the file system on MPE or Unix machine?&lt;BR /&gt;&lt;BR /&gt;Yang</description>
      <pubDate>Wed, 04 Oct 2006 17:08:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-file-system-size/m-p/3874371#M279006</guid>
      <dc:creator>Yang Qin_1</dc:creator>
      <dc:date>2006-10-04T17:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: monitor file system size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-file-system-size/m-p/3874372#M279007</link>
      <description>Thanks for your help.  What i did was i added an 85 inside of the ($5,z,"85%") and it worked the way it was suppose to.  In other words i have one filesystem on my unix box that is actually over 85% and that line showed up in my e-mail not the last file sytem with only 9%.</description>
      <pubDate>Thu, 05 Oct 2006 06:37:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-file-system-size/m-p/3874372#M279007</guid>
      <dc:creator>keith demingware</dc:creator>
      <dc:date>2006-10-05T06:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: monitor file system size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-file-system-size/m-p/3874373#M279008</link>
      <description>If you run bdf | awk 'z[split($5,z,"85%")-1]&amp;gt;85' | elm -s "Filesystem &amp;gt; 85%" xxx@xxx.xxx&lt;BR /&gt;then you won't get what you want to get.&lt;BR /&gt;&lt;BR /&gt;There is bdf output:&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3     204800  124192   80184   61% /&lt;BR /&gt;/dev/vg00/lvol1     295024   37600  227920   14% /stand&lt;BR /&gt;/dev/vg00/lvol7    8704000 4289040 4380512   49% /var&lt;BR /&gt;&lt;BR /&gt;5th column is the one with 61%, 14%, 49%. The reason we want to split "%" from this column is that we want to check if 61 &amp;gt; 85 or not. Because if we compare 61% with 85% directly, it will not work. &lt;BR /&gt;&lt;BR /&gt;If you do split($5,z,"85%") means you want to split "85%" from 61%, it will not work.&lt;BR /&gt;&lt;BR /&gt;If you want to change the threshold from 85% to 70% you should run&lt;BR /&gt;&lt;BR /&gt;bdf | awk 'z[split($5,z,"%")-1]&amp;gt;70' | elm -s "Filesystem &amp;gt; 70%" xxx@xxx.xxx&lt;BR /&gt;&lt;BR /&gt;Yang</description>
      <pubDate>Thu, 05 Oct 2006 07:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-file-system-size/m-p/3874373#M279008</guid>
      <dc:creator>Yang Qin_1</dc:creator>
      <dc:date>2006-10-05T07:02:44Z</dc:date>
    </item>
  </channel>
</rss>

