<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ShellScript Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/shellscript/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/shellscript/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:29:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>ShellScript to monitor available disk space on AIX</title>
		<link>https://www.scmgalaxy.com/tutorials/shellscript-to-monitor-available-disk-space-on-aix/</link>
					<comments>https://www.scmgalaxy.com/tutorials/shellscript-to-monitor-available-disk-space-on-aix/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 04:49:49 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[ShellScript]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2209</guid>

					<description><![CDATA[<p>tpatil created the topic: ShellScript to monitor available disk space on AIX #!/bin/ksh # This script monitors available disk space. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shellscript-to-monitor-available-disk-space-on-aix/">ShellScript to monitor available disk space on AIX</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>tpatil created the topic: ShellScript to monitor available disk space on AIX</strong><br />
<code>#!/bin/ksh</p>
<p># This script monitors available disk space.<br />
# This script emails an alert when a locally mounted partition crosses a given threshold.<br />
# Set your threshold percentage (do not include the % sign), email address, and excluded mount points, then add to crontab<br />
# TPatil 03/12/10<br />
#<br />
# Add this to crontab -e for root<br />
# Diskspace monitoring script<br />
#0 6 * * 1-5 /bin/diskMonitor.sh >/dev/null 2>&1</p>
<p>THRESHOLD="90"<br />
EMAIL="abc@abc.com"<br />
# Excluded mount points *must* be pipe delimited<br />
# "/proc|/export/home|Mounted" should always be included<br />
EXCLUDE="/proc|/export/home|Mounted"</p>
<p>df -k | awk '{print $7"\t"$4}' |egrep -v "(${EXCLUDE})" | while read LINE; do<br />
 PERC=`echo $LINE |awk '{print $2}' |cut -d"%" -f1`<br />
 if [ $PERC -gt $THRESHOLD ]; then<br />
   echo "${PERC}% ALERT" | /usr/bin/mail -s "Disk Space Alert: ${LINE} used on `hostname`" $EMAIL<br />
 fi<br />
done</code></p>
<p><strong>scmjobs replied the topic: Re: ShellScript to monitor available disk space on AIX</strong><br />
thanks</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/shellscript-to-monitor-available-disk-space-on-aix/">ShellScript to monitor available disk space on AIX</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/shellscript-to-monitor-available-disk-space-on-aix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
