<?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 Ending interactive sessions in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/ending-interactive-sessions/m-p/5632169#M102684</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;gt; show users&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VAX/VMS User Processes at 23-APR-2012 10:55:20.83&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; Total number of users = 6, number of processes = 24&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Username Interactive Subprocess Batch&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; REMOTE 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; OBERKT 19&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; SYSTEM 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; VT03BM 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; VT05BM 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; VT10BM 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to get rid of the 19 sessions being run by OBERKT, but when I do a &lt;FONT face="courier new,courier"&gt;&amp;gt; show sys&lt;/FONT&gt; to find the PID of that process it only lists OBERKT once. How do I get rid of the other 18 sessions being run?&lt;/P&gt;</description>
    <pubDate>Mon, 23 Apr 2012 17:18:46 GMT</pubDate>
    <dc:creator>Capt_Vaxman</dc:creator>
    <dc:date>2012-04-23T17:18:46Z</dc:date>
    <item>
      <title>Ending interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ending-interactive-sessions/m-p/5632169#M102684</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;gt; show users&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VAX/VMS User Processes at 23-APR-2012 10:55:20.83&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; Total number of users = 6, number of processes = 24&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Username Interactive Subprocess Batch&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; REMOTE 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; OBERKT 19&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; SYSTEM 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; VT03BM 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; VT05BM 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; VT10BM 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to get rid of the 19 sessions being run by OBERKT, but when I do a &lt;FONT face="courier new,courier"&gt;&amp;gt; show sys&lt;/FONT&gt; to find the PID of that process it only lists OBERKT once. How do I get rid of the other 18 sessions being run?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 17:18:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ending-interactive-sessions/m-p/5632169#M102684</guid>
      <dc:creator>Capt_Vaxman</dc:creator>
      <dc:date>2012-04-23T17:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ending interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ending-interactive-sessions/m-p/5632211#M102685</link>
      <description>The easiest is to user:&lt;BR /&gt;&lt;BR /&gt;SHO USER/INTER OBERKT/FUL&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Mon, 23 Apr 2012 18:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ending-interactive-sessions/m-p/5632211#M102685</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2012-04-23T18:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ending interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ending-interactive-sessions/m-p/5632261#M102686</link>
      <description>Thank Dan, that's what I was looking for!</description>
      <pubDate>Mon, 23 Apr 2012 18:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ending-interactive-sessions/m-p/5632261#M102686</guid>
      <dc:creator>Capt_Vaxman</dc:creator>
      <dc:date>2012-04-23T18:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ending interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ending-interactive-sessions/m-p/5632351#M102687</link>
      <description />
      <pubDate>Mon, 23 Apr 2012 20:19:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ending-interactive-sessions/m-p/5632351#M102687</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2012-04-23T20:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ending interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ending-interactive-sessions/m-p/5632385#M102688</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KILLUSER.COM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ 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&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example use&lt;/P&gt;&lt;PRE&gt;$ @KILLUSER BADBOY
$ @KILLUSER JOHN,HOFF,HEIN
$ @KILLUSER J*,H*&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yet another possibility,&amp;nbsp;modify the users UAF entry to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UAF&amp;gt; MODIFY BADUSER/MAXJOBS=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&amp;nbsp;cleanly, they won't be able to get back in without asking you to kill off the dead session.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 21:17:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ending-interactive-sessions/m-p/5632385#M102688</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2012-04-23T21:17:07Z</dc:date>
    </item>
  </channel>
</rss>

