<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Bash Shell Find out Linux / FreeBSD / UNIX system load average</title> <atom:link href="http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Yang Yang</title><link>http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html#comment-148109</link> <dc:creator>Yang Yang</dc:creator> <pubDate>Tue, 14 Apr 2009 04:45:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html#comment-148109</guid> <description>Anybody care to explain what these load average figures mean? Is there a unit or is there anything scalely comparable to them? For example, I have:
21:39:33 up 10:45,  5 users,  load average: 9.86, 9.68, 10.64
What do 9.86, 9.68 and 10.64 mean here?</description> <content:encoded><![CDATA[<p>Anybody care to explain what these load average figures mean? Is there a unit or is there anything scalely comparable to them? For example, I have:</p><p> 21:39:33 up 10:45,  5 users,  load average: 9.86, 9.68, 10.64</p><p>What do 9.86, 9.68 and 10.64 mean here?</p> ]]></content:encoded> </item> <item><title>By: Chandra</title><link>http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html#comment-146397</link> <dc:creator>Chandra</dc:creator> <pubDate>Tue, 23 Dec 2008 10:30:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html#comment-146397</guid> <description>Actually This will work fine, cause there will be different output based on u r last reboot.
# Find the correct field to extract based on how long
# the system has been up, or since the last reboot.
if $(uptime &#124; grep day &#124; grep min &gt;/dev/null)
then
FIELD=11
elif $(uptime &#124; grep day &#124; grep hrs &gt;/dev/null)
then
FIELD=11
elif $(uptime &#124; grep day &gt;/dev/null)
then
FIELD=10
elif $(uptime &#124; grep min &gt;/dev/null)
then
FIELD=9
else
FIELD=8
fi</description> <content:encoded><![CDATA[<p>Actually This will work fine, cause there will be different output based on u r last reboot.</p><p># Find the correct field to extract based on how long<br
/> # the system has been up, or since the last reboot.<br
/> if $(uptime | grep day | grep min &gt;/dev/null)<br
/> then<br
/> FIELD=11<br
/> elif $(uptime | grep day | grep hrs &gt;/dev/null)<br
/> then<br
/> FIELD=11<br
/> elif $(uptime | grep day &gt;/dev/null)<br
/> then<br
/> FIELD=10<br
/> elif $(uptime | grep min &gt;/dev/null)<br
/> then<br
/> FIELD=9<br
/> else<br
/> FIELD=8<br
/> fi</p> ]]></content:encoded> </item> <item><title>By: Szy</title><link>http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html#comment-143768</link> <dc:creator>Szy</dc:creator> <pubDate>Tue, 13 May 2008 13:19:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html#comment-143768</guid> <description>Actually it DOES work.  I found that the &#039;s&#039; in &#039;averges&#039; should not be there.  Otherwise it works like a charm!</description> <content:encoded><![CDATA[<p>Actually it DOES work.  I found that the &#8216;s&#8217; in &#8216;averges&#8217; should not be there.  Otherwise it works like a charm!</p> ]]></content:encoded> </item> <item><title>By: Oo.et.oO</title><link>http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html#comment-141223</link> <dc:creator>Oo.et.oO</dc:creator> <pubDate>Thu, 27 Sep 2007 19:52:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html#comment-141223</guid> <description>stefan.  his example clearly shows that that just doesn&#039;t work all the time.  specifically when uptime is </description> <content:encoded><![CDATA[<p>stefan.  his example clearly shows that that just doesn&#8217;t work all the time.  specifically when uptime is</p> ]]></content:encoded> </item> <item><title>By: Stefan</title><link>http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html#comment-140937</link> <dc:creator>Stefan</dc:creator> <pubDate>Wed, 29 Aug 2007 14:18:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/shell-scripting-bash-find-out-linuxfreebsdunix-system-load-average.html#comment-140937</guid> <description>This information is wrong. The correct command would be:
&lt;code&gt;uptime &#124; awk &#039;{print $10 &quot; &quot; $11 &quot; &quot; $12}&#039;&lt;/code&gt;
The above does not work on Solaris 8.</description> <content:encoded><![CDATA[<p>This information is wrong. The correct command would be:</p><p><code>uptime | awk '{print $10 " " $11 " " $12}'</code></p><p>The above does not work on Solaris 8.</p> ]]></content:encoded> </item> </channel> </rss>
