<?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: dead login sessions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664336#M242561</link>
    <description>Shiv, you can set timeout variable in .profile for users. Other reasons are, particular process started by users, remain active and waiting for some I/O. (This is because of bad programming practices) &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
    <pubDate>Fri, 04 Nov 2005 02:50:11 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2005-11-04T02:50:11Z</dc:date>
    <item>
      <title>dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664334#M242559</link>
      <description>Dear Sirs,&lt;BR /&gt;&lt;BR /&gt;Sometime after loging out from the servers the session remains active. &lt;BR /&gt;&lt;BR /&gt;After few days we notice there are lots of sessions.&lt;BR /&gt;&lt;BR /&gt;I am aware of that if we are not coming out by typing "exit" command then session may remain active.&lt;BR /&gt;&lt;BR /&gt;Can anyone suggest what are the other reasons of remaining these login sessions active ? How to fix this ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Fri, 04 Nov 2005 02:32:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664334#M242559</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-11-04T02:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664335#M242560</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;if u mean idle sessions, u may like to enforce a timeout in either individual or all accounts.&lt;BR /&gt;&lt;BR /&gt;if u mean hanged/defunct/zombie sessions, these r sessions which may die eventually. however, if u r very sure that the session may be "killed", go ahead and "kill".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Fri, 04 Nov 2005 02:44:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664335#M242560</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2005-11-04T02:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664336#M242561</link>
      <description>Shiv, you can set timeout variable in .profile for users. Other reasons are, particular process started by users, remain active and waiting for some I/O. (This is because of bad programming practices) &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Fri, 04 Nov 2005 02:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664336#M242561</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-11-04T02:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664337#M242562</link>
      <description>It is because of improper logout and session hanging etc. To cotrol this, you can set TMOUT Variable in /etc/profile.&lt;BR /&gt;&lt;BR /&gt;         TMOUT          If set to a value greater than zero, the shell&lt;BR /&gt;                        terminates if a command is not entered within the&lt;BR /&gt;                        prescribed number of seconds after issuing the PS1&lt;BR /&gt;                        prompt.&lt;BR /&gt;&lt;BR /&gt;Another way is to calculate IDLE time with w command execution. Make a script and execute it with cron to check unused sessions.&lt;BR /&gt;&lt;BR /&gt;-Muthu&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Nov 2005 02:55:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664337#M242562</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-04T02:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664338#M242563</link>
      <description>Hi Shivkumar,&lt;BR /&gt;&lt;BR /&gt;If the session are not exited properly, then they may be left has hanging sessions. &lt;BR /&gt;&lt;BR /&gt;You can force a terminal to log out after a period of inactivity by setting the TMOUT and TIMEOUT parameters in the /etc/profile file or the userâ  s profile in their home directory.&lt;BR /&gt;&lt;BR /&gt;The TMOUT parameter works in the ksh (Korn) shell, and the TIMEOUT parameter works in the bsh (Bourne) shell.&lt;BR /&gt;&lt;BR /&gt;To drop idle sessioon try using the shell variables such a TMOUT. The idle telnet session can be automatically cleared by setting the timeout value. A non-zero value specifies the number of minutes to wait before an idle telnet session is timed out. The minimum value is 1 minute, the maximum is 512640 minutes (1 year).&lt;BR /&gt;&lt;BR /&gt;For Example the following entries, in the .profile file, forces the terminal to log out after an hour of inactivity:&lt;BR /&gt;&lt;BR /&gt;TO=3600&lt;BR /&gt;echo "Setting Autologout to $TO"&lt;BR /&gt;TIMEOUT=$TO&lt;BR /&gt;TMOUT=$TO&lt;BR /&gt;export TIMEOUT TMOUT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Indira A</description>
      <pubDate>Fri, 04 Nov 2005 03:35:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664338#M242563</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-11-04T03:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664339#M242564</link>
      <description>hi shiv,&lt;BR /&gt;&lt;BR /&gt;please follow the guidelines by IA above.&lt;BR /&gt;&lt;BR /&gt;in the meanwhile, you can kill the old sessions by doing:&lt;BR /&gt;1. who -u|grep old&lt;BR /&gt;2. kill -9 &lt;PID&gt;&lt;BR /&gt;&lt;BR /&gt;good luck!&lt;BR /&gt;yogeeraj&lt;/PID&gt;</description>
      <pubDate>Fri, 04 Nov 2005 06:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664339#M242564</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-11-04T06:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664340#M242565</link>
      <description>old is made with who -u on sessions details If more than twenty-four hours have  elapsed or the line has not been used since boot time, the entry is marked old. &lt;BR /&gt;&lt;BR /&gt;It will be good when you want to kill sessions more than 24 hours. To control based on time then TMOUT / who -u's month and date details.&lt;BR /&gt;&lt;BR /&gt;~regards</description>
      <pubDate>Fri, 04 Nov 2005 06:18:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664340#M242565</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-04T06:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664341#M242566</link>
      <description>If you're intent is mostly to get rid of dead sessions, I would suggest a fairly high TMOUT value.&lt;BR /&gt;&lt;BR /&gt;As someone who likes to have multiple sessions open on a server, it gets irritating when I come back the next morning and all of my sessions have timed out.&lt;BR /&gt;&lt;BR /&gt;I probably would set your timeout to something large enough to span a couple of days, but that may not work for your environment.&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Nov 2005 07:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664341#M242566</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2005-11-04T07:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664342#M242567</link>
      <description>Are these simple telnet sessions initiated from PCs? If so, the standard /etc/profile has two trap statements that must be preserved. The first disables interrupts from CTRL-C and other kill signals such as hang-up. The second trap statement reenables normal trap behavior. Some sysadmins think this is a typo error and remove the last trap in /etc/profile. What this does is to disable the kernel's ability to terminate sessions which have become disconnected (known as a hang-up). Make sure that traps are enabled for these users. The command trap with no options will repoert on special handling.</description>
      <pubDate>Fri, 04 Nov 2005 09:21:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664342#M242567</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-11-04T09:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664343#M242568</link>
      <description>Hi Shiv , &lt;BR /&gt;&lt;BR /&gt;Before the process goes zombie and terminates abnormally , set TMOUT variable in /etc/profile that will close the session properly.&lt;BR /&gt;&lt;BR /&gt;TMOUT=value ; export TMOUT&lt;BR /&gt;&lt;BR /&gt;value is a numeric value in sec for timeouttime .&lt;BR /&gt;&lt;BR /&gt;Hope this will help.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Fri, 04 Nov 2005 09:31:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664343#M242568</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-11-04T09:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664344#M242569</link>
      <description>Bill, Yes. You are right. These connections are the telnet sessions initiated from the PCs using Reflection-X remote connection software tool. Please let me know exact command syntax to enter in the /etc/profile file.&lt;BR /&gt;&lt;BR /&gt;best regards,&lt;BR /&gt;Shiv</description>
      <pubDate>Sat, 05 Nov 2005 01:01:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664344#M242569</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-11-05T01:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: dead login sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664345#M242570</link>
      <description>hi shiv,&lt;BR /&gt;&lt;BR /&gt;at the start of your /etc/profile, you should have the following lines:&lt;BR /&gt;&lt;BR /&gt;# Ignore HUP, INT, QUIT now.&lt;BR /&gt;        trap "" 1 2 3&lt;BR /&gt;&lt;BR /&gt;then at the end:&lt;BR /&gt;# Leave defaults in user environment.&lt;BR /&gt;   trap 1 2 3&lt;BR /&gt;&lt;BR /&gt;hope this helps too!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Sat, 05 Nov 2005 02:16:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dead-login-sessions/m-p/3664345#M242570</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-11-05T02:16:44Z</dc:date>
    </item>
  </channel>
</rss>

