<?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 Creating sar report in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449391#M208563</link>
    <description>when I give following command to create sar report with 5 secs interval and for 12 hrs. and redirect it to one out put file the file gets created of 0 byte.why?&lt;BR /&gt;&lt;BR /&gt;sar -ud 5 8640 &amp;gt; /tmp/sar23&lt;BR /&gt;&lt;BR /&gt;what do u mean by &lt;BR /&gt;&lt;BR /&gt;/usr/lbin/sa/sa2 -s 8:00 -e 18:00 -i 3600 -A&lt;BR /&gt;&lt;BR /&gt;Is this mean I will get reports for the period&lt;BR /&gt;from 8:00 am to 18:00 pm and what this -A option does.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 23 Dec 2004 00:36:03 GMT</pubDate>
    <dc:creator>Saneesh S</dc:creator>
    <dc:date>2004-12-23T00:36:03Z</dc:date>
    <item>
      <title>Creating sar report</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449391#M208563</link>
      <description>when I give following command to create sar report with 5 secs interval and for 12 hrs. and redirect it to one out put file the file gets created of 0 byte.why?&lt;BR /&gt;&lt;BR /&gt;sar -ud 5 8640 &amp;gt; /tmp/sar23&lt;BR /&gt;&lt;BR /&gt;what do u mean by &lt;BR /&gt;&lt;BR /&gt;/usr/lbin/sa/sa2 -s 8:00 -e 18:00 -i 3600 -A&lt;BR /&gt;&lt;BR /&gt;Is this mean I will get reports for the period&lt;BR /&gt;from 8:00 am to 18:00 pm and what this -A option does.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2004 00:36:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449391#M208563</guid>
      <dc:creator>Saneesh S</dc:creator>
      <dc:date>2004-12-23T00:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating sar report</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449392#M208564</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;sar format is like this&lt;BR /&gt;&lt;BR /&gt;for creating a sar report file for 10 minutes&lt;BR /&gt;with 1 min intervels.&lt;BR /&gt;&lt;BR /&gt;sar -o /tmp/sa123 60 10&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;in your case it is &lt;BR /&gt;&lt;BR /&gt;sar -o /tmp/sa123 5 144 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;(as 12 hours is (60/5)*12 intervels)&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2004 00:59:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449392#M208564</guid>
      <dc:creator>bhavin asokan</dc:creator>
      <dc:date>2004-12-23T00:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating sar report</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449393#M208565</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;sorry for error in old reply.&lt;BR /&gt;&lt;BR /&gt;for 12 hours it is (60/5)*60*12 ie. 8640 only&lt;BR /&gt;&lt;BR /&gt;to view output&lt;BR /&gt;&lt;BR /&gt;sar -d -f /tmp/sa123  (for disk)&lt;BR /&gt;sar -u -f /tmp/sa123   (for cpu)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Review cpu utilization on a multi-processor system later:&lt;BR /&gt;&lt;BR /&gt;sar -u -M  -f /tmp/sa123 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2004 01:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449393#M208565</guid>
      <dc:creator>bhavin asokan</dc:creator>
      <dc:date>2004-12-23T01:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating sar report</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449394#M208566</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use &lt;BR /&gt;&lt;BR /&gt;sar -u -s &lt;START time=""&gt; -e &lt;END time=""&gt; -i &lt;INTERVEL&gt; -f &lt;OUTPUT file=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the option -A in sa2 is same as -A in sar it stand for report all data.&lt;BR /&gt;&lt;BR /&gt;Sunil&lt;BR /&gt;&lt;/OUTPUT&gt;&lt;/INTERVEL&gt;&lt;/END&gt;&lt;/START&gt;</description>
      <pubDate>Thu, 23 Dec 2004 01:38:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449394#M208566</guid>
      <dc:creator>Sunil Sharma_1</dc:creator>
      <dc:date>2004-12-23T01:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating sar report</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449395#M208567</link>
      <description>Saneesh S ,&lt;BR /&gt;&lt;BR /&gt;I run this canned script on my servers:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#! /usr/bin/sh&lt;BR /&gt;# Script for collecting System Activitey Reports&lt;BR /&gt;# Ran from the cron as:&lt;BR /&gt;# 0 0 * * * /usr/sbin/sar_all -u -d 900 96&lt;BR /&gt;#&lt;BR /&gt;HOSTNAME=`hostname`&lt;BR /&gt;DATE=`date +%Y%m%d`&lt;BR /&gt;RPT=/var/adm/sa/sar-$HOSTNAME-$DATE&lt;BR /&gt;DFILE=/var/adm/sa/sar-$HOSTNAME&lt;BR /&gt;ENDIR=/usr/sbin&lt;BR /&gt;cd $ENDIR&lt;BR /&gt;$ENDIR/sar $* -f $DFILE &amp;gt; $RPT&lt;BR /&gt;&lt;BR /&gt;_____________________________________&lt;BR /&gt;This outputs the information every 15 minutes for a 24 hour period.  When it completes the 24 hour period it provides me with the averages for the period.&lt;BR /&gt;&lt;BR /&gt;You will probably have to create the dir /var/adm/sa/&lt;BR /&gt;&lt;BR /&gt;Hope this helps you out.&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Tue, 04 Jan 2005 10:05:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449395#M208567</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2005-01-04T10:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating sar report</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449396#M208568</link>
      <description>As mentioned, the -A reports ALL&lt;BR /&gt;&lt;BR /&gt;Attached you will find a sar reporting script that I have been using for a long time. It will report with the various options of sar at 300 second intervals - you may want to adjust this to fit your needs. This script runs in conjunction with the sar commands as listed in the cron (below).&lt;BR /&gt;&lt;BR /&gt;To start I have this entry in the cron to gather the binary data for the day.&lt;BR /&gt;0,15,30,45 * * * * /usr/lib/sa/sa1&lt;BR /&gt;&lt;BR /&gt;This other cron entry will run at the end of a day and parse through the binary format to produce ASCII output. &lt;BR /&gt;# sar data collection&lt;BR /&gt;56 23 * * * /var/adm/sa/get_sars 2&amp;gt;&amp;amp;1 &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You will want to keep tabs on the dir size as this method does not overwrite previous month's data.</description>
      <pubDate>Tue, 04 Jan 2005 10:18:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-sar-report/m-p/3449396#M208568</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-01-04T10:18:03Z</dc:date>
    </item>
  </channel>
</rss>

