<?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 Re: Displaying interactive sessions in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053284#M85865</link>
    <description>Edmundo,&lt;BR /&gt;&lt;BR /&gt;If you modify your command file to do only a bunch of SET LOGINS *or* SHOW USERS do you see the count change?&lt;BR /&gt;&lt;BR /&gt;Have you looked at the accounting journal (help accounting, help set accounting/enable)?&lt;BR /&gt;&lt;BR /&gt;Have you considered using T4 or one of the other such tools?&lt;BR /&gt;</description>
    <pubDate>Fri, 10 Aug 2007 13:40:34 GMT</pubDate>
    <dc:creator>Doug Phillips</dc:creator>
    <dc:date>2007-08-10T13:40:34Z</dc:date>
    <item>
      <title>Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053276#M85857</link>
      <description>&lt;!--!*#--&gt;I done quiet good research on the following issue and canâ  t find an answer.&lt;BR /&gt;I have my ideas about the why but I want to know the specific reason.&lt;BR /&gt;&lt;BR /&gt;Why is there a difference in the result of performing the following DCL commands â ¦&lt;BR /&gt;&lt;BR /&gt;$ SET LOGIN&lt;BR /&gt;$ SHOW USER&lt;BR /&gt;&lt;BR /&gt;â ¦ in order to obtain the amount of interactive users in the system?&lt;BR /&gt;&lt;BR /&gt;(Even if we execute them immediately one after the other)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Example: Execute from a command procedure â ¦&lt;BR /&gt;&lt;BR /&gt; See attachment</description>
      <pubDate>Fri, 10 Aug 2007 10:04:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053276#M85857</guid>
      <dc:creator>Edmundo T Rodriguez</dc:creator>
      <dc:date>2007-08-10T10:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053277#M85858</link>
      <description>&lt;BR /&gt;The SET LOGIN shows you the total number of interactive users logged in at the time.  The SHOW USERS ("Total Number of Users" part) shows you the numer of unique usernames logged in.  Some users may have multiple logged in sessions.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Aug 2007 10:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053277#M85858</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2007-08-10T10:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053278#M85859</link>
      <description>&lt;BR /&gt;If you want your values to match, change your SHOW USER command to SHOW USER/INTER.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Aug 2007 10:42:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053278#M85859</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2007-08-10T10:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053279#M85860</link>
      <description>Edmundo,&lt;BR /&gt;&lt;BR /&gt;It is quite possible that there is some login/logout activity going on. With over 290 active users, it is certainly a possibility.&lt;BR /&gt;&lt;BR /&gt;I would also be interested in the output of a SHOW SYSTEM/INTERACTIVE to see what the full list of processes is. A word of caution, SHOW SYSTEM/INTERACTIVE will also display spawned subprocesses.&lt;BR /&gt;&lt;BR /&gt;There is also the route of going through SDA and looking at the online system, but that is a more involved process.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Fri, 10 Aug 2007 11:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053279#M85860</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2007-08-10T11:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053280#M85861</link>
      <description>&lt;!--!*#--&gt;This is serious subject even it look simple.&lt;BR /&gt;&lt;BR /&gt;-----------------------&lt;BR /&gt;First:&lt;BR /&gt;&lt;BR /&gt;The SET LOGINS command displays the current&lt;BR /&gt;interactive limit and the number of interactive users.&lt;BR /&gt;&lt;BR /&gt;The SHOW USER command will always provide a display of all&lt;BR /&gt;the interactive users processes count.&lt;BR /&gt;&lt;BR /&gt;We don't need to execute&lt;BR /&gt;$ SHOW USER/Inter&lt;BR /&gt;&lt;BR /&gt;-----------------------&lt;BR /&gt;Second:&lt;BR /&gt;&lt;BR /&gt;I do believe that one of the possible reasons for the difference&lt;BR /&gt;is due to the "login/logout activity going on".&lt;BR /&gt;&lt;BR /&gt;I did compared the result of SHOW SYSTEM/INTER considering&lt;BR /&gt;the spawned subprocesses as part of the count.&lt;BR /&gt;&lt;BR /&gt;I also look at the SDA and it provides the same result with&lt;BR /&gt;a minir difference some times ( -1 or -2 user counts)&lt;BR /&gt;&lt;BR /&gt;The thing is that I don't see an straigh answer in any of&lt;BR /&gt;these possibilities.&lt;BR /&gt;&lt;BR /&gt;-----------------------&lt;BR /&gt;&lt;BR /&gt;OpenVMS is a very dynamic environment with many variables but&lt;BR /&gt;I believe that there should be a way of exactlty establshing&lt;BR /&gt;the reason for the discrepancy.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Aug 2007 11:46:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053280#M85861</guid>
      <dc:creator>Edmundo T Rodriguez</dc:creator>
      <dc:date>2007-08-10T11:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053281#M85862</link>
      <description>Edmundo,&lt;BR /&gt;&lt;BR /&gt;the no. of interactive users returned by SET LOGIN is returned from a data cell in the executive (SYS$GL_IJOBCNT), which is an atomic operation.&lt;BR /&gt;&lt;BR /&gt;$ SHOW USER/INTER/NODE needs to traverse the list of processes in the system using some system service and does not synchronize this operation with the overall system and users logging in and out.&lt;BR /&gt;&lt;BR /&gt;This may account for the difference seen. Does the different values you see stay constant ? Or is there always a constant difference ?&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Fri, 10 Aug 2007 11:49:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053281#M85862</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2007-08-10T11:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053282#M85863</link>
      <description>&lt;!--!*#--&gt;Third:&lt;BR /&gt;&lt;BR /&gt;That is the question for the question!&lt;BR /&gt;&lt;BR /&gt;Why does any system service synchronize the SHOW USER operation with&lt;BR /&gt;the overall system and users logging in and out at any given point?&lt;BR /&gt;&lt;BR /&gt;The different values we see stay constant between the two commands, with&lt;BR /&gt;a difference not less than 2 not higher than 4 at any time.&lt;BR /&gt;&lt;BR /&gt;-----------------------&lt;BR /&gt;&lt;BR /&gt;We are running multiple OpenVMS system with various OS versions.&lt;BR /&gt;&lt;BR /&gt;One in specific is a cause of concern because we have a lot of activity&lt;BR /&gt;In this system, one of the user accounts is a generic account were there&lt;BR /&gt;may be over 400 user connect sometimes.&lt;BR /&gt;&lt;BR /&gt;So I need to follow-up the load and side effects created by them very keenly&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Aug 2007 12:14:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053282#M85863</guid>
      <dc:creator>Edmundo T Rodriguez</dc:creator>
      <dc:date>2007-08-10T12:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053283#M85864</link>
      <description>&lt;BR /&gt;One very possible explanation for the discrepancy is that there are 2 - 4 users who are in the process of logging in but haven't completed login yet (i.e. at username or password prompt).  Those processes will be added to the set login display but you won't see them on the show user.&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Aug 2007 13:29:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053283#M85864</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2007-08-10T13:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053284#M85865</link>
      <description>Edmundo,&lt;BR /&gt;&lt;BR /&gt;If you modify your command file to do only a bunch of SET LOGINS *or* SHOW USERS do you see the count change?&lt;BR /&gt;&lt;BR /&gt;Have you looked at the accounting journal (help accounting, help set accounting/enable)?&lt;BR /&gt;&lt;BR /&gt;Have you considered using T4 or one of the other such tools?&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Aug 2007 13:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053284#M85865</guid>
      <dc:creator>Doug Phillips</dc:creator>
      <dc:date>2007-08-10T13:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053285#M85866</link>
      <description>I did some testing on a system with no activity but me.&lt;BR /&gt;&lt;BR /&gt;I was surprised to see that the output of&lt;BR /&gt;&lt;BR /&gt;$ set login/inter&lt;BR /&gt;&lt;BR /&gt;was one higher than &lt;BR /&gt;&lt;BR /&gt;$ show user/inter/node&lt;BR /&gt;&lt;BR /&gt;Starting a login on a terminal and letting it sit at the Login: prompt does increment the SYS$GL_IJOBCNT displayed by $ set login/inter, but it is not displayed by $ show user/inter/node.&lt;BR /&gt;&lt;BR /&gt;So I then started looking for an explanation of the additional one that was being included in SYS$GL_IJOBCNT.  On this test system, it was the DTLOGIN process running LOGINOUT (DecTerm/Decwindows).&lt;BR /&gt;&lt;BR /&gt;There may be other processes like this (SSH?) that could account for the minimum of 2 you are seeing, and the variable additional ones are most likely to be embryonic login sessions.&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Sat, 11 Aug 2007 14:45:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053285#M85866</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-08-11T14:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053286#M85867</link>
      <description>Counting interactive users looks to be easy and simple, and it isn't.  &lt;BR /&gt;&lt;BR /&gt;I don't mean that to be flippant.  &lt;BR /&gt;&lt;BR /&gt;There are a variety of different details that trip you.  The area is replete with assumptions.&lt;BR /&gt;&lt;BR /&gt;Printers can have terminal devices, but aren't interactive users.  Remote users are usually interactive, but some of the processes involved get marked as network.  DECwindows logins are usually one user (one "seat"), but there are usually multiple DECterm sessions with associated foreign terminals.&lt;BR /&gt;&lt;BR /&gt;I might ask what goal you're seeking to address here, as there can be different answers and different assumptions.&lt;BR /&gt;&lt;BR /&gt;Why?  User-based licensing might want a different count than another counting-based application, for instance, as licensing might want to count "seats" and not interactive processes.  How do you could a DECterm aimed at a remote DECwindows display, for instance?&lt;BR /&gt;&lt;BR /&gt;Stephen Hoffman&lt;BR /&gt;HoffmanLabs LLC&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Aug 2007 17:43:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053286#M85867</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-08-11T17:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying interactive sessions</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053287#M85868</link>
      <description>Edmundo,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Why does any system service synchronize&lt;BR /&gt;&amp;gt;the SHOW USER operation with the overall &lt;BR /&gt;&amp;gt;system and users logging in and out at any &lt;BR /&gt;&amp;gt;given point?&lt;BR /&gt;&lt;BR /&gt;  I'm not sure if this answers your question... SET LOGIN is "synchronized" because all it's doing is returning a single system cell SYS$GL_IJOBCNT. It's the counter the operating system keeps for interactive jobs (defined as any process in mode "INTERACTIVE", which might not be the same definition as other entities assume). Nothing can change *while* sampling the cell, though it might change immediately before and/or after.&lt;BR /&gt;&lt;BR /&gt;  SHOW USERS scans through all processes on the system, counting processes that it decides are interactive. As Hoff has explained, this is non-trivial, and may use a different definition from what you expect). This operation is NOT synchronized from start to finish, as it could take considerable time, especially if are many processes. It's therefore possible that numerous processes are created and/or deleted in front of or behind the scan, while it's in progress. The count can therefore be "wrong" relative to any particular instant in time, and indeed might not be "correct" for ANY particular instant, depending on exactly when particular processes were created or deleted. To synchronize would require blocking all activities which change the number of processes at the beginning of the scan, until the end. Obviously this is not a good idea. Consider if a user hit HOLD SCREEN in the middle of a SHOW USER display, they would block logins and logouts!&lt;BR /&gt;&lt;BR /&gt;Bottom line is, the two commands give different answers, because they do different things. If you can explain your objectives, I'm sure someone here can give you a way to determine what you need (which may be a completely different mechanism again, possibly giving a different answer from both SET LOGINS and SHOW USERS!)</description>
      <pubDate>Sun, 12 Aug 2007 16:55:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/displaying-interactive-sessions/m-p/4053287#M85868</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-08-12T16:55:21Z</dc:date>
    </item>
  </channel>
</rss>

