<?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/3399419#M200481</link>
    <description>Dear Roger,&lt;BR /&gt;&lt;BR /&gt;Try the below script.&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;LOGDIR="/tmp/stats"&lt;BR /&gt;LOGFILE="${LOGDIR}/sar_`hostname`.`date +'%d%m%y'`"&lt;BR /&gt;&lt;BR /&gt;SARCMD=/usr/sbin/sar&lt;BR /&gt;SAROPTS="-udgpqr"&lt;BR /&gt;&lt;BR /&gt;# Interval in seconds (5 minutes below)&lt;BR /&gt;&lt;BR /&gt;INTERVAL=300&lt;BR /&gt;&lt;BR /&gt;TOTALSECSINDAY=86400&lt;BR /&gt;&lt;BR /&gt;NTIMES=`expr ${TOTALSECSINDAY} / ${INTERVAL}`&lt;BR /&gt;&lt;BR /&gt;$SARCMD $SAROPTS -o $LOGFILE $INTERVAL $NTIMES &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;With Regards&lt;BR /&gt;&lt;BR /&gt;Harry&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Oct 2004 13:04:42 GMT</pubDate>
    <dc:creator>harry_7</dc:creator>
    <dc:date>2004-10-13T13:04:42Z</dc:date>
    <item>
      <title>sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399417#M200479</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I'd like to use sar to generate a monthly report on CPU and memory utilization (and maybe smome other metrics).Does anyone have a cheat sheet on how to do this?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your reply.</description>
      <pubDate>Wed, 13 Oct 2004 12:59:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399417#M200479</guid>
      <dc:creator>roger_101</dc:creator>
      <dc:date>2004-10-13T12:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399418#M200480</link>
      <description>Roger,&lt;BR /&gt;&lt;BR /&gt;You could start with the man page for sa1.  Things are pretty well explained there.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 13 Oct 2004 13:03:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399418#M200480</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-10-13T13:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399419#M200481</link>
      <description>Dear Roger,&lt;BR /&gt;&lt;BR /&gt;Try the below script.&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;LOGDIR="/tmp/stats"&lt;BR /&gt;LOGFILE="${LOGDIR}/sar_`hostname`.`date +'%d%m%y'`"&lt;BR /&gt;&lt;BR /&gt;SARCMD=/usr/sbin/sar&lt;BR /&gt;SAROPTS="-udgpqr"&lt;BR /&gt;&lt;BR /&gt;# Interval in seconds (5 minutes below)&lt;BR /&gt;&lt;BR /&gt;INTERVAL=300&lt;BR /&gt;&lt;BR /&gt;TOTALSECSINDAY=86400&lt;BR /&gt;&lt;BR /&gt;NTIMES=`expr ${TOTALSECSINDAY} / ${INTERVAL}`&lt;BR /&gt;&lt;BR /&gt;$SARCMD $SAROPTS -o $LOGFILE $INTERVAL $NTIMES &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;With Regards&lt;BR /&gt;&lt;BR /&gt;Harry&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Oct 2004 13:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399419#M200481</guid>
      <dc:creator>harry_7</dc:creator>
      <dc:date>2004-10-13T13:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399420#M200482</link>
      <description>You can do both with vmstat&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or, install mrtg&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://people.ee.ethz.ch/~oetiker/webtools/mrtg/" target="_blank"&gt;http://people.ee.ethz.ch/~oetiker/webtools/mrtg/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or - if you have perfview/glance installed:&lt;BR /&gt;&lt;BR /&gt;From cron:&lt;BR /&gt;&lt;BR /&gt;# performance&lt;BR /&gt;55 23 * * 1-5 /opt/perf/bin/extract -xp -r /home/gwild/zgbltemplate -g -b today 7:00 -e today 18:00 -f stdout | /bin/mailx -s 'svr100 performance report' gwild@mydomain.com &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cat /home/gwild/zgbltemplate&lt;BR /&gt;REPORT "MWA Export on !SYSTEM_ID"&lt;BR /&gt;FORMAT ASCII&lt;BR /&gt;HEADINGS ON&lt;BR /&gt;SEPARATOR="|"&lt;BR /&gt;SUMMARY=60&lt;BR /&gt;MISSING=0&lt;BR /&gt;DATA TYPE GLOBAL&lt;BR /&gt;YEAR&lt;BR /&gt;DATE&lt;BR /&gt;TIME&lt;BR /&gt;GBL_CPU_TOTAL_UTIL&lt;BR /&gt;GBL_MEM_UTIL&lt;BR /&gt;GBL_SWAP_SPACE_UTIL&lt;BR /&gt;GBL_MEM_CACHE_HIT_PCT&lt;BR /&gt;GBL_DISK_UTIL_PEAK&lt;BR /&gt;GBL_FS_SPACE_UTIL_PEAK&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Oct 2004 13:06:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399420#M200482</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-10-13T13:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399421#M200483</link>
      <description>You could run the scripts I'm attaching for a time period you select via cron once a week.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 13 Oct 2004 13:06:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399421#M200483</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-10-13T13:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399422#M200484</link>
      <description>In the root's crontab (ensure permissions/ownerships are OK) or the adm's crontab, put this entry. This will collect sys statistics q15min.&lt;BR /&gt;0,15,30,45 * * * * /usr/lib/sa/sa1&lt;BR /&gt;&lt;BR /&gt;In the root's crontab I am parsing and converting the sa1 binary output to ASCII output to read the values.&lt;BR /&gt;&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;I am attaching the get_sars script. It will provide ASCII data q15min and put it into the directory structure listed in the script. Modify for your uses.&lt;BR /&gt;&lt;BR /&gt;I have this generating daily but you can change to be monthly as your needs dictate.</description>
      <pubDate>Wed, 13 Oct 2004 15:35:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399422#M200484</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2004-10-13T15:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: sar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399423#M200485</link>
      <description>Hi Roger,&lt;BR /&gt;&lt;BR /&gt;If you spend some money, Glance+ pak (available as trial pack in Application CDs) can help you in quite a few ways. It can gather the data, report it (measureware) and you can view runtime performance (glance). If you go bit further, you can add Perfview to it that can be used to view data graphically both current and historical on multiple servers.&lt;BR /&gt;&lt;BR /&gt;Also check 'sarcheck.com' for the tool sarcheck. It's available for a low price.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 13 Oct 2004 16:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sar/m-p/3399423#M200485</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-13T16:17:15Z</dc:date>
    </item>
  </channel>
</rss>

