- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- dead login sessions
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 06:32 PM
11-03-2005 06:32 PM
Sometime after loging out from the servers the session remains active.
After few days we notice there are lots of sessions.
I am aware of that if we are not coming out by typing "exit" command then session may remain active.
Can anyone suggest what are the other reasons of remaining these login sessions active ? How to fix this ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 06:44 PM
11-03-2005 06:44 PM
Re: dead login sessions
if u mean idle sessions, u may like to enforce a timeout in either individual or all accounts.
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".
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 06:50 PM
11-03-2005 06:50 PM
Re: dead login sessions
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 06:55 PM
11-03-2005 06:55 PM
SolutionTMOUT If set to a value greater than zero, the shell
terminates if a command is not entered within the
prescribed number of seconds after issuing the PS1
prompt.
Another way is to calculate IDLE time with w command execution. Make a script and execute it with cron to check unused sessions.
-Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 07:35 PM
11-03-2005 07:35 PM
Re: dead login sessions
If the session are not exited properly, then they may be left has hanging sessions.
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.
The TMOUT parameter works in the ksh (Korn) shell, and the TIMEOUT parameter works in the bsh (Bourne) shell.
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).
For Example the following entries, in the .profile file, forces the terminal to log out after an hour of inactivity:
TO=3600
echo "Setting Autologout to $TO"
TIMEOUT=$TO
TMOUT=$TO
export TIMEOUT TMOUT
Indira A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 10:15 PM
11-03-2005 10:15 PM
Re: dead login sessions
please follow the guidelines by IA above.
in the meanwhile, you can kill the old sessions by doing:
1. who -u|grep old
2. kill -9
good luck!
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 10:18 PM
11-03-2005 10:18 PM
Re: dead login sessions
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.
~regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 11:17 PM
11-03-2005 11:17 PM
Re: dead login sessions
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.
I probably would set your timeout to something large enough to span a couple of days, but that may not work for your environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2005 01:21 AM
11-04-2005 01:21 AM
Re: dead login sessions
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2005 01:31 AM
11-04-2005 01:31 AM
Re: dead login sessions
Before the process goes zombie and terminates abnormally , set TMOUT variable in /etc/profile that will close the session properly.
TMOUT=value ; export TMOUT
value is a numeric value in sec for timeouttime .
Hope this will help.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2005 05:01 PM
11-04-2005 05:01 PM
Re: dead login sessions
best regards,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2005 06:16 PM
11-04-2005 06:16 PM
Re: dead login sessions
at the start of your /etc/profile, you should have the following lines:
# Ignore HUP, INT, QUIT now.
trap "" 1 2 3
then at the end:
# Leave defaults in user environment.
trap 1 2 3
hope this helps too!
kind regards
yogeeraj