<?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: Single command to retrieve bdf in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601846#M34409</link>
    <description>bdf | egrep "9[0-9]%|100%"</description>
    <pubDate>Thu, 25 Oct 2001 23:58:07 GMT</pubDate>
    <dc:creator>Carlos Fernandez Riera</dc:creator>
    <dc:date>2001-10-25T23:58:07Z</dc:date>
    <item>
      <title>Single command to retrieve bdf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601845#M34408</link>
      <description>Anyone can tell me how to retrieve bdf which having more than 90% usage. One single command to get the above wanted file system. bdf only list all the file system, but i only need to show 90% or above file system.</description>
      <pubDate>Thu, 25 Oct 2001 23:48:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601845#M34408</guid>
      <dc:creator>Kenn Chen</dc:creator>
      <dc:date>2001-10-25T23:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Single command to retrieve bdf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601846#M34409</link>
      <description>bdf | egrep "9[0-9]%|100%"</description>
      <pubDate>Thu, 25 Oct 2001 23:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601846#M34409</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-10-25T23:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Single command to retrieve bdf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601847#M34410</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would be inclinded to write a script&lt;BR /&gt;to do this. The attached should do the&lt;BR /&gt;job. It will e-mail the results.&lt;BR /&gt;&lt;BR /&gt;df -kP | grep "%" | grep -v cdrom |  grep 100% | cut -c49-80 &amp;gt; /tmp/chkfsu.txt&lt;BR /&gt;grep 100% /tmp/chkfsu.txt&lt;BR /&gt;if [ $? = 0 ];  then&lt;BR /&gt;mailx -s "`cat /tmp/chkfsu.txt` in `hostname`"  sysadmin,dbadmin &amp;lt; /dev/null&lt;BR /&gt;else &lt;BR /&gt;echo Nothing is 100%&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;df -kP | grep "%" | grep -v cdrom |  grep 99% | cut -c49-80 &amp;gt; /tmp/chkfsu.txt&lt;BR /&gt;grep 99% /tmp/chkfsu.txt&lt;BR /&gt;if [ $? = 0 ];  then&lt;BR /&gt;mailx -s "`cat /tmp/chkfsu.txt` in `hostname`"  sysadmin,dbadmin &amp;lt; /dev/null&lt;BR /&gt;else &lt;BR /&gt;echo Nothing is 99%&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;This should help.</description>
      <pubDate>Fri, 26 Oct 2001 00:15:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601847#M34410</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-10-26T00:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Single command to retrieve bdf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601848#M34411</link>
      <description>Hi Idris,&lt;BR /&gt;&lt;BR /&gt;The following caters for those filesystems that span two lines, if necessary:&lt;BR /&gt;&lt;BR /&gt;bdf | sed 's/^ */ /' | awk 'NF==1{f=$0;getline;$0=f$0}{print}' | grep -e "9[0-9]%" -e "100%"&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Fri, 26 Oct 2001 06:29:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601848#M34411</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-26T06:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Single command to retrieve bdf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601849#M34412</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;try this one&lt;BR /&gt;bdf |while read diski&lt;BR /&gt;do&lt;BR /&gt;        dper=`echo $diski | awk -F" " '{printf "%d\n", $5}'`&lt;BR /&gt;        if [ $dper -gt 80 ]&lt;BR /&gt;        then&lt;BR /&gt;                dmount="`echo $diski |awk '{printf "%s\n", $6}'`"&lt;BR /&gt;                echo $dmount&lt;BR /&gt;        fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Joe.</description>
      <pubDate>Fri, 26 Oct 2001 13:52:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601849#M34412</guid>
      <dc:creator>Joseph Chakkery</dc:creator>
      <dc:date>2001-10-26T13:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Single command to retrieve bdf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601850#M34413</link>
      <description>Hi,&lt;BR /&gt;I wrote this to monitor a specific mount point for &amp;gt;= 93% full condition, but you can adapt it to examine the results of a bdf, and even assign different values for each mount point in the control file:&lt;BR /&gt;#!/bin/csh&lt;BR /&gt;# Test /ora4 for % full of archlog files&lt;BR /&gt;# archlog_pct.dat contains % range considered to be full&lt;BR /&gt;# If current % falls in range, launch ARCHLOG_TAR, unless it&lt;BR /&gt;# is already running&lt;BR /&gt;# Run frequency: daily, hourly&lt;BR /&gt;&lt;BR /&gt;cd /oracle/ora_scripts/7.3.4&lt;BR /&gt;df -k /ora4 &amp;gt;archlog_curr_df.dat&lt;BR /&gt;grep '% ' archlog_curr_df.dat &amp;gt;archlog_curr_pct.dat&lt;BR /&gt;ps -ef &amp;gt;archlog_curr_ps&lt;BR /&gt;&lt;BR /&gt;foreach k ("`fgrep -farchlog_pct.dat archlog_curr_pct.dat`")&lt;BR /&gt;   if (`grep -c 'ARCHLOG_MOVE' archlog_curr_ps`) = 0 then&lt;BR /&gt;      /oracle/ora_scripts/7.3.4/ARCHLOG_MOVE&lt;BR /&gt;   endif&lt;BR /&gt;end&lt;BR /&gt;#         &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Randy</description>
      <pubDate>Fri, 26 Oct 2001 16:00:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/single-command-to-retrieve-bdf/m-p/2601850#M34413</guid>
      <dc:creator>Randy Tarrier</dc:creator>
      <dc:date>2001-10-26T16:00:59Z</dc:date>
    </item>
  </channel>
</rss>

