- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Kill pts?
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
03-09-2004 04:44 AM
03-09-2004 04:44 AM
Re: Kill pts?
Great Idea!! In fact, I tried that once. Only once! And the "Management" decided they were above the law, and needed at least 6 each. I have had to create 2 "user" home directories for just this reason. The standard /home has all the regular users with the .profile described in this posting, and a /user directory for those deemed "exceptional." I appreciate the idea though!!
D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 06:02 AM
03-09-2004 06:02 AM
Re: Kill pts?
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 06:42 AM
03-09-2004 06:42 AM
Re: Kill pts?
That has been my problem all along. "netstat -an" doesn't show a session open, "ps" doesn't show any running processes, but "who" shows the person as still logged in.
I believe I have corrected the immediate problem of logging in; however, the root cause of the issue is still not resolved, and I will still have to reboot the server more periodically than I like to clear the "wtmp". Unless you have a better solution :)
D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 09:42 AM
03-09-2004 09:42 AM
Re: Kill pts?
http://www.armory.com/~ftp/ and look at the bottom of the page for cwtmp.tar.gz I just downloaded that one and was able to read it with winzip.
Also another version at:
http://www.geocities.com/SiliconValley/Network/2894/
Also found this:
kill -0 `who -u | awk '{print $7}'`
The -0 is minus zero and not minus oh.
Supposedly this creates a list of all stale logins. I don't have an HP-UX left to play with to check it. We turned the last one off last month. I just tried
who -u | awk '{print $7}'
on an old Linux box and it just gave me the ip address I logged in from but looking at my Linux in a Nutshell it looks like it should work on a newer system to give you the pid then the kill -0 will test it. Not sure that the resulting output is much use but I suppose if you ran the who -u and grepped for your user before running the awk you would get a count of the dead logins for that user.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 12:07 AM
03-10-2004 12:07 AM
Re: Kill pts?
The "who" command is part of the problem, and doesn't give an accurate reading. To summarize everything we have discovered so far...
According to "netstat" (the networking side), the session is terminated.
According to "ps" (the process side), there are no running processes for the user or users in question.
According to "who" (the logging/accoutability side), the session is still alive.
Clearing the "utmp" file, doesn't correct the issue.
I believe the "wtmp" file is somehow becoming corrupt. "cwtmp" may fix the problem, but I'm not a programmer and don't know how to compile these type of apps.
D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 04:07 AM
03-10-2004 04:07 AM
Re: Kill pts?
http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=150
and give them the link to cwtmp. Ask them where you can get a compiled version for hpux 11.11 or how to compile it on your box. Odds are someone will compile it for you and send it to you or post a zip copy for you.
The software in the second link has a note in the remarks header which tells you how to compile it. It wouldn't hurt to try and see if it works.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 03:28 AM
03-11-2004 03:28 AM
Re: Kill pts?
Regarding the who command incorrectly reporting of terminated telnets, I know there have been patches for 10.20/11 for this type issue. You may be way beyond this, but if not then doing a search for 11i patches for telnet and close or corrupt would probably give you a current list worth looking at. Certainly any telnet or streams cumulative patches would be good bets.
Also, the wtmp/utmp files should not be corrupted by dropping a "telnet" session, no matter how it is done. If a different application has the connection, then "it" has the responsiblity to close up things nicely so all bets are off there. You should not have to use a tool (fwtmp or 3rd party to correct this - they should really only be needed in extra ordinary circumstances.) If you have access to the knowledgebase, there is a doc that describes your scenario that was resolved with the tcp keep alive timer being reduced to quickly identify and release the ports.
fwiw,
fwc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2004 12:35 AM
03-14-2004 12:35 AM
Re: Kill pts?
I have taken each suggestion made here and implemented it. The root cause of the problem still exists; however, the new script doesn't lock the user out of the system. I guess a workaround such as this, is the best I can hope for. I appreciate all the help from each of you!!!
D
- « Previous
-
- 1
- 2
- Next »