<?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: problem with sar in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673355#M51445</link>
    <description>Gamoji,&lt;BR /&gt;&lt;BR /&gt;With glance/measureware and perfview, you can capture the information you desire at a granularity unavailable with sar. sar, top, vmstat, iostat, will only collect data at the end of a processes timeslice, missing the hundreds of commands being executed (remember we are using risc technology - meaning in one tick you can have many commands being executed), whereas measureware has the hooks to capture this information. Plus with perfview, you can graph your performance.&lt;BR /&gt;&lt;BR /&gt;sorry if I sound like an HP salesperson, it's just that I sometimes don't understand why people aren't willing to spend a few thousand dollars to make their jobs a lot easier, and in the long run saving themselves ten times or more the cost of the software.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Feb 2002 12:08:16 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-02-28T12:08:16Z</dc:date>
    <item>
      <title>problem with sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673350#M51440</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I have written 2 simple scripts to run 24X7 and collect CPU and disk usage data using sar on my L2000, 2CPU 64Bit HP-UX 11.00 server.&lt;BR /&gt; &lt;BR /&gt;What I expected was I will be having CPU's usage in cpu_log.... and disk usage stats in disk_log...&lt;BR /&gt;&lt;BR /&gt;But, sar had written same data in both the files. I wonder where the mistake is.&lt;BR /&gt;&lt;BR /&gt;Please help me out.&lt;BR /&gt;&lt;BR /&gt;bye,&lt;BR /&gt;Raghu.&lt;BR /&gt;&lt;BR /&gt;PS: Here is the code :&lt;BR /&gt;1. mon_cpu.sh&lt;BR /&gt;&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;sar -u -M -o /opt/admin/REPORTS/CPUREP/cpu_log.`date +%d%m%y%X` 600 144&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;2. mon_disk.sh&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;sar -d -o /opt/admin/REPORTS/DISKREP/disk_log.`date +%d%m%y%X` 600 144&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;I launched the scripts as :&lt;BR /&gt;./mon_cpu.sh 1&amp;gt;&amp;gt;/dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;./mon_disk.sh 1&amp;gt;&amp;gt;/dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2002 11:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673350#M51440</guid>
      <dc:creator>Gamoji Raghavendra</dc:creator>
      <dc:date>2002-02-28T11:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem with sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673351#M51441</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try not to run these scripts at the same time.&lt;BR /&gt;&lt;BR /&gt;And verify the results.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 28 Feb 2002 11:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673351#M51441</guid>
      <dc:creator>Olivier LEGRAND</dc:creator>
      <dc:date>2002-02-28T11:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: problem with sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673352#M51442</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Dear Raghu&lt;BR /&gt;&lt;BR /&gt;There is a simple script of os itself called sadc&lt;BR /&gt;&lt;BR /&gt;You have to run the below command in background it will create files everyday with different name sa01, sa02 the numeric number is date of that particular day. &lt;BR /&gt;&lt;BR /&gt;#/usr/lbin/sa/sadc 300 290 /var/adm/sa/sa`date +%d` &amp;amp;&lt;BR /&gt;&lt;BR /&gt;This will create cpu, disk, swap buffer etc etc in one file under /var/adm/sa directory.&lt;BR /&gt;&lt;BR /&gt;Afterwards you will have to do&lt;BR /&gt;&lt;BR /&gt;#sar -A -f &lt;SA file=""&gt; &lt;BR /&gt;To report all data.&lt;BR /&gt;&lt;BR /&gt;More info you see #man sar and #man sadc&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Manoj&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SA&gt;</description>
      <pubDate>Thu, 28 Feb 2002 11:18:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673352#M51442</guid>
      <dc:creator>Manoj P.U.</dc:creator>
      <dc:date>2002-02-28T11:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem with sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673353#M51443</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Cron this to start at 05:00 and then all sar data will be writted to /var/adm/saXX file - XX being the day number of month.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;---------------cut here-----------&lt;BR /&gt;#!/bin/sh                                                      &lt;BR /&gt;                                                               &lt;BR /&gt;# 1 minute                                                     &lt;BR /&gt;period=${1:-"60"}                                              &lt;BR /&gt;                                                               &lt;BR /&gt;                                               &lt;BR /&gt;iterations=${2:-"`expr 86400 / $period`"}                      &lt;BR /&gt;                                                               &lt;BR /&gt;                                                               &lt;BR /&gt;echo "sar: $iterations iterations at $period second intervals" &lt;BR /&gt;/usr/sbin/sar -A \                                             &lt;BR /&gt;  -o /var/adm/sa/sa`date +%d` \                                &lt;BR /&gt;  $period \                                                    &lt;BR /&gt;  $iterations &amp;gt; /dev/null                                      &lt;BR /&gt;&lt;BR /&gt;---------------cut here------------&lt;BR /&gt;&lt;BR /&gt;to look at yesterdays buffer data from sar then&lt;BR /&gt;&lt;BR /&gt;sar -b -f /var/adm/sa/sa27&lt;BR /&gt;&lt;BR /&gt;I have a script that will do a full month month extract of date from all the saXX files if you require it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Thu, 28 Feb 2002 11:23:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673353#M51443</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-02-28T11:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem with sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673354#M51444</link>
      <description>Thanks to you all&lt;BR /&gt;I shall try these options&lt;BR /&gt;&lt;BR /&gt;bye,&lt;BR /&gt;Raghu.</description>
      <pubDate>Thu, 28 Feb 2002 11:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673354#M51444</guid>
      <dc:creator>Gamoji Raghavendra</dc:creator>
      <dc:date>2002-02-28T11:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem with sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673355#M51445</link>
      <description>Gamoji,&lt;BR /&gt;&lt;BR /&gt;With glance/measureware and perfview, you can capture the information you desire at a granularity unavailable with sar. sar, top, vmstat, iostat, will only collect data at the end of a processes timeslice, missing the hundreds of commands being executed (remember we are using risc technology - meaning in one tick you can have many commands being executed), whereas measureware has the hooks to capture this information. Plus with perfview, you can graph your performance.&lt;BR /&gt;&lt;BR /&gt;sorry if I sound like an HP salesperson, it's just that I sometimes don't understand why people aren't willing to spend a few thousand dollars to make their jobs a lot easier, and in the long run saving themselves ten times or more the cost of the software.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Feb 2002 12:08:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-sar/m-p/2673355#M51445</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-28T12:08:16Z</dc:date>
    </item>
  </channel>
</rss>

