- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to log out all users
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
06-28-2005 11:25 PM
06-28-2005 11:25 PM
How to log out all users
How can I log all connected users out, on a hp 9000 server running HP-UX 11.11
thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 11:30 PM
06-28-2005 11:30 PM
Re: How to log out all users
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 11:36 PM
06-28-2005 11:36 PM
Re: How to log out all users
I have to do it without changing the run level
because there many processes the should not be killed. The server run a package witch should not be stoped
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 11:45 PM
06-28-2005 11:45 PM
Re: How to log out all users
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 11:54 PM
06-28-2005 11:54 PM
Re: How to log out all users
You have to use nohup with users kill command. Please visit following link:
http://docs.hp.com/en/B2355-90690/nohup.1.html
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2005 01:20 AM
06-29-2005 01:20 AM
Re: How to log out all users
# wall
All users are going to be killed.
# sleep 5
# who -u | awk '!/system console/ { print $7 }' | xargs kill -9
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2005 02:33 AM
06-29-2005 02:33 AM
Re: How to log out all users
# UNIX95= ps -f -H -u user_name
(note that UNIX95= will enable the -H option in ps) This shows the hierarchy of processes. Try a kill -15 on the highest level process, and if that doesn't work, try it on the second level. When kill -15 doesn't work, one or more of the processes are not running (ie, waiting on I/O) and if the I/O never completes, the process will never see the kill command.
You can also try the kill -1 command in case a process is trapping the normal kill signal. kill -1 is the hangup signal which tells the process that the connection has been removed. If you're sure that the processes a stuck user is running will not be a problem to forcibly kill, then you can use kill -9 but then check on shared memory (ipcs -bmop or ipcs -bmopa for more details) to see if orphaned segments need to be removed.
Bill Hassell, sysadmin