<?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 Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462457#M14601</link>
    <description>&lt;BR /&gt;Sorry Robert... Here is the correct path:&lt;BR /&gt;&lt;BR /&gt;/var/adm/sa/saXX, when XX is the current month.  &lt;BR /&gt;&lt;BR /&gt;You will need to create the file by:&lt;BR /&gt;/var/lib/sa/sadc /var/adm/sa/sa`date +%d`&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 07 Nov 2000 16:23:22 GMT</pubDate>
    <dc:creator>Elizabeth_2</dc:creator>
    <dc:date>2000-11-07T16:23:22Z</dc:date>
    <item>
      <title>Sar Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462454#M14598</link>
      <description>Fellow Admins,&lt;BR /&gt;&lt;BR /&gt;This is something I think I should know but it has been giving me a problem.  I am trying to run SAR as a Cron job to collect performance data.  Here is the cron entry:&lt;BR /&gt;&lt;BR /&gt;5 18 * * 1-5 /usr/lbin/sa/sa2 -s 8:00 -e 18.01 -i 1800 -u -b -d -w -q&lt;BR /&gt;&lt;BR /&gt;But this is the e-mail I get everday:&lt;BR /&gt;&lt;BR /&gt;sar: Can't open /var/adm/sa/sa06&lt;BR /&gt;*************************************************&lt;BR /&gt;Cron: The previous message is the standard output&lt;BR /&gt;      and standard error of one of your crontab commands:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/sa/sa2 -s 8:00 -e 18.01 -i 1800 -u -b -d -w -q&lt;BR /&gt;&lt;BR /&gt;I looked at the file permissions and that looks good, I even tried to create the files ahead of time and that didn?t work.  What am I missing?  Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Robert Smith&lt;BR /&gt;Systems Administrator&lt;BR /&gt;Biomatrix Inc.&lt;BR /&gt;(201) 945-9550</description>
      <pubDate>Tue, 07 Nov 2000 16:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462454#M14598</guid>
      <dc:creator>Robert Smith_1</dc:creator>
      <dc:date>2000-11-07T16:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462455#M14599</link>
      <description>&lt;BR /&gt;Hi Robert,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The sar program is looking for the binary file /usr/adm/sa/saXX, where XX&lt;BR /&gt;is the current date of the month.  To create this file, do the following:&lt;BR /&gt;&lt;BR /&gt;     /usr/lib/sa/sadc /usr/adm/sa/sa`date +%d`&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Nov 2000 16:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462455#M14599</guid>
      <dc:creator>Elizabeth_2</dc:creator>
      <dc:date>2000-11-07T16:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462456#M14600</link>
      <description>Robert:&lt;BR /&gt;&lt;BR /&gt;make sure that the directory /var/adm/sa has been created.  It isn't created by default - you have to create it:&lt;BR /&gt;&lt;BR /&gt;mkdir -p /var/adm/sa&lt;BR /&gt;&lt;BR /&gt;viola!</description>
      <pubDate>Tue, 07 Nov 2000 16:21:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462456#M14600</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-11-07T16:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462457#M14601</link>
      <description>&lt;BR /&gt;Sorry Robert... Here is the correct path:&lt;BR /&gt;&lt;BR /&gt;/var/adm/sa/saXX, when XX is the current month.  &lt;BR /&gt;&lt;BR /&gt;You will need to create the file by:&lt;BR /&gt;/var/lib/sa/sadc /var/adm/sa/sa`date +%d`&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Nov 2000 16:23:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462457#M14601</guid>
      <dc:creator>Elizabeth_2</dc:creator>
      <dc:date>2000-11-07T16:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462458#M14602</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;This script runs sar every 5 min (300 seconds) for 10 hours&lt;BR /&gt;I start it at 08:00 hrs each morning&lt;BR /&gt;-----------------------Cut here--------------------------------&lt;BR /&gt;#!/bin/sh                                                                       &lt;BR /&gt;# sardump                                                                                &lt;BR /&gt;# 5 minutes                                                                     &lt;BR /&gt;period=${1:-"300"}                                                              &lt;BR /&gt;# 10 hours worth                                                                &lt;BR /&gt;iterations=${2:-"120"}                                                          &lt;BR /&gt;                                                                                &lt;BR /&gt;echo "sar: $iterations iterations at $period second intervals"                  &lt;BR /&gt;/usr/sbin/sar -ubdcvwq                                                         &lt;BR /&gt;  -o /var/adm/sa/sa`date +%d`                                                  &lt;BR /&gt;  $period                                                                      &lt;BR /&gt;  $iterations &amp;gt; /dev/null                                                       &lt;BR /&gt;-----------------------Cut here--------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Crontab entry is :-&lt;BR /&gt;&lt;BR /&gt;00 08 * * * /sardump&lt;BR /&gt;&lt;BR /&gt;Modify the switches to suit.&lt;BR /&gt;&lt;BR /&gt;HTH &lt;BR /&gt;Paula&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Nov 2000 16:35:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462458#M14602</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2000-11-07T16:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462459#M14603</link>
      <description>Hi Robert,&lt;BR /&gt;&lt;BR /&gt;There is a mistake in your cron, your start is 8.00 and stop is 18.01 for Monday to Friday. So you cann't set the cron time for 18.05.&lt;BR /&gt;Anyway, create the /var/adm/sa directory, then update your cron file as follows:&lt;BR /&gt;0 6-22 * * * /usr/lbin/sa/sa1 1200 4&lt;BR /&gt;30 18 * * * /usr/lbin/sa/sa2 -s 00:00 -e 20:00 1800 -u -b -d -w -q</description>
      <pubDate>Tue, 07 Nov 2000 17:00:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462459#M14603</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-11-07T17:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462460#M14604</link>
      <description>You need the /var/adm/sa directory.&lt;BR /&gt;&lt;BR /&gt;Can do a mkdir for that directory.</description>
      <pubDate>Tue, 07 Nov 2000 17:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462460#M14604</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-11-07T17:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sar Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462461#M14605</link>
      <description>Robert,&lt;BR /&gt;FYI, the XX in "var/adm/sa/saXX" is not the current monthname but the day of the month.  SAR will maintain only 31 of these files, overwriting the previous month's day with the current month's day giving you a backlog of one month's data.&lt;BR /&gt;Just making sure, the problem you were having was that cron was not looking in &lt;BR /&gt;/var/adm/sa.</description>
      <pubDate>Wed, 08 Nov 2000 01:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-question/m-p/2462461#M14605</guid>
      <dc:creator>Brad Marks</dc:creator>
      <dc:date>2000-11-08T01:29:54Z</dc:date>
    </item>
  </channel>
</rss>

