<?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: Using sar. How to stop it in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437146#M5621</link>
    <description>Lane,&lt;BR /&gt;&lt;BR /&gt;Look at the man page for sa1 and you will see more about the ways to automate sar data.</description>
    <pubDate>Wed, 16 Aug 2000 18:17:51 GMT</pubDate>
    <dc:creator>Cheryl Griffin</dc:creator>
    <dc:date>2000-08-16T18:17:51Z</dc:date>
    <item>
      <title>Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437140#M5615</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am wanting to gather a little performance information on my HP-UX 11.0 system. Just want to get some general cpu performance info.&lt;BR /&gt;&lt;BR /&gt;I want to use  sar -u -f /tmp/sar.data&lt;BR /&gt;&lt;BR /&gt;Here's the question...I have not seen any mention of how to use the sar command to stop the system activity reporter?&lt;BR /&gt;&lt;BR /&gt;I only want to monitor for a few days and then stop it. I don't want it to run forever and waste disk space and machine resources etc.&lt;BR /&gt;&lt;BR /&gt;How do I handle this?&lt;BR /&gt;&lt;BR /&gt;Thanks for the help</description>
      <pubDate>Wed, 16 Aug 2000 17:58:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437140#M5615</guid>
      <dc:creator>Lane Frazier</dc:creator>
      <dc:date>2000-08-16T17:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437141#M5616</link>
      <description>Lane:&lt;BR /&gt;&lt;BR /&gt;Check the man pages, in particular the -s and -e options.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 16 Aug 2000 18:01:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437141#M5616</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-08-16T18:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437142#M5617</link>
      <description>-e option is for end monitoring</description>
      <pubDate>Wed, 16 Aug 2000 18:03:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437142#M5617</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-16T18:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437143#M5618</link>
      <description>Lane:&lt;BR /&gt;&lt;BR /&gt;Check the man pages, in particular the -s and -e options.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 16 Aug 2000 18:04:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437143#M5618</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-08-16T18:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437144#M5619</link>
      <description>if you just want some little information..&lt;BR /&gt;why not put in a cron&lt;BR /&gt;&lt;BR /&gt;0 * * * * sar 1 5 &amp;gt;/tmp/sar.log&lt;BR /&gt;&lt;BR /&gt;That should do what you want no?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 16 Aug 2000 18:05:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437144#M5619</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-08-16T18:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437145#M5620</link>
      <description>Can use the /usr/adm/sa/sa1 as a cron entry. Comment the cron entry to stop.&lt;BR /&gt;As an example from my cron:&lt;BR /&gt;0 7-18 * * 1-5 /usr/lbin/sa/sa1 1200 3&lt;BR /&gt;&lt;BR /&gt;Then I  have a script as follows that will convert the binary format to readable format and it is attached.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Aug 2000 18:16:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437145#M5620</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-16T18:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437146#M5621</link>
      <description>Lane,&lt;BR /&gt;&lt;BR /&gt;Look at the man page for sa1 and you will see more about the ways to automate sar data.</description>
      <pubDate>Wed, 16 Aug 2000 18:17:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437146#M5621</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2000-08-16T18:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437147#M5622</link>
      <description>Lane:&lt;BR /&gt;&lt;BR /&gt;If you set up sar as advised in the man pages, it will only maintain a maximum of 31 days worth (/var/adm/sa/sa01...31) so do not worry about collecting forever.  If however within the day you want to limit the hours to collect it for, the modify the cron entry accordingly.&lt;BR /&gt;&lt;BR /&gt;man sar&lt;BR /&gt;man sa1</description>
      <pubDate>Wed, 16 Aug 2000 18:19:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437147#M5622</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-08-16T18:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437148#M5623</link>
      <description>Can use the /usr/adm/sa/sa1 as a cron entry. Comment the cron entry to stop.&lt;BR /&gt;As an example from my cron:&lt;BR /&gt;0 7-18 * * 1-5 /usr/lbin/sa/sa1 1200 3&lt;BR /&gt;&lt;BR /&gt;Then I  have a script as follows that will convert the binary format to readable format and it is attached.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Aug 2000 18:20:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437148#M5623</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-16T18:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437149#M5624</link>
      <description>Lane, you want to save space and still have all the sar data you need? Use the /usr/lbin/sa/sadc command instead of sar.  This will create much smaller binary files.  Run the command:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/sa/sadc 10 300 [filename]&lt;BR /&gt;&lt;BR /&gt;This will create a binary file called [filename].  &lt;BR /&gt;&lt;BR /&gt;Extract the data with the following command(s):&lt;BR /&gt;&lt;BR /&gt;sar -u -f [filename]&lt;BR /&gt;   or&lt;BR /&gt;sar -b -f [filename]&lt;BR /&gt;   or&lt;BR /&gt;sar -d -f [filename]&lt;BR /&gt;   or&lt;BR /&gt;Use any other sar option.&lt;BR /&gt;&lt;BR /&gt;You have all the sar data you need in one compact binary file. You can put the sadc command in crontab too!&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Wed, 16 Aug 2000 18:40:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437149#M5624</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2000-08-16T18:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437150#M5625</link>
      <description>Lane, you want to save space and still have all the sar data you need? Use the /usr/lbin/sa/sadc command instead of sar.  This will create much smaller binary files.  Run the command:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/sa/sadc 10 300 [filename]&lt;BR /&gt;&lt;BR /&gt;This will create a binary file called [filename].  &lt;BR /&gt;&lt;BR /&gt;Extract the data with the following command(s):&lt;BR /&gt;&lt;BR /&gt;sar -u -f [filename]&lt;BR /&gt;   or&lt;BR /&gt;sar -b -f [filename]&lt;BR /&gt;   or&lt;BR /&gt;sar -d -f [filename]&lt;BR /&gt;   or&lt;BR /&gt;Use any other sar option.&lt;BR /&gt;&lt;BR /&gt;You have all the sar data you need in one compact binary file. You can put the sadc command in crontab too!&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Wed, 16 Aug 2000 18:43:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437150#M5625</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2000-08-16T18:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437151#M5626</link>
      <description>Lane, you want to save space and still have all the sar data you need? Use the /usr/lbin/sa/sadc command instead of sar.  This will create much smaller binary files.  Run the command:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/sa/sadc 10 300 [filename]&lt;BR /&gt;&lt;BR /&gt;This will create a binary file called [filename].  &lt;BR /&gt;Extract the data with the following command(s):&lt;BR /&gt;&lt;BR /&gt;sar -u -f [filename]&lt;BR /&gt;   or&lt;BR /&gt;sar -b -f [filename]&lt;BR /&gt;   or&lt;BR /&gt;sar -d -f [filename]&lt;BR /&gt;   or&lt;BR /&gt;...use any other sar option.&lt;BR /&gt;&lt;BR /&gt;You have all the sar data you need in one compact binary file. You can put the sadc command in crontab too!&lt;BR /&gt;&lt;BR /&gt;Tony&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Aug 2000 18:46:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437151#M5626</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2000-08-16T18:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437152#M5627</link>
      <description>Here is a simple perl script to get a snapshot of CPU/DISK/MEMORY&lt;BR /&gt;&lt;BR /&gt;#!/usr/local/bin/perl&lt;BR /&gt;$DATE=`date`;&lt;BR /&gt;chop($DATE);&lt;BR /&gt;@STATS=`/usr/bin/sar -uM 1 5`;&lt;BR /&gt;@STATS2=`/usr/bin/iostat 2 5`;&lt;BR /&gt;@STATS3=`/usr/sbin/swapinfo -mt`;&lt;BR /&gt;print ("START $DATE");&lt;BR /&gt;print "-----CPU STATS-----";&lt;BR /&gt;print "@STATSn";&lt;BR /&gt;print "-----DISK STATS-----";&lt;BR /&gt;print "@STATS2n";&lt;BR /&gt;print "-----MEMORY STATS-----";&lt;BR /&gt;print "@STATS3n";&lt;BR /&gt;print ("END $DATEnn*****");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Aug 2000 03:46:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437152#M5627</guid>
      <dc:creator>Anthony Goonetilleke</dc:creator>
      <dc:date>2000-08-17T03:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437153#M5628</link>
      <description>hello again,&lt;BR /&gt;&lt;BR /&gt;Rick&lt;BR /&gt;&lt;BR /&gt;I've put 0 7-18 * * 1-5 /usr/lbin/sa/sa1 1200 3 in my cronfile&lt;BR /&gt;&lt;BR /&gt;I get the following error message back when it executes:&lt;BR /&gt;&lt;BR /&gt;can't create/open data file no such file or directory&lt;BR /&gt;&lt;BR /&gt;I have sa1 sa2 and sadc in the /usr/lbin/sa directory...What's the problem</description>
      <pubDate>Thu, 17 Aug 2000 16:23:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437153#M5628</guid>
      <dc:creator>Lane Frazier</dc:creator>
      <dc:date>2000-08-17T16:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437154#M5629</link>
      <description>Do you have the directory /var/adm/sa?&lt;BR /&gt;&lt;BR /&gt;This is where the sa files will go.</description>
      <pubDate>Thu, 17 Aug 2000 16:29:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437154#M5629</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-17T16:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437155#M5630</link>
      <description>Under the /var/adm/sa directory, the data files sa$DATE will be placed. Using the sa2 command (in the script I attached) will issue the various options and convert to text output. &lt;BR /&gt;&lt;BR /&gt;The 1200 tag on the end of the cron says to get the data every 20 min. Again, if you want to stop the collection, you can comment or remove from the crontab file.</description>
      <pubDate>Thu, 17 Aug 2000 16:34:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437155#M5630</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-17T16:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437156#M5631</link>
      <description>Under the /var/adm/sa directory, the data files sa$DATE will be placed. Using the sa2 command (in the script I attached) will issue the various options and convert to text output. &lt;BR /&gt;&lt;BR /&gt;The 1200 tag on the end of the cron says to get the data every 20 min. Again, if you want to stop the collection, you can comment or remove from the crontab file.&lt;BR /&gt;&lt;BR /&gt;Under there I have also created the perf directory. It is just a central location to keep the text data.</description>
      <pubDate>Thu, 17 Aug 2000 16:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437156#M5631</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-17T16:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437157#M5632</link>
      <description>Rick,&lt;BR /&gt;&lt;BR /&gt;There is no /var/adm/sa directory....I only have /var/adm&lt;BR /&gt;&lt;BR /&gt;Do I need to create the sa subdirectory?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Thu, 17 Aug 2000 16:37:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437157#M5632</guid>
      <dc:creator>Lane Frazier</dc:creator>
      <dc:date>2000-08-17T16:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437158#M5633</link>
      <description>Yes, create the sa directory under the /var/adm.&lt;BR /&gt;&lt;BR /&gt;Perms that I have for the sa directory are:&lt;BR /&gt;755  root  sys&lt;BR /&gt;&lt;BR /&gt;This will allow you to collect the data.&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Aug 2000 16:43:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437158#M5633</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-17T16:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using sar. How to stop it</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437159#M5634</link>
      <description>Ok Rick,&lt;BR /&gt;&lt;BR /&gt;Looks like I'm getting some data now...I have a sa17&lt;BR /&gt;&lt;BR /&gt;how does one make use of your script? just copy the sa17 file to /var/adm/sa/perf&lt;BR /&gt;&lt;BR /&gt;and run your script? haven't quite figured out the script you provided yet. What's with the directory creation at the beginning of the script? just a way of organizing the data by month day year?&lt;BR /&gt;&lt;BR /&gt;Also does the script  produce a report in a text file or does it display on the screen?&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
      <pubDate>Thu, 17 Aug 2000 17:35:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sar-how-to-stop-it/m-p/2437159#M5634</guid>
      <dc:creator>Lane Frazier</dc:creator>
      <dc:date>2000-08-17T17:35:02Z</dc:date>
    </item>
  </channel>
</rss>

