<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474532#M212330</link>
    <description>Attached is the Script I have been using for years. &lt;BR /&gt;I emails me when 80% of the space has been used.&lt;BR /&gt;&lt;BR /&gt;Marty</description>
    <pubDate>Tue, 01 Feb 2005 16:12:15 GMT</pubDate>
    <dc:creator>Marty Metras</dc:creator>
    <dc:date>2005-02-01T16:12:15Z</dc:date>
    <item>
      <title>Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474526#M212324</link>
      <description>Hi EB,&lt;BR /&gt;&lt;BR /&gt;GM,&lt;BR /&gt;I need a exact script which should alert me when a f/s is full.&lt;BR /&gt;&lt;BR /&gt;Urg. pls&lt;BR /&gt;&lt;BR /&gt;tar&lt;BR /&gt;avis</description>
      <pubDate>Mon, 31 Jan 2005 01:00:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474526#M212324</guid>
      <dc:creator>sivakumar_11</dc:creator>
      <dc:date>2005-01-31T01:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474527#M212325</link>
      <description>Hi,  &lt;BR /&gt;&lt;BR /&gt;This is the script which alert you when file system is upper then 90% or full&lt;BR /&gt;&lt;BR /&gt;bdf|grep -v File |awk '{ if ( $(NF-1) &amp;gt; 90 || $(NF-1) == "100%" ) print}'&lt;BR /&gt;&lt;BR /&gt;you can make a script file then make it in cronjob to check it frequently.&lt;BR /&gt;&lt;BR /&gt;HMT</description>
      <pubDate>Mon, 31 Jan 2005 01:59:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474527#M212325</guid>
      <dc:creator>Hoang Minh Tuan</dc:creator>
      <dc:date>2005-01-31T01:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474528#M212326</link>
      <description>Waiting UNTIL a filesystem is full is Foolish and Dangerous. You need to be PRO-Active before a filesystem fills up, unless you enjoy potentially lost and corrupt data.&lt;BR /&gt;&lt;BR /&gt;Change that script to alert when an FS reaches anywhere from 80%-94%, especially when an FS is SMALL. The larger the FS, then the more room to grow into, thus you might be able to increase the % to a larger number before alerting. There is NO magic bullet.&lt;BR /&gt;&lt;BR /&gt;Additionally you need to PLOT your FS usage and be prepared to add additional storage if necessary.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 31 Jan 2005 07:02:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474528#M212326</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-01-31T07:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474529#M212327</link>
      <description>You can use bdf and mailx command to do this. And as said by olympian have the upper limit of f/s in the range of 90-95%.&lt;BR /&gt;&lt;BR /&gt;Make the Execution of this script with cron schedular. &lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;# Alerter&lt;BR /&gt;for line in `bdf | awk '!/^Filesystem/ { print $5" "$6 }'`&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;per=$(echo $line | awk '{ print $1 }'&lt;BR /&gt;fs=$(echo $line | awk '{ print $1 }'&lt;BR /&gt;&lt;BR /&gt;per1=$(echo $per | cut -d'%' -f1)&lt;BR /&gt;&lt;BR /&gt;if [[ $per1 -gt 90 ]]&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;  echo "$fs is greater than 90%" | mailx -s "Alert" &lt;MAIL-ID&gt;&lt;BR /&gt;  &lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;/MAIL-ID&gt;</description>
      <pubDate>Mon, 31 Jan 2005 10:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474529#M212327</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-01-31T10:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474530#M212328</link>
      <description>Change &lt;BR /&gt;per=$(echo $line | awk '{ print $1 }'&lt;BR /&gt;fs=$(echo $line | awk '{ print $1 }'&lt;BR /&gt;&lt;BR /&gt;to &lt;BR /&gt;per=$(echo $line | awk '{ print $1 }'&lt;BR /&gt;fs=$(echo $line | awk '{ print $2 }'&lt;BR /&gt;&lt;BR /&gt;ok.</description>
      <pubDate>Mon, 31 Jan 2005 10:24:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474530#M212328</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-01-31T10:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474531#M212329</link>
      <description>I have two shell scripts. One returns free space percentage.&lt;BR /&gt;&lt;BR /&gt;free.sh 5 will return filesystem that have less the 5% free space. &lt;BR /&gt;or&lt;BR /&gt;free.sh 20 will return filesystem that have less than 20% free space&lt;BR /&gt;&lt;BR /&gt;The following snippet runs from cron,&lt;BR /&gt;you can easily modify to send page&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SPACEWARN=20&lt;BR /&gt;&lt;BR /&gt;for arg in $(free.sh ${SPACEWARN}|cut -f1 -d" ")&lt;BR /&gt;do&lt;BR /&gt;if&lt;BR /&gt;  [ -n ${arg} ]&lt;BR /&gt; then&lt;BR /&gt;  echo $(free.sh ${SPACEWARN}|grep ${arg}) |  mailx -s "$arg low on space" root&lt;BR /&gt;  fi&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2005 12:26:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474531#M212329</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2005-02-01T12:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474532#M212330</link>
      <description>Attached is the Script I have been using for years. &lt;BR /&gt;I emails me when 80% of the space has been used.&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 01 Feb 2005 16:12:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/3474532#M212330</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2005-02-01T16:12:15Z</dc:date>
    </item>
  </channel>
</rss>

