<?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 sar output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-output/m-p/4417880#M354015</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;how to check the prevous day sar output.what is the syntax for it&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rkumar</description>
    <pubDate>Tue, 12 May 2009 04:57:06 GMT</pubDate>
    <dc:creator>Waugh</dc:creator>
    <dc:date>2009-05-12T04:57:06Z</dc:date>
    <item>
      <title>sar output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-output/m-p/4417880#M354015</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;how to check the prevous day sar output.what is the syntax for it&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rkumar</description>
      <pubDate>Tue, 12 May 2009 04:57:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-output/m-p/4417880#M354015</guid>
      <dc:creator>Waugh</dc:creator>
      <dc:date>2009-05-12T04:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: sar output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-output/m-p/4417881#M354016</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;look these files /var/adm/sa/saxx where xx is two digits representing the date.</description>
      <pubDate>Tue, 12 May 2009 05:15:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-output/m-p/4417881#M354016</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-05-12T05:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: sar output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-output/m-p/4417882#M354017</link>
      <description>Ganesan gas given a hint... you will find that you cannot get historical data out of sar, unless someone has taken the time to setup accounting on your system. Once setup you just use sar in the same way as you would normally execpt instead of giving a number of iterations and sample interval, you specificy the file to use (hwich is based on the day of the month).&lt;BR /&gt;&lt;BR /&gt;So if today is 12 May, and you want to look at yesterday's sar data for cpu utilization instead of:&lt;BR /&gt;&lt;BR /&gt;sar -u 2 10&lt;BR /&gt;&lt;BR /&gt;you would do:&lt;BR /&gt;&lt;BR /&gt;sar -u -f /var/adm/sa/sa11&lt;BR /&gt;&lt;BR /&gt;To setup accounting in the first place - carry out the following steps:&lt;BR /&gt;&lt;BR /&gt;-Create the following directory, owned by user adm &lt;BR /&gt;&lt;BR /&gt;/var/adm/sa &lt;BR /&gt;&lt;BR /&gt;-Make sure user adm is allowed to use cron and add the following entried to the file /var/spool/cron/crontabs/adm&lt;BR /&gt;&lt;BR /&gt;# adm crontab file for &lt;HOSTNAME&gt;&lt;BR /&gt;#&lt;BR /&gt;# Run Daily Accounting&lt;BR /&gt;0 4 * * 1-6 /usr/sbin/acct/runacct 2&amp;gt; /var/adm/acct/nite/fd2log&lt;BR /&gt;#&lt;BR /&gt;# Check size of /var/adm/pacct&lt;BR /&gt;0 * * * * /usr/sbin/acct/ckpacct&lt;BR /&gt;#&lt;BR /&gt;# Create summary files&lt;BR /&gt;15 5 1 * * /usr/sbin/acct/monacct&lt;BR /&gt;#&lt;BR /&gt;# Collect system accounting information and store in binary format&lt;BR /&gt;0 7-17 * * * /usr/lib/sa/sa1 1200 3&lt;BR /&gt;#&lt;BR /&gt;# Write a daily report to /var/adm/sa/sadd (where dd is day number)&lt;BR /&gt;0 18 * * 1-6 /usr/lib/sa/sa2 -s 7:00 -e 18:01 -i 3600 -A&lt;BR /&gt;#&lt;BR /&gt;# Disk Accounting&lt;BR /&gt;0 2 * * 4 /usr/sbin/acct/dodisk&lt;BR /&gt;&lt;BR /&gt;-Remove all comments from /etc/fstab, as some of the accounting tools can't process them &lt;BR /&gt;&lt;BR /&gt;-Set flag to 1 in /etc/rc.config.d/acct, as follows:&lt;BR /&gt;&lt;BR /&gt;START_ACCT=1&lt;BR /&gt;&lt;BR /&gt;-Comment out â  dateâ   commands in the /usr/sbin/acct/dodisk script - otherwise you get a pointless email from cron to the adm account every day with the date in it.&lt;BR /&gt;&lt;BR /&gt;-Set up /etc/acct/holidays for the current year. You need to figure out the "day of the year" for every public holiday where you are...&lt;BR /&gt;&lt;BR /&gt;After this has been done, and the scripts have been allowed to run for &amp;gt;24 hours, you will start to see data in /var/adm/sa&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;/HOSTNAME&gt;</description>
      <pubDate>Tue, 12 May 2009 05:24:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-output/m-p/4417882#M354017</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-05-12T05:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: sar output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-output/m-p/4417883#M354018</link>
      <description>Beware:&lt;BR /&gt;provided you have a scheduled crontab job &lt;BR /&gt;00 * * * * /usr/lib/sa/sa1 1200 3&lt;BR /&gt;&lt;BR /&gt;the syntax is&lt;BR /&gt;&lt;BR /&gt;sar -f /var/adm/sa/sadd &lt;BR /&gt;(where dd is the day dd)&lt;BR /&gt;&lt;BR /&gt;Without the -f it reads the current day&lt;BR /&gt;&lt;BR /&gt;If you do not have the cronjob, then&lt;BR /&gt;sar data is not stored, then you &lt;BR /&gt;cannot retrieve it either.</description>
      <pubDate>Tue, 12 May 2009 05:29:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-output/m-p/4417883#M354018</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2009-05-12T05:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: sar output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar-output/m-p/4417884#M354019</link>
      <description>Hi,&lt;BR /&gt;1st you need to take sar output into a file see the example&lt;BR /&gt;&lt;BR /&gt;The following command stores system activity data in a file /home/root/sar.data 360 times, &lt;BR /&gt;once every 10 seconds (total time one hour).&lt;BR /&gt;#sar -o /home/root/sar.data 10 360&lt;BR /&gt;&lt;BR /&gt;This file can be analyzed later by using the following command.&lt;BR /&gt;#sar -f /home/root/sar.data&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Tue, 12 May 2009 05:41:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar-output/m-p/4417884#M354019</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-05-12T05:41:49Z</dc:date>
    </item>
  </channel>
</rss>

