<?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: Truncated ps in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070884#M809308</link>
    <description>Sounds like you are running 11.11.&lt;BR /&gt;&lt;BR /&gt;If so, check out 'ps' cmd patch PHCO_29042, released July2003.&lt;BR /&gt;&lt;BR /&gt;There is a defect in 'ps -x' fixed in this patch that sounds like what you describe.</description>
    <pubDate>Fri, 19 Sep 2003 20:55:54 GMT</pubDate>
    <dc:creator>Scot Bean</dc:creator>
    <dc:date>2003-09-19T20:55:54Z</dc:date>
    <item>
      <title>Truncated ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070876#M809300</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;To verify if processes are running I use the ps command redirected in a file (ps -exf &amp;gt; file). After some false positives I discovered that sometimes the output of the ps command was truncated after a process without name (see example below).&lt;BR /&gt;Have somebody any idea to explain that?&lt;BR /&gt;&lt;BR /&gt;    root  2936     1  0  Sep  1  ?         0:25 /usr/sbin/stm/uut/bin/tools/monitor/dm_stape&lt;BR /&gt;    root  3009     1  0  Sep  1  ?         2:44 /usr/sbin/stm/uut/bin/tools/monitor/lpmc_em&lt;BR /&gt;    root  2989  1362  0  Sep  1  ?         0:58 /opt/perf/bin/agdbserver -t alarmgen /var/opt/perf/datafiles/&lt;BR /&gt;    root 14226 14195  1 19:35:56 ?         0:00</description>
      <pubDate>Mon, 15 Sep 2003 08:05:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070876#M809300</guid>
      <dc:creator>Sylvain CROUET</dc:creator>
      <dc:date>2003-09-15T08:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070877#M809301</link>
      <description>Ive checked these same processes on my servers and get same output - I dont believe they are not chopped off. There is no more output to display.&lt;BR /&gt;&lt;BR /&gt;eg. /opt/perf/bin/agdbserver -t alarmgen /var/opt/perf/datafiles &lt;BR /&gt;&lt;BR /&gt;is the complete command this process was started with - nothing is missing.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 08:09:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070877#M809301</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-09-15T08:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070878#M809302</link>
      <description>I assume you're talking about the last process in this list (pid 14226) with no command listed at all.&lt;BR /&gt;&lt;BR /&gt;It is actually possible for applications to change their "process title" as it appears in the "args" field of ps -ef output by using an undocumented option to the pstat() system call.  Sendmail and Oracle do this all the time so you can see what the processes are up to.&lt;BR /&gt;&lt;BR /&gt;In your case you've got a program that looks like is setting its process title to an empty string.  It *could* also be a small bug in the program thats not calling the exec() system call properly.  Try the following:&lt;BR /&gt;&lt;BR /&gt;* Check what the processes parent is (pid 14195).  Something is spawning these "unnamed" processes and hopefully it has a name.&lt;BR /&gt;&lt;BR /&gt;* Run ps without the -f argument (ie just ps -e).  That will give you the basename of the command running instead of its full command line arguments.&lt;BR /&gt;&lt;BR /&gt;* Use lsof to find out the full path to the program that is running.  This is the line marked with "txt" as the fd.&lt;BR /&gt;&lt;BR /&gt;That should tell you what the process is and you can go from there.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Mon, 15 Sep 2003 08:54:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070878#M809302</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2003-09-15T08:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070879#M809303</link>
      <description>It is defined here as COMMAND field to 64 characters&lt;BR /&gt;/usr/include/sys/pstat.h:&lt;BR /&gt;#define PST_CLEN 64&lt;BR /&gt;&lt;BR /&gt;If you are running 11.0&lt;BR /&gt;&lt;BR /&gt;load this patch &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_26274&amp;amp;context=hpux:800:11:00" target="_blank"&gt;http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_26274&amp;amp;context=hpux:800:11:00&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you are running 11i &lt;BR /&gt;&lt;BR /&gt;just use the -x option&lt;BR /&gt;#ps -efx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 15 Sep 2003 09:13:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070879#M809303</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-09-15T09:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070880#M809304</link>
      <description>Following Steven idea I tried this command:&lt;BR /&gt;  ps -exf &amp;gt; file1 &amp;amp; ps -ef &amp;gt; file2&lt;BR /&gt;As the problem happens randomly I have waited a while and when it happened file1 was incomplete and file 2 was complete. The process corresponding to the last one of file1 was 'cp'.&lt;BR /&gt;May it be possible that ps has a bug with the -x option ?</description>
      <pubDate>Mon, 15 Sep 2003 15:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070880#M809304</guid>
      <dc:creator>Sylvain CROUET</dc:creator>
      <dc:date>2003-09-15T15:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070881#M809305</link>
      <description>I noticed that you are using ps without grepping anyting...I would use grep to pick out the named processes you are interested in.&lt;BR /&gt;&lt;BR /&gt;My guess is the output of ps is truncated b/c your output is to long or is not being full captured by &amp;gt; file1...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would try:&lt;BR /&gt;&lt;BR /&gt;ps -exf |grep &lt;PROC&gt; &amp;gt;file1&lt;BR /&gt;&lt;BR /&gt;I will bet you will see the full ps listed.&lt;/PROC&gt;</description>
      <pubDate>Tue, 16 Sep 2003 19:00:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070881#M809305</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-09-16T19:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070882#M809306</link>
      <description>Well, I do not use any grep command directly after the ps command, but do use grep commands on the ps generated file. As I look for several processes with the same script, I do not want to run the ps command too often.</description>
      <pubDate>Wed, 17 Sep 2003 05:11:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070882#M809306</guid>
      <dc:creator>Sylvain CROUET</dc:creator>
      <dc:date>2003-09-17T05:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070883#M809307</link>
      <description>my point is that there may be a buffer overflow when capturing the whole ps -exf output...&lt;BR /&gt;&lt;BR /&gt;By only grepping out what processes you are interested in, you will ensure that will not happen and probably prevent the truncation of your output. &lt;BR /&gt;&lt;BR /&gt;:)</description>
      <pubDate>Fri, 19 Sep 2003 15:05:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070883#M809307</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-09-19T15:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated ps</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070884#M809308</link>
      <description>Sounds like you are running 11.11.&lt;BR /&gt;&lt;BR /&gt;If so, check out 'ps' cmd patch PHCO_29042, released July2003.&lt;BR /&gt;&lt;BR /&gt;There is a defect in 'ps -x' fixed in this patch that sounds like what you describe.</description>
      <pubDate>Fri, 19 Sep 2003 20:55:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/truncated-ps/m-p/3070884#M809308</guid>
      <dc:creator>Scot Bean</dc:creator>
      <dc:date>2003-09-19T20:55:54Z</dc:date>
    </item>
  </channel>
</rss>

