- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Ending interactive 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
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
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
04-23-2012 10:18 AM
04-23-2012 10:18 AM
There is a user who never properly logs off of their sessions (despite being asked to do it correctly and shown how to) who I need to end their sessions. This is on a Vax running VAX/VMS V5.5-2H4.
I do:
> show users
VAX/VMS User Processes at 23-APR-2012 10:55:20.83
Total number of users = 6, number of processes = 24
Username Interactive Subprocess Batch
REMOTE 1
OBERKT 19
SYSTEM 1
VT03BM 1
VT05BM 1
VT10BM 1
I'd like to get rid of the 19 sessions being run by OBERKT, but when I do a > show sys to find the PID of that process it only lists OBERKT once. How do I get rid of the other 18 sessions being run?
Solved! Go to Solution.
- Tags:
- kill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2012 11:10 AM
04-23-2012 11:10 AM
SolutionSHO USER/INTER OBERKT/FUL
This will produce a list of all of the interactive connections for that user. Please note that the process names for the others will be the "terminal" names. For example: When connected via telnet, the others will be _TNAxxxx where the xxxx is the device number.
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2012 11:51 AM
04-23-2012 11:51 AM
Re: Ending interactive sessions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2012 01:19 PM
04-23-2012 01:19 PM
Re: Ending interactive sessions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2012 02:17 PM
04-23-2012 02:17 PM
Re: Ending interactive sessions
I'm fairly sure F$CONTEXT was available on V5.5, so you can be very specific about what processes you want to find. This procedure will kill all interactive processes for a specified user (or list or users, wildcards permitted), across a cluster. Batch, network and detached processes are ignored.
KILLUSER.COM
$ ctx = "" $ temp = F$CONTEXT ("PROCESS", ctx, "NODENAME", "*","EQL") $ temp = F$CONTEXT ("PROCESS", ctx, "USERNAME", p1,"EQL") $ temp = F$CONTEXT ("PROCESS", ctx, "MODE", "INTERACTIVE", "EQL") $ loop: pid=F$PID(ctx) $ IF pid.NES."" $ THEN $ STOP/ID='pid' $ GOTO loop $ ENDIF
Example use
$ @KILLUSER BADBOY $ @KILLUSER JOHN,HOFF,HEIN $ @KILLUSER J*,H*
Looking further at your issue, why are there 19 interactive sessions? Is the user connecting from (say) a PC, not logging off and leaving a dangling process? Depending on the nature of the network connections, you may be able to set network timeouts which will automatically drop a connection. Another possibility would be to enable disconnectable terminals. That way, if a user disconnects, the process will remain for (SYSGEN) TTY_TIMEOUT seconds. If the user logs in again, they will be offered the option to reconnect to the disconnected session. Apart from helping you with your problem user, this is also good for all users. If their PC crashes or the network or p[hone line goes down, they don't necessarily lose the work they were in the middle of on the VMS system. Just log back in and pick up where you left off.
Yet another possibility, modify the users UAF entry to
UAF> MODIFY BADUSER/MAXJOBS=1
This will limit them to a single interactive login. It will obviously prevent them from accumulating 19 dead sessions, and they'll quickly learn that if they don't log off cleanly, they won't be able to get back in without asking you to kill off the dead session.