<?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: Improper logout from telnet session pegs cpu utilization in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205529#M464115</link>
    <description>This sounds like /etc/profile or .profile have trapped the SIGHUP signal and are ignoring it. The following /etc/profile line is normal in all HP-UX versions:&lt;BR /&gt; &lt;BR /&gt;trap "" 1 2 3&lt;BR /&gt; &lt;BR /&gt;This command disables QUIT INT and HUP signals. This prevents a login session from aborting in the middle of the profile script. HOWEVER, it is imperative that the following line is also in /etc/profile at the end of the file:&lt;BR /&gt; &lt;BR /&gt;trap 1 2 3&lt;BR /&gt; &lt;BR /&gt;They look almost identical but are VERY different. The first has "" as the action to take for the listed signal numbers -- which is: do nothing (ignore).&lt;BR /&gt; &lt;BR /&gt;The second form restores normal operation. When your scanner guns do not logout but simply disconnect from the network (like power off) then a Hang-UP event has occurred. Normally, HP-UX will then terminate the session. But if the HUP signal has been trapped and assigned "" (which means do nothing) then the session will hang and consume CPU cycles as the shell tries to talk to the non-existent device.&lt;BR /&gt; &lt;BR /&gt;To see if traps are enabled, put this line into the scanner login files (ie, .profile):&lt;BR /&gt; &lt;BR /&gt;logger "Active traps: \"$(trap)\""&lt;BR /&gt;</description>
    <pubDate>Fri, 23 Oct 2009 02:36:58 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2009-10-23T02:36:58Z</dc:date>
    <item>
      <title>Improper logout from telnet session pegs cpu utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205526#M464112</link>
      <description>We use scanner guns that telnet into our HP-UX servers.  If the users do not log out of the sessions properly sometimes the session stays active and in some cases the ksh process hammers the CPU utilization above 90 percent and isn't doing anything.  Idle timeout will not work because the system is seeing it as doing something.  Does anyone have any suggestions for correcting this issue?</description>
      <pubDate>Thu, 22 Oct 2009 14:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205526#M464112</guid>
      <dc:creator>Paul Maglinger</dc:creator>
      <dc:date>2009-10-22T14:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Improper logout from telnet session pegs cpu utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205527#M464113</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;You can use a UNIX95 ps feature to identify such processes and kill them.&lt;BR /&gt;&lt;BR /&gt;This is really an application problem.&lt;BR /&gt;&lt;BR /&gt;For safety, see that a recent system QPK is installed or telnet patch is available from &lt;A href="http://itrc.hp.com" target="_blank"&gt;http://itrc.hp.com&lt;/A&gt; Patch HP-UX&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 22 Oct 2009 15:34:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205527#M464113</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-10-22T15:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Improper logout from telnet session pegs cpu utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205528#M464114</link>
      <description>Thanks for the reply.  I've been using the ps command to find and kill off the offending processes.  I pretty much determined that it was an application problem.  I was hoping to come up with a solution on the administration side until it was fixed on the development side.</description>
      <pubDate>Thu, 22 Oct 2009 15:41:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205528#M464114</guid>
      <dc:creator>Paul Maglinger</dc:creator>
      <dc:date>2009-10-22T15:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Improper logout from telnet session pegs cpu utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205529#M464115</link>
      <description>This sounds like /etc/profile or .profile have trapped the SIGHUP signal and are ignoring it. The following /etc/profile line is normal in all HP-UX versions:&lt;BR /&gt; &lt;BR /&gt;trap "" 1 2 3&lt;BR /&gt; &lt;BR /&gt;This command disables QUIT INT and HUP signals. This prevents a login session from aborting in the middle of the profile script. HOWEVER, it is imperative that the following line is also in /etc/profile at the end of the file:&lt;BR /&gt; &lt;BR /&gt;trap 1 2 3&lt;BR /&gt; &lt;BR /&gt;They look almost identical but are VERY different. The first has "" as the action to take for the listed signal numbers -- which is: do nothing (ignore).&lt;BR /&gt; &lt;BR /&gt;The second form restores normal operation. When your scanner guns do not logout but simply disconnect from the network (like power off) then a Hang-UP event has occurred. Normally, HP-UX will then terminate the session. But if the HUP signal has been trapped and assigned "" (which means do nothing) then the session will hang and consume CPU cycles as the shell tries to talk to the non-existent device.&lt;BR /&gt; &lt;BR /&gt;To see if traps are enabled, put this line into the scanner login files (ie, .profile):&lt;BR /&gt; &lt;BR /&gt;logger "Active traps: \"$(trap)\""&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Oct 2009 02:36:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205529#M464115</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-10-23T02:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Improper logout from telnet session pegs cpu utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205530#M464116</link>
      <description>I checked the /etc/profile and both entries are in there.  That being the case, would the additional logging provide useful information?  Would the same trap entries need to be in the .profile as well?</description>
      <pubDate>Fri, 23 Oct 2009 12:19:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205530#M464116</guid>
      <dc:creator>Paul Maglinger</dc:creator>
      <dc:date>2009-10-23T12:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Improper logout from telnet session pegs cpu utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205531#M464117</link>
      <description>The first trap entry is to ensure that lines in /etc/profile are always run and the user cannot escape the script. At the end, the traps are re-enabled. If your scanner actually logs in and runs /etc/profile and .profile, put the logger statement at the end of both files. If you get nothing, then the login is non-standard and you'll need to debug the login manually. Typing the trap command at a shell prompt will show you the exceptions.&lt;BR /&gt; &lt;BR /&gt;Does this login use a special shell?</description>
      <pubDate>Fri, 23 Oct 2009 23:37:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205531#M464117</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-10-23T23:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Improper logout from telnet session pegs cpu utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205532#M464118</link>
      <description>&amp;gt;in some cases the ksh process hammers the CPU&lt;BR /&gt;&lt;BR /&gt;So there are no child processes?  If none, it doesn't seem to be an application problem, since there is none at this time.  (Unless you consider a shell script or the scanner software to be an application?)&lt;BR /&gt;&lt;BR /&gt;Can you use tusc to see what is going on in the looping shell?</description>
      <pubDate>Sat, 24 Oct 2009 02:35:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205532#M464118</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-24T02:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Improper logout from telnet session pegs cpu utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205533#M464119</link>
      <description>Using a third party process monitoring tool to kill the process when it runs away.</description>
      <pubDate>Wed, 07 Jul 2010 12:50:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/improper-logout-from-telnet-session-pegs-cpu-utilization/m-p/5205533#M464119</guid>
      <dc:creator>Paul Maglinger</dc:creator>
      <dc:date>2010-07-07T12:50:04Z</dc:date>
    </item>
  </channel>
</rss>

