<?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: CPU UTILIZATION in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization/m-p/2960003#M118093</link>
    <description>thanx James,&lt;BR /&gt;&lt;BR /&gt;The top commad work perfect,&lt;BR /&gt;but the ps -ef giving wrong process.</description>
    <pubDate>Sun, 27 Apr 2003 08:55:29 GMT</pubDate>
    <dc:creator>Rana_2</dc:creator>
    <dc:date>2003-04-27T08:55:29Z</dc:date>
    <item>
      <title>CPU UTILIZATION</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization/m-p/2960001#M118091</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;I need same help on extracting process that consuming higher percentage of cpu using top command &lt;BR /&gt;&lt;BR /&gt;plz,I NEED THIS IN SHELL SCRIPTING (hp-ux 11)</description>
      <pubDate>Sun, 27 Apr 2003 05:34:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization/m-p/2960001#M118091</guid>
      <dc:creator>Rana_2</dc:creator>
      <dc:date>2003-04-27T05:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: CPU UTILIZATION</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization/m-p/2960002#M118092</link>
      <description>Hi Rana,&lt;BR /&gt;&lt;BR /&gt;If you really need to use top you could write the script like :&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;TEMPFILE=/var/tmp/top.$$&lt;BR /&gt;&lt;BR /&gt;top -n1 -f $TEMPFILE&lt;BR /&gt;&lt;BR /&gt;cat $TEMPFILE | tail -2 |  awk '{print $12,$13}'&lt;BR /&gt;&lt;BR /&gt;rm $TEMPFILE&lt;BR /&gt;&lt;BR /&gt;However, this will be a lot slower than something like :&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;export UNIX95=XPG4&lt;BR /&gt;&lt;BR /&gt;ps -efo pcpu,comm |  sort -r |   head -2&lt;BR /&gt;&lt;BR /&gt;Simply because of the amount of data top has to collect and the IO taking place. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.</description>
      <pubDate>Sun, 27 Apr 2003 08:04:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization/m-p/2960002#M118092</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2003-04-27T08:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: CPU UTILIZATION</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization/m-p/2960003#M118093</link>
      <description>thanx James,&lt;BR /&gt;&lt;BR /&gt;The top commad work perfect,&lt;BR /&gt;but the ps -ef giving wrong process.</description>
      <pubDate>Sun, 27 Apr 2003 08:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization/m-p/2960003#M118093</guid>
      <dc:creator>Rana_2</dc:creator>
      <dc:date>2003-04-27T08:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: CPU UTILIZATION</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization/m-p/2960004#M118094</link>
      <description>Hi Rana,&lt;BR /&gt;&lt;BR /&gt;The output may be different every time you run this as it only reports the process using the highest percentage of the CPU in that interval. There was an issue with the ps command on 11.00, fixed with the following patch:&lt;BR /&gt;&lt;BR /&gt;PHCO_18446  s700_800 11.00 ps(1) cumulative patch&lt;BR /&gt;&lt;BR /&gt;This patch has no dependencies and does not require a reboot. However, the latest and recommended ps patch is PHCO_26274 and has a couple of dependencies, which will require a reboot if the kernel dependencies are not already installed.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.</description>
      <pubDate>Sun, 27 Apr 2003 13:53:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization/m-p/2960004#M118094</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2003-04-27T13:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: CPU UTILIZATION</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization/m-p/2960005#M118095</link>
      <description>Here is a handy shell script to collect performance data on your system.  It can be adapted to whatever time period you wish and runs background. ATTACHED&lt;BR /&gt;&lt;BR /&gt;I've had the same issue as the patches noted above me in the thread, getting those patches in and the March 2003 Quality Pack are a good idea.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 27 Apr 2003 17:21:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-utilization/m-p/2960005#M118095</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-04-27T17:21:52Z</dc:date>
    </item>
  </channel>
</rss>

