<?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/5065602#M437747</link>
    <description>&lt;!--!*#--&gt;Hi Suresh,&lt;BR /&gt;this is an example:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# This script can be used to&lt;BR /&gt;# warn the users that&lt;BR /&gt;# the file system is getting full&lt;BR /&gt;#&lt;BR /&gt;# Script needs adjusted for your &lt;BR /&gt;# needs. Below is set to monitor &lt;BR /&gt;# all the file systems mounted and report to&lt;BR /&gt;# RECEIVER&lt;BR /&gt;#&lt;BR /&gt;# Usage: as a cron entry for best use.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RECEIVER=&lt;EMAILADDRESS&gt;&lt;BR /&gt;&lt;BR /&gt;for fs in `df -k|awk '{print $1}'|sed -n "3,14 p"`&lt;BR /&gt;do&lt;BR /&gt;    x=`df -kl | grep $fs | awk '{ print $5 }'`&lt;BR /&gt;    y=50%&lt;BR /&gt;&lt;BR /&gt;    if [ $x -gt $y ]&lt;BR /&gt;    then&lt;BR /&gt;      message="File System `df -k |grep $fs |awk '{print $6\",&lt;BR /&gt;\"$5}'` Full!!!"&lt;BR /&gt;      echo $subject&lt;BR /&gt;      echo $message | mailx -s "`hostname` - File System Full&lt;BR /&gt;Warning !!!"  $RECEIVER&lt;BR /&gt;    fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;/EMAILADDRESS&gt;</description>
    <pubDate>Thu, 30 Aug 2007 02:25:05 GMT</pubDate>
    <dc:creator>Arturo Galbiati</dc:creator>
    <dc:date>2007-08-30T02:25:05Z</dc:date>
    <item>
      <title>Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065600#M437745</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;We need file system alert script for hp unix server.&lt;BR /&gt;Pls guide me.&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;amp;Regards,&lt;BR /&gt;Suresh.</description>
      <pubDate>Tue, 28 Aug 2007 23:10:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065600#M437745</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2007-08-28T23:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065601#M437746</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;There are several good choices in this thread or the thread's it succeeded:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 29 Aug 2007 01:03:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065601#M437746</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-08-29T01:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065602#M437747</link>
      <description>&lt;!--!*#--&gt;Hi Suresh,&lt;BR /&gt;this is an example:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# This script can be used to&lt;BR /&gt;# warn the users that&lt;BR /&gt;# the file system is getting full&lt;BR /&gt;#&lt;BR /&gt;# Script needs adjusted for your &lt;BR /&gt;# needs. Below is set to monitor &lt;BR /&gt;# all the file systems mounted and report to&lt;BR /&gt;# RECEIVER&lt;BR /&gt;#&lt;BR /&gt;# Usage: as a cron entry for best use.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RECEIVER=&lt;EMAILADDRESS&gt;&lt;BR /&gt;&lt;BR /&gt;for fs in `df -k|awk '{print $1}'|sed -n "3,14 p"`&lt;BR /&gt;do&lt;BR /&gt;    x=`df -kl | grep $fs | awk '{ print $5 }'`&lt;BR /&gt;    y=50%&lt;BR /&gt;&lt;BR /&gt;    if [ $x -gt $y ]&lt;BR /&gt;    then&lt;BR /&gt;      message="File System `df -k |grep $fs |awk '{print $6\",&lt;BR /&gt;\"$5}'` Full!!!"&lt;BR /&gt;      echo $subject&lt;BR /&gt;      echo $message | mailx -s "`hostname` - File System Full&lt;BR /&gt;Warning !!!"  $RECEIVER&lt;BR /&gt;    fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;/EMAILADDRESS&gt;</description>
      <pubDate>Thu, 30 Aug 2007 02:25:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065602#M437747</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-08-30T02:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065603#M437748</link>
      <description>Hi Suresh,&lt;BR /&gt;this is a one line script:&lt;BR /&gt;&lt;BR /&gt;# Show disk with pct used &amp;gt;= PCT&lt;BR /&gt;bdf|awk -v PCT=30 'NR==1||(substr($5,1,index($5,"%")-1)+0&amp;gt;=PCT)'|mailx -s "disk over $PCT" emailaddress&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Aug 2007 02:28:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065603#M437748</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-08-30T02:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065604#M437749</link>
      <description>Hi Suresh,&lt;BR /&gt;the attached script by Bill Hassel is completly configurable.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Thu, 30 Aug 2007 02:31:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065604#M437749</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-08-30T02:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065605#M437750</link>
      <description>Hi Suresh,&lt;BR /&gt;please, assign point to replies.&lt;BR /&gt;Rgds,&lt;BR /&gt;Art</description>
      <pubDate>Fri, 31 Aug 2007 03:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065605#M437750</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-08-31T03:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065606#M437751</link>
      <description>Thanks</description>
      <pubDate>Fri, 31 Aug 2007 03:47:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/5065606#M437751</guid>
      <dc:creator>M.sureshkumar</dc:creator>
      <dc:date>2007-08-31T03:47:17Z</dc:date>
    </item>
  </channel>
</rss>

