<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108848#M148422</link>
    <description>&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>Mon, 03 Nov 2003 13:19:58 GMT</pubDate>
    <dc:creator>Stuart Abramson_2</dc:creator>
    <dc:date>2003-11-03T13:19:58Z</dc:date>
    <item>
      <title>sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108844#M148418</link>
      <description>Attempting to set up sar.  Any helpful hints before I get started?</description>
      <pubDate>Mon, 03 Nov 2003 11:57:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108844#M148418</guid>
      <dc:creator>Katie Sands</dc:creator>
      <dc:date>2003-11-03T11:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108845#M148419</link>
      <description>Attaching a good sar script.&lt;BR /&gt;&lt;BR /&gt;It comes with the os.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 03 Nov 2003 12:01:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108845#M148419</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-11-03T12:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108846#M148420</link>
      <description>Hi Katie,&lt;BR /&gt;&lt;BR /&gt;Check this doc,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062922500" target="_blank"&gt;http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062922500&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Document description: &lt;BR /&gt;How to setup sar(1m) within cron to collect data .&lt;BR /&gt;&lt;BR /&gt;Document id: UPERFKBRC00010252&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Mon, 03 Nov 2003 12:01:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108846#M148420</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-11-03T12:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108847#M148421</link>
      <description>ok.  I read sa1 man page and found that /usr/lbin/sa/sadc needs to be added to a system start up script.  This lead me to 10.0 File System Layout White Paper, which told me to add to /sbin/init.d and name it after the subsystem it controls (sar, I assume?).  I guess I am missing the details of the how-to.  Any more pointers?  Thx.</description>
      <pubDate>Mon, 03 Nov 2003 12:52:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108847#M148421</guid>
      <dc:creator>Katie Sands</dc:creator>
      <dc:date>2003-11-03T12:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108848#M148422</link>
      <description>&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>Mon, 03 Nov 2003 13:19:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108848#M148422</guid>
      <dc:creator>Stuart Abramson_2</dc:creator>
      <dc:date>2003-11-03T13:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108849#M148423</link>
      <description>That depends on your environment....&lt;BR /&gt;&lt;BR /&gt;Add the following to root's cron:&lt;BR /&gt;&lt;BR /&gt;# SAR&lt;BR /&gt;0 * * * 0-6 /usr/lib/sa/sa1&lt;BR /&gt;10,20,30,40,50 5-19 * * 1-5 /usr/lib/sa/sa1&lt;BR /&gt;5 18 * * 1-5 /usr/lib/sa/sa2 -s 5:00 -e 19:01 -i 600 -A&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Mon, 03 Nov 2003 13:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108849#M148423</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2003-11-03T13:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108850#M148424</link>
      <description>Does I have to be in /root/doc?  B/c it does not exist on my system.  Do I need to create it?</description>
      <pubDate>Mon, 03 Nov 2003 13:36:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108850#M148424</guid>
      <dc:creator>Katie Sands</dc:creator>
      <dc:date>2003-11-03T13:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108851#M148425</link>
      <description>This what I ended up adding in /usr/spool/cron/crontabs/root:&lt;BR /&gt;&lt;BR /&gt;#collect sar data &lt;BR /&gt;0 * * * * /usr/lbin/sa/sa1 &lt;BR /&gt;20,40 8-17 * * 1-5 /usr/lbin/sa/sa1 &lt;BR /&gt;#reduce the sar data &lt;BR /&gt;5 18 * * * /usr/lbin/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.  You definitely sent me in the right direction.</description>
      <pubDate>Mon, 03 Nov 2003 15:27:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108851#M148425</guid>
      <dc:creator>Katie Sands</dc:creator>
      <dc:date>2003-11-03T15:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108852#M148426</link>
      <description>Katie:&lt;BR /&gt;&lt;BR /&gt;I NEVER vi /usr/spool/cron/crontabs/root.&lt;BR /&gt;&lt;BR /&gt;Your crontab change won't register if you vi this file.&lt;BR /&gt;&lt;BR /&gt;pick a scratch directory, anywhere.  I use /root/doc to keep stuff that I want.&lt;BR /&gt;&lt;BR /&gt;cd /scratch_place&lt;BR /&gt;crontab -l &amp;gt; cron.MMDD&lt;BR /&gt;vi cron.MMDD&lt;BR /&gt;.....make appropriate changes&lt;BR /&gt;crontab &amp;lt; cron.MMDD&lt;BR /&gt;&lt;BR /&gt;Now look at /usr/spool/cron/crontabs/root.  It will have been changed by the "crontab &amp;lt; file".</description>
      <pubDate>Mon, 03 Nov 2003 16:42:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108852#M148426</guid>
      <dc:creator>Stuart Abramson_2</dc:creator>
      <dc:date>2003-11-03T16:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108853#M148427</link>
      <description>Thank you!!!</description>
      <pubDate>Tue, 04 Nov 2003 09:23:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108853#M148427</guid>
      <dc:creator>Katie Sands</dc:creator>
      <dc:date>2003-11-04T09:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108854#M148428</link>
      <description>I did a cat on sa04 and it spits out a bunch of garbage.  Here is my entry in file cron.1104 ----&lt;BR /&gt;&lt;BR /&gt;more cron.1104&lt;BR /&gt;# SAR&lt;BR /&gt;0 * * * 0-6 /usr/lib/sa/sa1&lt;BR /&gt;10,20,30,40,50 5-19 * * 1-5 /usr/lib/sa/sa1&lt;BR /&gt;5 18 * * 1-5 /usr/lib/sa/sa2 -s 5:00 -e 19:01 -i 600 -A&lt;BR /&gt;&lt;BR /&gt;Is there anything else I am missing in my set up?</description>
      <pubDate>Tue, 04 Nov 2003 10:31:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108854#M148428</guid>
      <dc:creator>Katie Sands</dc:creator>
      <dc:date>2003-11-04T10:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108855#M148429</link>
      <description>Nevermind.</description>
      <pubDate>Tue, 04 Nov 2003 10:45:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3108855#M148429</guid>
      <dc:creator>Katie Sands</dc:creator>
      <dc:date>2003-11-04T10:45:27Z</dc:date>
    </item>
  </channel>
</rss>

