<?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: Polling intervals in sar. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808740#M83733</link>
    <description>Any data already collected would remain intact.  Only data collected since the change to the cron job will be at half hourly intervals.</description>
    <pubDate>Wed, 18 Sep 2002 14:38:51 GMT</pubDate>
    <dc:creator>Chris Wilshaw</dc:creator>
    <dc:date>2002-09-18T14:38:51Z</dc:date>
    <item>
      <title>Polling intervals in sar.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808735#M83728</link>
      <description>Hello all&lt;BR /&gt;&lt;BR /&gt;I am trying to figure out how to get the output of my data files to have 30 minute intervals instead of 5 minute intervals which are being written to each of the output files. &lt;BR /&gt;&lt;BR /&gt;I have a script which is gathering a series of sar commands and putting them to seperate files. I am running this from cron and it is taking the information from the /var/adm/sa/sa## file each day. The output files are being listed in 5 minute intervals.&lt;BR /&gt;&lt;BR /&gt;So what I am trying to figure out is where to write in the script that I want a 30 minute listing and not a 5 minute listing.&lt;BR /&gt;&lt;BR /&gt;Attached is a sample output file, listed here are the cron entries and then the script itself.&lt;BR /&gt;&lt;BR /&gt;TY in advance:&lt;BR /&gt;&lt;BR /&gt;Cron entries:&lt;BR /&gt;00,15,30,45 * * * * /usr/lbin/sa/sa1 600 6 &amp;amp;&lt;BR /&gt;59 23 * * * /home/fgrosb01/sardump/sar.dump &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;Script: sar.dump&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh -v&lt;BR /&gt;#&lt;BR /&gt;# This script is being developed to provide a detailed report of the daily performance  &lt;BR /&gt;# statistics regarding several different areas of the system. &lt;BR /&gt;# This script must be executed utlizing the root user account.&lt;BR /&gt;&lt;BR /&gt;# Environmental section&lt;BR /&gt;&lt;BR /&gt;set -u&lt;BR /&gt;&lt;BR /&gt;BASEDIR=/home/fgrosb01/sardump&lt;BR /&gt;DATE=`date +%m/%d/%Y`&lt;BR /&gt;YDATE=`TZ=CST+24 date +%m/%d/%Y`&lt;BR /&gt;SCRIPT_EXECUTION_TIME=$(date +'%H:%M:%S')&lt;BR /&gt;SCRIPT_REVISION="HPUX-b.11.00.01"&lt;BR /&gt;SCRIPT_HPUX_VERSION=$(uname -r)&lt;BR /&gt;SCRIPT_SYSTEM=$(uname - n)&lt;BR /&gt;SCRIPT_USER=$(whoami)&lt;BR /&gt;SCRIPT_EXECUTION_TIME=$(date +'%Y/%m/%d/%H:%M:%S')&lt;BR /&gt;                &lt;BR /&gt;echo $SCRIPT_SYSTEM \(Version $SCRIPT_REVISION\) $SCRIPT_EXECUTION_TIME&lt;BR /&gt;echo _____________________________________________________________________&lt;BR /&gt;echo&lt;BR /&gt;&lt;BR /&gt;if [ ${SCRIPT_USER} != "root" ] ; then&lt;BR /&gt;   echo&lt;BR /&gt;   echo "This program must be executed utilizing the root logon id only"&lt;BR /&gt;echo&lt;BR /&gt;return 501&lt;BR /&gt;fi&lt;BR /&gt;echo _______________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;# Remove old data files&lt;BR /&gt;&lt;BR /&gt;cd $BASEDIR&lt;BR /&gt;rm *_act&lt;BR /&gt;&lt;BR /&gt;# Collect CPU&lt;BR /&gt;sar -u &amp;gt;&amp;gt; $BASEDIR/cpu_act&lt;BR /&gt;#&lt;BR /&gt;# Collect Buffer activity&lt;BR /&gt;sar -b &amp;gt;&amp;gt; $BASEDIR/buff_act&lt;BR /&gt;#&lt;BR /&gt;# Collect TTY activity&lt;BR /&gt;sar -y &amp;gt;&amp;gt; $BASEDIR/tty_act&lt;BR /&gt;#&lt;BR /&gt;# Collect System calls&lt;BR /&gt;sar -c &amp;gt;&amp;gt; $BASEDIR/call_act&lt;BR /&gt;#&lt;BR /&gt;# Collect Swap activity&lt;BR /&gt;sar -w &amp;gt;&amp;gt; $BASEDIR/swap_act&lt;BR /&gt;#&lt;BR /&gt;# Collect File access activity&lt;BR /&gt;sar -a &amp;gt;&amp;gt; $BASEDIR/acc_act&lt;BR /&gt;#&lt;BR /&gt;# Collect average Q lenght&lt;BR /&gt;sar -q &amp;gt;&amp;gt; $BASEDIR/avq_act&lt;BR /&gt;# &lt;BR /&gt;# Collect Table activity&lt;BR /&gt;sar -v &amp;gt;&amp;gt; $BASEDIR/tab_act&lt;BR /&gt;#&lt;BR /&gt;# Collect Message and Semaphore activity&lt;BR /&gt;sar -m &amp;gt;&amp;gt; $BASEDIR/sem_act&lt;BR /&gt;#&lt;BR /&gt;# Collect Multi processor activity&lt;BR /&gt;sar -M &amp;gt;&amp;gt; $BASEDIR/proc_act&lt;BR /&gt;#&lt;BR /&gt;# Disk space&lt;BR /&gt;/usr/bin/bdf &amp;gt;&amp;gt; $BASEDIR/bdf_act&lt;BR /&gt;#&lt;BR /&gt;# Paging&lt;BR /&gt;vmstat -s| grep "pages swapped in" &amp;gt;&amp;gt; $BASEDIR/inpages_act&lt;BR /&gt;vmstat -s| grep "pages swapped out" &amp;gt;&amp;gt; $BASEDIR/outpages_act&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Sep 2002 13:29:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808735#M83728</guid>
      <dc:creator>fg_1</dc:creator>
      <dc:date>2002-09-18T13:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Polling intervals in sar.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808736#M83729</link>
      <description>oops forgot to attach one of the output files:&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Sep 2002 14:01:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808736#M83729</guid>
      <dc:creator>fg_1</dc:creator>
      <dc:date>2002-09-18T14:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Polling intervals in sar.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808737#M83730</link>
      <description>If you change&lt;BR /&gt;&lt;BR /&gt;00,15,30,45 * * * * /usr/lbin/sa/sa1 600 6 &amp;amp; &lt;BR /&gt;&lt;BR /&gt;to &lt;BR /&gt;&lt;BR /&gt;0 * * * * /usr/lib/sa/sa1 1800 2 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;That will run sar at intervals of 1800 seconds (30 minutes).</description>
      <pubDate>Wed, 18 Sep 2002 14:03:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808737#M83730</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2002-09-18T14:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Polling intervals in sar.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808738#M83731</link>
      <description>Hi Frank,&lt;BR /&gt;&lt;BR /&gt;According to the man page for sa1 (1M)the first parameter is the interval between samples in seconds, hence you will need to change this value to 1800.  It's worth reading the man page for more info on setting up the cronjobs.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.&lt;BR /&gt;&lt;BR /&gt;---quote your cron entry---&lt;BR /&gt;&lt;BR /&gt;00,15,30,45 * * * * /usr/lbin/sa/sa1 600 6 &amp;amp;&lt;BR /&gt;59 23 * * * /home/fgrosb01/sardump/sar.dump &amp;gt; /dev/null &lt;BR /&gt;&lt;BR /&gt;---end quote---</description>
      <pubDate>Wed, 18 Sep 2002 14:08:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808738#M83731</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2002-09-18T14:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Polling intervals in sar.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808739#M83732</link>
      <description>Ok guys&lt;BR /&gt;&lt;BR /&gt;I have changed that parameter at the end of the sa command to reflect the following:&lt;BR /&gt;&lt;BR /&gt;0 * * * * /usr/lbin/sa/sa1 1800 2 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;What i am seeing is that the output files are still being written in 5 minute intervals and that this process is still running. The ps is listed below:&lt;BR /&gt;&lt;BR /&gt;ps -ef|grep sa1&lt;BR /&gt;root 11912     1  0 11:26:00 ?         0:00 /usr/lbin/sa/sadc 1800 2 /var/adm/sa/sa18&lt;BR /&gt;&lt;BR /&gt;The question here is whether or not I have to alter any entries in my script where it does the individual sar's or is it the fact that I wont see any results until the end of the day, or at what point should I see results?&lt;BR /&gt;&lt;BR /&gt;Thanks again.</description>
      <pubDate>Wed, 18 Sep 2002 14:33:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808739#M83732</guid>
      <dc:creator>fg_1</dc:creator>
      <dc:date>2002-09-18T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Polling intervals in sar.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808740#M83733</link>
      <description>Any data already collected would remain intact.  Only data collected since the change to the cron job will be at half hourly intervals.</description>
      <pubDate>Wed, 18 Sep 2002 14:38:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/polling-intervals-in-sar/m-p/2808740#M83733</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2002-09-18T14:38:51Z</dc:date>
    </item>
  </channel>
</rss>

