<?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: Sar Utility in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537815#M17366</link>
    <description>Many thanks to Alex for pointing me to the right direction.  Now, I have the systats installed.  I need help to write a quick batch job to do sar -B or iostats at every 15 mins.  Would someone please help!!&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Ian</description>
    <pubDate>Thu, 05 May 2005 10:00:36 GMT</pubDate>
    <dc:creator>Ian Derringer</dc:creator>
    <dc:date>2005-05-05T10:00:36Z</dc:date>
    <item>
      <title>Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537809#M17360</link>
      <description>Hi,&lt;BR /&gt;I am running RHAS 3.0 64-bits and my server is missing 'sar' utility.  Would someone please direct me to where I can download this rpm file for my server?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Wed, 04 May 2005 12:47:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537809#M17360</guid>
      <dc:creator>Ian Derringer</dc:creator>
      <dc:date>2005-05-04T12:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537810#M17361</link>
      <description>You need "sysstat" rpm. I believe this one will do it:&lt;BR /&gt;&lt;BR /&gt;sysstat-5.0.5-5.rhel3.src.rpm&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://linuxsoft.cern.ch/repository/ia64updates/sysstat-5.0.5-5.rhel3.ia64.html" target="_blank"&gt;http://linuxsoft.cern.ch/repository/ia64updates/sysstat-5.0.5-5.rhel3.ia64.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But you can search for another hardware archeture, if it's not good enough.&lt;BR /&gt;&lt;BR /&gt;It's src rpm, so you'll have to build rpom from it, this is how you do it:&lt;BR /&gt;&lt;BR /&gt;rpmbuild --rebuild &lt;SRX rpm="" file=""&gt;&lt;BR /&gt;and then, install it:&lt;BR /&gt;rpm -Uvh &lt;RPM file=""&gt;&lt;BR /&gt;&lt;/RPM&gt;&lt;/SRX&gt;</description>
      <pubDate>Wed, 04 May 2005 15:40:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537810#M17361</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-05-04T15:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537811#M17362</link>
      <description>&lt;BR /&gt;this utility is part of sysstat rpm. it should be available in first or second cd of your RH cd set.</description>
      <pubDate>Thu, 05 May 2005 00:52:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537811#M17362</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-05-05T00:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537812#M17363</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;You need the foll rpm to use sar&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://fr2.rpmfind.net/linux/redhat/updates/9/en/os/i386/sysstat-4.0.7-4.rhl9.1.i386.rpm" target="_blank"&gt;ftp://fr2.rpmfind.net/linux/redhat/updates/9/en/os/i386/sysstat-4.0.7-4.rhl9.1.i386.rpm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2005 06:45:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537812#M17363</guid>
      <dc:creator>Vipulinux</dc:creator>
      <dc:date>2005-05-05T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537813#M17364</link>
      <description>Vipul, &lt;BR /&gt;why to install old rpm for rh9.1?&lt;BR /&gt;&lt;BR /&gt;There is a new version for redhat enterprise .....</description>
      <pubDate>Thu, 05 May 2005 06:48:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537813#M17364</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-05-05T06:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537814#M17365</link>
      <description>Also, I am running RHAS 3.0 64-bits version as well.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2005 08:42:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537814#M17365</guid>
      <dc:creator>Ian Derringer</dc:creator>
      <dc:date>2005-05-05T08:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537815#M17366</link>
      <description>Many thanks to Alex for pointing me to the right direction.  Now, I have the systats installed.  I need help to write a quick batch job to do sar -B or iostats at every 15 mins.  Would someone please help!!&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Thu, 05 May 2005 10:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537815#M17366</guid>
      <dc:creator>Ian Derringer</dc:creator>
      <dc:date>2005-05-05T10:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537816#M17367</link>
      <description>Just put this command in crontab (man crontab) and redirect the output to some file:&lt;BR /&gt;&lt;BR /&gt;sar bla bla bla &amp;gt;&amp;gt; /tmp/sar.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That's it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(Btw, you can also assign some points to the ppl that helped you!)</description>
      <pubDate>Thu, 05 May 2005 10:58:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537816#M17367</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-05-05T10:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537817#M17368</link>
      <description>Great!  Does it keep multiple versions out there or something I have to do to give it a new name every time it runs??  If yes, what would be the easiest way to do that?&lt;BR /&gt;&lt;BR /&gt;Thanks so much!!&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Thu, 05 May 2005 14:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537817#M17368</guid>
      <dc:creator>Ian Derringer</dc:creator>
      <dc:date>2005-05-05T14:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537818#M17369</link>
      <description>if you use "&amp;gt;&amp;gt;", it appends to the file. It does not remove it, so you'll see output one after another. To make it more clear you can do this in the script:&lt;BR /&gt;&lt;BR /&gt;output_file="/tmp/blalba.log"&lt;BR /&gt;now_date=`date`&lt;BR /&gt;&lt;BR /&gt;echo "============ $now_date ===========" &amp;gt;&amp;gt; $output_file&lt;BR /&gt;sar bla bla bla &amp;gt;&amp;gt; $output_file&lt;BR /&gt;echo "==================================" &amp;gt;&amp;gt; $output_file&lt;BR /&gt;&lt;BR /&gt;So, you'll see in the file somthing like this:&lt;BR /&gt;&lt;BR /&gt;============= 20/5/2005 14:35:23 ===========&lt;BR /&gt;&lt;SAR output=""&gt; bla bla bla&lt;BR /&gt;bla bla bla&lt;BR /&gt;============================================&lt;BR /&gt;&lt;BR /&gt;============= 20/5/2005 14:50:23 ===========&lt;BR /&gt;&lt;SAR output=""&gt; bla bla bla&lt;BR /&gt;bla bla bla&lt;BR /&gt;============================================&lt;BR /&gt;&lt;BR /&gt;and so on .... &lt;BR /&gt;&lt;BR /&gt;&lt;/SAR&gt;&lt;/SAR&gt;</description>
      <pubDate>Thu, 05 May 2005 14:52:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537818#M17369</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-05-05T14:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537819#M17370</link>
      <description>Alex,&lt;BR /&gt;I am getting an EOF error after I tried running the script.  Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ian</description>
      <pubDate>Thu, 05 May 2005 16:24:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537819#M17370</guid>
      <dc:creator>Ian Derringer</dc:creator>
      <dc:date>2005-05-05T16:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537820#M17371</link>
      <description>Can you attach the script you are trying to run? Probably some error in syntax.</description>
      <pubDate>Thu, 05 May 2005 16:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537820#M17371</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-05-05T16:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537821#M17372</link>
      <description>Here it is:&lt;BR /&gt;&lt;BR /&gt;./perfmon_stats: line 13: unexpected EOF while looking for matching `"'&lt;BR /&gt;./perfmon_stats: line 17: syntax error: unexpected end of file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Script:&lt;BR /&gt;# !/bin/bash&lt;BR /&gt;. $HOME/.bash_profile&lt;BR /&gt;#############################################&lt;BR /&gt;clear&lt;BR /&gt;output_file="/tmp/perfmon.log&lt;BR /&gt;now_date=`date`&lt;BR /&gt;echo " "&lt;BR /&gt;echo "--------------------------- $now_date -------------------------" &amp;gt;&amp;gt; $output_file&lt;BR /&gt;sar -b &amp;gt;&amp;gt; $output_file&lt;BR /&gt;EOF&lt;BR /&gt; exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ian&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2005 18:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537821#M17372</guid>
      <dc:creator>Ian Derringer</dc:creator>
      <dc:date>2005-05-05T18:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537822#M17373</link>
      <description>Hi,&lt;BR /&gt;Don't worry...I got it to work.  Hopefully, I can setup the cron tab to run every 15 minutes or so.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ian</description>
      <pubDate>Thu, 05 May 2005 23:58:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537822#M17373</guid>
      <dc:creator>Ian Derringer</dc:creator>
      <dc:date>2005-05-05T23:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537823#M17374</link>
      <description>Put a line like this in your crontab:&lt;BR /&gt;0 7-16 * * 1-5 /usr/lib/sa/sa1 300 12 &amp;amp;   &lt;BR /&gt;&lt;BR /&gt;This will collect all sar-data into daily files in /var/log/sa-directory. Then you can later get some historical data using &lt;BR /&gt;sar [ options... ] -f  /var/log/sa/saxx.</description>
      <pubDate>Fri, 06 May 2005 03:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537823#M17374</guid>
      <dc:creator>Raimo Lesonen_1</dc:creator>
      <dc:date>2005-05-06T03:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537824#M17375</link>
      <description>&lt;BR /&gt;the problem is variable declaration of  $output_file, double quote is not closed&lt;BR /&gt;&lt;BR /&gt;to make it run every 15 mins all through the year, following is the crontab entry&lt;BR /&gt;&lt;BR /&gt;*/15 * * * * performance_script&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 May 2005 03:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537824#M17375</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-05-06T03:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537825#M17376</link>
      <description>This is what my crontab looks like:&lt;BR /&gt;*,5 * * * * /home/admin/sysmon/perfmon_stat root 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;*,5 * * * * /home/admin/sysmon/&lt;BR /&gt;perfmon_stat_2 root 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;However, it's executing every 1 minute - What&lt;BR /&gt;s with that??  Help!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ian&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 May 2005 11:52:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537825#M17376</guid>
      <dc:creator>Ian Derringer</dc:creator>
      <dc:date>2005-05-06T11:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537826#M17377</link>
      <description>You have a mistake there, instead of "*,5" put as it was said "*/15" and it will work.</description>
      <pubDate>Fri, 06 May 2005 16:02:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537826#M17377</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-05-06T16:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Utility</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537827#M17378</link>
      <description>Got it!!&lt;BR /&gt;&lt;BR /&gt;Thanks everyone!&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Fri, 06 May 2005 23:27:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sar-utility/m-p/3537827#M17378</guid>
      <dc:creator>Ian Derringer</dc:creator>
      <dc:date>2005-05-06T23:27:29Z</dc:date>
    </item>
  </channel>
</rss>

