<?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: Pocess tracking in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644250#M44495</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please do not hold me to this, but I am faily sure that "sar" should allow you to monitor and log the CPU usage into a text file that can then be used with something like xplot or the like.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.....</description>
    <pubDate>Mon, 14 Jan 2002 14:00:10 GMT</pubDate>
    <dc:creator>Alex Green</dc:creator>
    <dc:date>2002-01-14T14:00:10Z</dc:date>
    <item>
      <title>Pocess tracking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644247#M44492</link>
      <description>Dear all,&lt;BR /&gt;I would like to track the CPU occupation from a single process, something like top output in the time.&lt;BR /&gt;PerfView shows only global CPU utilization versus time, not single process occupation; instead GlancePlus shows only instant CPU occupation for processes but doesn't save data!&lt;BR /&gt;Thus, how to get CPU occupation form a process versus time?&lt;BR /&gt;Thanx in advance&lt;BR /&gt;Roberto</description>
      <pubDate>Mon, 14 Jan 2002 13:28:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644247#M44492</guid>
      <dc:creator>Roberto Volsa</dc:creator>
      <dc:date>2002-01-14T13:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pocess tracking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644248#M44493</link>
      <description>&lt;BR /&gt;The accurate way to measure this is to use another HP product called PerfView along with MeasureWare which logs all data to files then you can graph the results over any period of time. It has a massive amount of detail.&lt;BR /&gt;&lt;BR /&gt;If you want to use top though simply do something like;&lt;BR /&gt;&lt;BR /&gt;top -d &lt;COUNT&gt;  &amp;gt;/tmp/&lt;TEMPFILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;Then when its finished to;&lt;BR /&gt;&lt;BR /&gt;strings /tmp/&lt;TEMPFILENAME&gt; | grep &lt;PROCESSNAME or="" pid=""&gt;&lt;BR /&gt;&lt;BR /&gt;This will show results like;&lt;BR /&gt;&lt;BR /&gt;[5C41:33  0.16  0.16 midaemon&lt;BR /&gt;[5C41:33  0.13  0.12 midaemon&lt;BR /&gt;[5C41:33  0.15  0.15 midaemon&lt;BR /&gt;[5C41:33  0.16  0.16 midaemon&lt;BR /&gt;[5C41:33  0.13  0.13 midaemon&lt;BR /&gt;&lt;BR /&gt;Ignore the leftovers of control characters at the start of each line, but you can see the cpu percentages for the midaemon process and you can then pipe them into a script to total if needed.&lt;BR /&gt;&lt;/PROCESSNAME&gt;&lt;/TEMPFILENAME&gt;&lt;/TEMPFILENAME&gt;&lt;/COUNT&gt;</description>
      <pubDate>Mon, 14 Jan 2002 13:47:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644248#M44493</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-01-14T13:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pocess tracking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644249#M44494</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;You can use the hidden -f switch of top:&lt;BR /&gt;&lt;BR /&gt;# top -d 3 -f /tmp/fred99&lt;BR /&gt;# grep top /tmp/fred99&lt;BR /&gt;  q9 20922 root     178 20   352K   192K run      0:00  1.03  0.23 top&lt;BR /&gt;  q9 20922 root     178 20   352K   324K run      0:00  0.75  0.30 top&lt;BR /&gt;  q9 20922 root     178 20   352K   324K run      0:00  0.59  0.31 top&lt;BR /&gt;&lt;BR /&gt;Obviously you can then format this to suit.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Mon, 14 Jan 2002 13:53:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644249#M44494</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-01-14T13:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pocess tracking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644250#M44495</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please do not hold me to this, but I am faily sure that "sar" should allow you to monitor and log the CPU usage into a text file that can then be used with something like xplot or the like.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.....</description>
      <pubDate>Mon, 14 Jan 2002 14:00:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644250#M44495</guid>
      <dc:creator>Alex Green</dc:creator>
      <dc:date>2002-01-14T14:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pocess tracking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644251#M44496</link>
      <description>Stefan,&lt;BR /&gt;PerfView is installed, but it shows only global CPU utilization, not CPU per process.&lt;BR /&gt;Do you know how to get per process utilization?&lt;BR /&gt;Thanx&lt;BR /&gt;Roberto</description>
      <pubDate>Mon, 14 Jan 2002 14:05:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644251#M44496</guid>
      <dc:creator>Roberto Volsa</dc:creator>
      <dc:date>2002-01-14T14:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pocess tracking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644252#M44497</link>
      <description>I believe with sar, the following should do this.&lt;BR /&gt;&lt;BR /&gt;If the cpu command in HP.config is the following: &lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;id=cpu&lt;BR /&gt;command=/usr/sbin/sar -M 3 | cut -b9-80&lt;BR /&gt;wait=4&lt;BR /&gt;idle=5&lt;BR /&gt;startLine=5&lt;BR /&gt;cpu=1&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;This will result in the sar output to look like the following: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;r-mag B.11.00 A 9000/869    08/15/01&lt;BR /&gt;     cpu    %usr    %sys    %wio   %idle&lt;BR /&gt;       0      44      12       2      42&lt;BR /&gt;       1      87      10       0       2&lt;BR /&gt;       2      94       2       0       3&lt;BR /&gt;       3     100       0       0       0&lt;BR /&gt;  system      81       6       1      12&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jan 2002 14:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644252#M44497</guid>
      <dc:creator>Alex Green</dc:creator>
      <dc:date>2002-01-14T14:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pocess tracking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644253#M44498</link>
      <description>Apologies... notes I had were for SiteScope, please ignore my previous post.&lt;BR /&gt;&lt;BR /&gt;Thnx</description>
      <pubDate>Mon, 14 Jan 2002 14:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644253#M44498</guid>
      <dc:creator>Alex Green</dc:creator>
      <dc:date>2002-01-14T14:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pocess tracking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644254#M44499</link>
      <description>Open up PerfView - Select a scope and metric - draw a graph -  Go to Show in the headers of the graph - then drill down [ select Drill to: process ] and you should see the information you are looking for.  Unfortunately this cannot be run from the command line.</description>
      <pubDate>Mon, 14 Jan 2002 16:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pocess-tracking/m-p/2644254#M44499</guid>
      <dc:creator>Thom Cornwell</dc:creator>
      <dc:date>2002-01-14T16:13:55Z</dc:date>
    </item>
  </channel>
</rss>

