<?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: Script for logging performance monitoring in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921920#M109733</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;here you go&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;#Do this&lt;BR /&gt;#---------&lt;BR /&gt;/bin/rm /tmp/sarlis /tmp/toplis 2&amp;gt;/dev/null&lt;BR /&gt;top -d5 -n60 -f /tmp/toplis&amp;amp;&lt;BR /&gt;sar -A -o /tmp/sarlis 5 10 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;# &lt;BR /&gt;file=/tmp/sarlis&lt;BR /&gt;wait&lt;BR /&gt;xx="u d q b w c a y v m"&lt;BR /&gt;  for f in $xx&lt;BR /&gt;  do&lt;BR /&gt;    echo "sar -$f -f $file" &amp;gt;&amp;gt; /tmp/toplis&lt;BR /&gt;    echo "======================================================================&lt;BR /&gt;========" &amp;gt;&amp;gt; /tmp/toplis&lt;BR /&gt;    sar -$f -f $file &amp;gt;&amp;gt; /tmp/toplis&lt;BR /&gt;    echo "======================================================================&lt;BR /&gt;========" &amp;gt;&amp;gt; /tmp/toplis&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or go to&lt;BR /&gt;&lt;A href="http://www.introcomp.co.uk/examples/index.html" target="_blank"&gt;http://www.introcomp.co.uk/examples/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;there are plenty of example there&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                Steve Steel&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Mar 2003 10:48:47 GMT</pubDate>
    <dc:creator>Steve Steel</dc:creator>
    <dc:date>2003-03-07T10:48:47Z</dc:date>
    <item>
      <title>Script for logging performance monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921917#M109730</link>
      <description>Hi everyone,&lt;BR /&gt;I need an help to write a script to log to a txt the cpu, disk, network and the memory utilization day by day of an hpux 11.00 server.&lt;BR /&gt;Please do not respond me to install some software. I have to use only a script.&lt;BR /&gt;&lt;BR /&gt;Regards...&lt;BR /&gt;PSS&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Mar 2003 10:20:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921917#M109730</guid>
      <dc:creator>PSS SYS ADMIN</dc:creator>
      <dc:date>2003-03-07T10:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script for logging performance monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921918#M109731</link>
      <description>"sar" is your command, look at man sar&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;&lt;BR /&gt;sar -u 10 10 &amp;gt; file.txt&lt;BR /&gt;&lt;BR /&gt;writes 10 times all 10 seconds an output of CPU utilization to file.txt  &lt;BR /&gt;&lt;BR /&gt;cronjob:&lt;BR /&gt;&lt;BR /&gt;* * * * * sar -u 1 1 &amp;gt; file.txt&lt;BR /&gt;&lt;BR /&gt;writes every minute the CPU utilization to file.txt&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Mar 2003 10:47:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921918#M109731</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2003-03-07T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script for logging performance monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921919#M109732</link>
      <description>"sar" is your command, look at man sar&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;&lt;BR /&gt;sar -u 10 10 &amp;gt; file.txt&lt;BR /&gt;&lt;BR /&gt;writes 10 times all 10 seconds an output of CPU utilization to file.txt  &lt;BR /&gt;&lt;BR /&gt;cronjob:&lt;BR /&gt;&lt;BR /&gt;* * * * * sar -u 1 1 &amp;gt;&amp;gt; file.txt&lt;BR /&gt;&lt;BR /&gt;writes every minute the CPU utilization to file.txt&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Mar 2003 10:48:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921919#M109732</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2003-03-07T10:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Script for logging performance monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921920#M109733</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;here you go&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;#Do this&lt;BR /&gt;#---------&lt;BR /&gt;/bin/rm /tmp/sarlis /tmp/toplis 2&amp;gt;/dev/null&lt;BR /&gt;top -d5 -n60 -f /tmp/toplis&amp;amp;&lt;BR /&gt;sar -A -o /tmp/sarlis 5 10 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;# &lt;BR /&gt;file=/tmp/sarlis&lt;BR /&gt;wait&lt;BR /&gt;xx="u d q b w c a y v m"&lt;BR /&gt;  for f in $xx&lt;BR /&gt;  do&lt;BR /&gt;    echo "sar -$f -f $file" &amp;gt;&amp;gt; /tmp/toplis&lt;BR /&gt;    echo "======================================================================&lt;BR /&gt;========" &amp;gt;&amp;gt; /tmp/toplis&lt;BR /&gt;    sar -$f -f $file &amp;gt;&amp;gt; /tmp/toplis&lt;BR /&gt;    echo "======================================================================&lt;BR /&gt;========" &amp;gt;&amp;gt; /tmp/toplis&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or go to&lt;BR /&gt;&lt;A href="http://www.introcomp.co.uk/examples/index.html" target="_blank"&gt;http://www.introcomp.co.uk/examples/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;there are plenty of example there&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                Steve Steel&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Mar 2003 10:48:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921920#M109733</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-03-07T10:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script for logging performance monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921921#M109734</link>
      <description>Hi,&lt;BR /&gt;The most simple solution is to run commands as "bdf" and  "vmstat" from cron and output to a logfile ex:&lt;BR /&gt;&lt;BR /&gt;0,15,30,45 * * * * /usr/bin/vmstat &amp;gt;&amp;gt;/tmp/vmstat_log&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Mar 2003 10:50:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921921#M109734</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2003-03-07T10:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script for logging performance monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921922#M109735</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I had to do something similar so cobbled together a quick shell/awk script. &lt;BR /&gt;&lt;BR /&gt;Feel free to pick out anything useful from it.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Keely</description>
      <pubDate>Fri, 07 Mar 2003 10:52:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921922#M109735</guid>
      <dc:creator>Keely Jackson</dc:creator>
      <dc:date>2003-03-07T10:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script for logging performance monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921923#M109736</link>
      <description>Hi again &lt;BR /&gt;&lt;BR /&gt;Have a look at this thread, you will probably find something useful here. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x836cc1c4ceddd61190050090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x836cc1c4ceddd61190050090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;K</description>
      <pubDate>Fri, 07 Mar 2003 11:27:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-logging-performance-monitoring/m-p/2921923#M109736</guid>
      <dc:creator>Keely Jackson</dc:creator>
      <dc:date>2003-03-07T11:27:31Z</dc:date>
    </item>
  </channel>
</rss>

