<?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: system performance logging by using &amp;quot;sar&amp;quot; in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/system-performance-logging-by-using-quot-sar-quot/m-p/2930358#M934872</link>
    <description>&lt;BR /&gt;&lt;BR /&gt;1.      To set it up:&lt;BR /&gt;&lt;BR /&gt;        Start sar:&lt;BR /&gt;                cd /root/doc&lt;BR /&gt;                crontab -l &amp;gt; crontab.mmdd&lt;BR /&gt;                vi crontab.mmdd&lt;BR /&gt;                        add:&lt;BR /&gt;                                0 * * * * /usr/lib/sa/sa1  600 6&lt;BR /&gt;                crontab &amp;lt; cron.mmdd&lt;BR /&gt;                crontab -l&lt;BR /&gt;                mkdir /var/adm/sa&lt;BR /&gt;&lt;BR /&gt;2.      To use it:&lt;BR /&gt;&lt;BR /&gt;        a.      The sar collector puts data in:&lt;BR /&gt;&lt;BR /&gt;                        /var/adm/sa/&lt;BR /&gt;&lt;BR /&gt;                        in files named: saNN&lt;BR /&gt;&lt;BR /&gt;                                sa01&lt;BR /&gt;                                sa02&lt;BR /&gt;&lt;BR /&gt;                                where NN is the day of the month on which the data was collected.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;abramsd@adedd09p:/var/adm/sa$  ll&lt;BR /&gt;total 294718&lt;BR /&gt;-rw-r--r--   1 root       sys        5810240 Oct  1 23:50 sa01&lt;BR /&gt;-rw-r--r--   1 root       sys        6243840 Oct  2 23:50 sa02&lt;BR /&gt;-rw-r--r--   1 root       sys        6243840 Oct  3 23:50 sa03&lt;BR /&gt;-rw-r--r--   1 root       sys        6243840 Oct  4 23:50 sa04&lt;BR /&gt;-rw-r--r--   1 root       sys        5723520 Oct  5 23:50 sa05&lt;BR /&gt;-rw-r--r--   1 root       sys        6243840 Oct  6 23:50 sa06&lt;BR /&gt;-rw-r--r--   1 root       sys        6113760 Oct  7 23:50 sa07&lt;BR /&gt;-rw-r--r--   1 root       sys        3382080 Oct  8 12:50 sa08&lt;BR /&gt;-rw-r--r--   1 root       sys        3409920 Sep 10 00:50 sa09&lt;BR /&gt;-rw-r--r--   1 root       sys        3409920 Sep 11 00:50 sa10&lt;BR /&gt;-rw-r--r--   1 root       sys        3409920 Sep 12 00:50 sa11&lt;BR /&gt;-rw-r--r--   1 root       sys        3409920 Sep 13 00:50 sa12&lt;BR /&gt;-rw-r--r--   1 root       sys        3409920 Sep 14 00:50 sa13&lt;BR /&gt;-rw-r--r--   1 root       sys         780480 Oct 14 23:50 sa14    &lt;BR /&gt;&lt;BR /&gt;        b.      To find out table space usage on ANY system right now:&lt;BR /&gt;&lt;BR /&gt;                        sar -v 5 5&lt;BR /&gt;&lt;BR /&gt;        c.      To get a 24 hour history of today:&lt;BR /&gt;&lt;BR /&gt;                        sar -v&lt;BR /&gt;&lt;BR /&gt;        d.      To get a 24 hour history of October 8:&lt;BR /&gt;&lt;BR /&gt;                        sar -v -f /var/adm/sa/sa08&lt;BR /&gt;&lt;BR /&gt;3.      Maintenance:&lt;BR /&gt;&lt;BR /&gt;        a.      The files in /var/adm/sa write over after 30 days:&lt;BR /&gt;&lt;BR /&gt;                        October 1 was written on sa01&lt;BR /&gt;                        November 1 will overwrite sa01&lt;BR /&gt;&lt;BR /&gt;        b.       You might want to put something in place to wipe out 2 week old files:&lt;BR /&gt;&lt;BR /&gt;                        find /var/adm/sa -mtime +15 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 25 Mar 2003 19:14:48 GMT</pubDate>
    <dc:creator>Stuart Abramson_2</dc:creator>
    <dc:date>2003-03-25T19:14:48Z</dc:date>
    <item>
      <title>system performance logging by using "sar"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-performance-logging-by-using-quot-sar-quot/m-p/2930355#M934869</link>
      <description>Hi~&lt;BR /&gt;&lt;BR /&gt;I never have ever said all forumers to saying  that hope to keeeping good heath and make many funs on your life, so, I wanna do say like that.&lt;BR /&gt;&lt;BR /&gt;by the way, I really need to get good solution from my question. &lt;BR /&gt;&lt;BR /&gt;I wanna gather my system's performance from today to tomorrow by using "sar" command.however, I didn't get it when I was try to using a sar command on my system such as under.&lt;BR /&gt;&lt;BR /&gt;# sar -u -s 10:12:00 -e 10:14:00 -i 60 -f test&lt;BR /&gt;&lt;BR /&gt;how to logging my system's performance by using sar command??&lt;BR /&gt;&lt;BR /&gt;and &lt;BR /&gt;&lt;BR /&gt;why need /var/adm/sa/sadd file ??&lt;BR /&gt;&lt;BR /&gt;if, you know my problem and found some incorrct options or easy to way best solutions,&lt;BR /&gt;let me know..please..&lt;BR /&gt;&lt;BR /&gt;thanks..have a good day!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Mar 2003 01:33:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-performance-logging-by-using-quot-sar-quot/m-p/2930355#M934869</guid>
      <dc:creator>KCS_1</dc:creator>
      <dc:date>2003-03-19T01:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: system performance logging by using "sar"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-performance-logging-by-using-quot-sar-quot/m-p/2930356#M934870</link>
      <description>Hi Patrick,&lt;BR /&gt;&lt;BR /&gt;Very nice of you! :-)&lt;BR /&gt;&lt;BR /&gt;In the form of the command you are running, you are attempting to read from the "test" file, not write to it. This is also where the /var/adm/sa/sa&lt;DL&gt;&lt;DD&gt; files come in.&lt;BR /&gt;&lt;BR /&gt;These files are normally produced from a cron job, and log system activity during the time specified. If you wanted to check the CPU utilisation from 01:00 to 05:00 on the 3rd of the month at 60 second intervals, you would use:&lt;BR /&gt;&lt;BR /&gt;# sar -u -s 01:00:00 -e 05:00:00 -i 60 -f /var/adm/sa/sa03&lt;BR /&gt;&lt;BR /&gt;If you wanted to capture the information, as it appears you do, use:&lt;BR /&gt;&lt;BR /&gt;# sar -u -s 10:12:00 -e 10:14:00 -i 60 &amp;gt;&amp;gt; test&lt;BR /&gt;&lt;BR /&gt;However, I don't think you can cross the day boundary, so in this case you will only get stats for 2 minutes today!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.&lt;/DD&gt;&lt;/DL&gt;</description>
      <pubDate>Wed, 19 Mar 2003 02:03:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-performance-logging-by-using-quot-sar-quot/m-p/2930356#M934870</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2003-03-19T02:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: system performance logging by using "sar"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-performance-logging-by-using-quot-sar-quot/m-p/2930357#M934871</link>
      <description>Hi again Patrick,&lt;BR /&gt;&lt;BR /&gt;Sorry, I am taking rubbish, must be getting tired! If you want to capture the information use the sa1, sa2 or sadc utilities. The flags for these are similar to before.&lt;BR /&gt;&lt;BR /&gt;Please see the sadc man page for full details, and check the examples from you cron job.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.</description>
      <pubDate>Wed, 19 Mar 2003 02:22:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-performance-logging-by-using-quot-sar-quot/m-p/2930357#M934871</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2003-03-19T02:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: system performance logging by using "sar"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-performance-logging-by-using-quot-sar-quot/m-p/2930358#M934872</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;1.      To set it up:&lt;BR /&gt;&lt;BR /&gt;        Start sar:&lt;BR /&gt;                cd /root/doc&lt;BR /&gt;                crontab -l &amp;gt; crontab.mmdd&lt;BR /&gt;                vi crontab.mmdd&lt;BR /&gt;                        add:&lt;BR /&gt;                                0 * * * * /usr/lib/sa/sa1  600 6&lt;BR /&gt;                crontab &amp;lt; cron.mmdd&lt;BR /&gt;                crontab -l&lt;BR /&gt;                mkdir /var/adm/sa&lt;BR /&gt;&lt;BR /&gt;2.      To use it:&lt;BR /&gt;&lt;BR /&gt;        a.      The sar collector puts data in:&lt;BR /&gt;&lt;BR /&gt;                        /var/adm/sa/&lt;BR /&gt;&lt;BR /&gt;                        in files named: saNN&lt;BR /&gt;&lt;BR /&gt;                                sa01&lt;BR /&gt;                                sa02&lt;BR /&gt;&lt;BR /&gt;                                where NN is the day of the month on which the data was collected.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;abramsd@adedd09p:/var/adm/sa$  ll&lt;BR /&gt;total 294718&lt;BR /&gt;-rw-r--r--   1 root       sys        5810240 Oct  1 23:50 sa01&lt;BR /&gt;-rw-r--r--   1 root       sys        6243840 Oct  2 23:50 sa02&lt;BR /&gt;-rw-r--r--   1 root       sys        6243840 Oct  3 23:50 sa03&lt;BR /&gt;-rw-r--r--   1 root       sys        6243840 Oct  4 23:50 sa04&lt;BR /&gt;-rw-r--r--   1 root       sys        5723520 Oct  5 23:50 sa05&lt;BR /&gt;-rw-r--r--   1 root       sys        6243840 Oct  6 23:50 sa06&lt;BR /&gt;-rw-r--r--   1 root       sys        6113760 Oct  7 23:50 sa07&lt;BR /&gt;-rw-r--r--   1 root       sys        3382080 Oct  8 12:50 sa08&lt;BR /&gt;-rw-r--r--   1 root       sys        3409920 Sep 10 00:50 sa09&lt;BR /&gt;-rw-r--r--   1 root       sys        3409920 Sep 11 00:50 sa10&lt;BR /&gt;-rw-r--r--   1 root       sys        3409920 Sep 12 00:50 sa11&lt;BR /&gt;-rw-r--r--   1 root       sys        3409920 Sep 13 00:50 sa12&lt;BR /&gt;-rw-r--r--   1 root       sys        3409920 Sep 14 00:50 sa13&lt;BR /&gt;-rw-r--r--   1 root       sys         780480 Oct 14 23:50 sa14    &lt;BR /&gt;&lt;BR /&gt;        b.      To find out table space usage on ANY system right now:&lt;BR /&gt;&lt;BR /&gt;                        sar -v 5 5&lt;BR /&gt;&lt;BR /&gt;        c.      To get a 24 hour history of today:&lt;BR /&gt;&lt;BR /&gt;                        sar -v&lt;BR /&gt;&lt;BR /&gt;        d.      To get a 24 hour history of October 8:&lt;BR /&gt;&lt;BR /&gt;                        sar -v -f /var/adm/sa/sa08&lt;BR /&gt;&lt;BR /&gt;3.      Maintenance:&lt;BR /&gt;&lt;BR /&gt;        a.      The files in /var/adm/sa write over after 30 days:&lt;BR /&gt;&lt;BR /&gt;                        October 1 was written on sa01&lt;BR /&gt;                        November 1 will overwrite sa01&lt;BR /&gt;&lt;BR /&gt;        b.       You might want to put something in place to wipe out 2 week old files:&lt;BR /&gt;&lt;BR /&gt;                        find /var/adm/sa -mtime +15 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Mar 2003 19:14:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-performance-logging-by-using-quot-sar-quot/m-p/2930358#M934872</guid>
      <dc:creator>Stuart Abramson_2</dc:creator>
      <dc:date>2003-03-25T19:14:48Z</dc:date>
    </item>
  </channel>
</rss>

