<?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: How to monitor a UNIX process? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481043#M213364</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Or put a wrapper around the perl binary.&lt;BR /&gt;&lt;BR /&gt;1. Basically rename the perl binary.&lt;BR /&gt;mv /usr/bin/perl /usr/bin/perl_&lt;BR /&gt;2. Create a script called perl in the same dir as the perl binary&lt;BR /&gt;&lt;BR /&gt;!#/bin/sh&lt;BR /&gt;echo `who am i` &amp;gt;&amp;gt; /var/tmp/perlusage.log&lt;BR /&gt;/usr/bin/perl $*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3. and make it executable with &lt;BR /&gt;chmod a+x perl&lt;BR /&gt;4. Create the initial logfile&lt;BR /&gt;touch /var/tmp/perlusage.log&lt;BR /&gt;5. and make sure the log file does not fill up your /var/tmp....&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bob&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Feb 2005 10:21:10 GMT</pubDate>
    <dc:creator>B. Hulst</dc:creator>
    <dc:date>2005-02-08T10:21:10Z</dc:date>
    <item>
      <title>How to monitor a UNIX process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481039#M213360</link>
      <description>Hello colleagues,&lt;BR /&gt;I should monitor the PERL interpreter on my platform, in order to gather data on its usage: who call it, how many times it's called, ....&lt;BR /&gt;Is there any utility to do it?&lt;BR /&gt;something like "monitor process_image log_file"&lt;BR /&gt;thanks&lt;BR /&gt;Enrico</description>
      <pubDate>Tue, 08 Feb 2005 09:49:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481039#M213360</guid>
      <dc:creator>Enrico Venturi</dc:creator>
      <dc:date>2005-02-08T09:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor a UNIX process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481040#M213361</link>
      <description>Hi Enrico,&lt;BR /&gt;&lt;BR /&gt;Do you have Glance?  You can set up filters to select just the processes you're interested in. Or you can set up MeasureWare to run reports for you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 08 Feb 2005 09:54:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481040#M213361</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-02-08T09:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor a UNIX process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481041#M213362</link>
      <description>No, I haven't such tools.... :-(</description>
      <pubDate>Tue, 08 Feb 2005 09:57:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481041#M213362</guid>
      <dc:creator>Enrico Venturi</dc:creator>
      <dc:date>2005-02-08T09:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor a UNIX process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481042#M213363</link>
      <description>Enrico,&lt;BR /&gt;on the simplest level you could use&lt;BR /&gt; &lt;BR /&gt;ps -ef | grep -i perl | grep -v grep&lt;BR /&gt;on a script basis&lt;BR /&gt;&lt;BR /&gt;or a the most complex something like:&lt;BR /&gt;&lt;A href="http://ovweb.external.hp.com/ovnsmdps/pdf/os_spi_admin.pdf" target="_blank"&gt;http://ovweb.external.hp.com/ovnsmdps/pdf/os_spi_admin.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Glance would be probably be the best suited, but has to be installed.&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 08 Feb 2005 10:13:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481042#M213363</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-02-08T10:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor a UNIX process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481043#M213364</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Or put a wrapper around the perl binary.&lt;BR /&gt;&lt;BR /&gt;1. Basically rename the perl binary.&lt;BR /&gt;mv /usr/bin/perl /usr/bin/perl_&lt;BR /&gt;2. Create a script called perl in the same dir as the perl binary&lt;BR /&gt;&lt;BR /&gt;!#/bin/sh&lt;BR /&gt;echo `who am i` &amp;gt;&amp;gt; /var/tmp/perlusage.log&lt;BR /&gt;/usr/bin/perl $*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3. and make it executable with &lt;BR /&gt;chmod a+x perl&lt;BR /&gt;4. Create the initial logfile&lt;BR /&gt;touch /var/tmp/perlusage.log&lt;BR /&gt;5. and make sure the log file does not fill up your /var/tmp....&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bob&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Feb 2005 10:21:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481043#M213364</guid>
      <dc:creator>B. Hulst</dc:creator>
      <dc:date>2005-02-08T10:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor a UNIX process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481044#M213365</link>
      <description>Then you need to purchase it if you want to monitor at that level.&lt;BR /&gt;&lt;BR /&gt;get and evaluation copy from: &lt;A href="http://managementsoftware.hp.com/products/ovperf/tc_ovperf_0001.html" target="_blank"&gt;http://managementsoftware.hp.com/products/ovperf/tc_ovperf_0001.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 08 Feb 2005 10:22:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481044#M213365</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-08T10:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor a UNIX process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481045#M213366</link>
      <description>I'd try to do a simple thing like putting a wrapper or a global alias around the perl binary.&lt;BR /&gt;The drawback is that this is kind of a hack which needs to be documented, but I think using an alias is less intrusive.&lt;BR /&gt;&lt;BR /&gt;i.e. like in the following example - which is BAD[1] and does it wrong [2] :)&lt;BR /&gt;&lt;BR /&gt;mv /usr/bin/perl /usr/bin/perl.bin&lt;BR /&gt;echo "time /usr/bin/perl $@ | tee -a /tmp/perl.log" &amp;gt; /usr/bin/perl &lt;BR /&gt;&lt;BR /&gt;[1]&lt;BR /&gt;The output is messy as Your log contains the script output which YOU don't need, and Your users get to read the cpu-time info THEY don't need. &lt;BR /&gt;[2]&lt;BR /&gt;errr - YOU get script output, but not the cpu times and THEY get both.&lt;BR /&gt;&lt;BR /&gt;But this means that the time command uses a different way of outputting it's information and if You find out how it's doing that, You can catch only the time output.&lt;BR /&gt;&lt;BR /&gt;Maybe You can make something out it.&lt;BR /&gt;&lt;BR /&gt;The regular way would be using some way of cpu-time accounting like on mainframes or compute clusters, but I've never seen such how such a thing is set up, even less on hp-ux.&lt;BR /&gt;&lt;BR /&gt;Anybody?</description>
      <pubDate>Tue, 08 Feb 2005 10:27:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481045#M213366</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-02-08T10:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor a UNIX process?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481046#M213367</link>
      <description>Awww, I can't read today.&lt;BR /&gt;&lt;BR /&gt;If You only need to see who's calling it, go with a wrapper and trace the PPID's process name and terminal, this should be enough data.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Feb 2005 10:29:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-monitor-a-unix-process/m-p/3481046#M213367</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-02-08T10:29:58Z</dc:date>
    </item>
  </channel>
</rss>

