- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Displaying 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
Forums
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
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
тАО08-10-2007 03:04 AM
тАО08-10-2007 03:04 AM
Displaying interactive sessions
I have my ideas about the why but I want to know the specific reason.
Why is there a difference in the result of performing the following DCL commands ├в ┬ж
$ SET LOGIN
$ SHOW USER
├в ┬ж in order to obtain the amount of interactive users in the system?
(Even if we execute them immediately one after the other)
Example: Execute from a command procedure ├в ┬ж
See attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2007 03:28 AM
тАО08-10-2007 03:28 AM
Re: Displaying interactive sessions
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2007 03:42 AM
тАО08-10-2007 03:42 AM
Re: Displaying interactive sessions
If you want your values to match, change your SHOW USER command to SHOW USER/INTER.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2007 04:31 AM
тАО08-10-2007 04:31 AM
Re: Displaying interactive sessions
It is quite possible that there is some login/logout activity going on. With over 290 active users, it is certainly a possibility.
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.
There is also the route of going through SDA and looking at the online system, but that is a more involved process.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2007 04:46 AM
тАО08-10-2007 04:46 AM
Re: Displaying interactive sessions
-----------------------
First:
The SET LOGINS command displays the current
interactive limit and the number of interactive users.
The SHOW USER command will always provide a display of all
the interactive users processes count.
We don't need to execute
$ SHOW USER/Inter
-----------------------
Second:
I do believe that one of the possible reasons for the difference
is due to the "login/logout activity going on".
I did compared the result of SHOW SYSTEM/INTER considering
the spawned subprocesses as part of the count.
I also look at the SDA and it provides the same result with
a minir difference some times ( -1 or -2 user counts)
The thing is that I don't see an straigh answer in any of
these possibilities.
-----------------------
OpenVMS is a very dynamic environment with many variables but
I believe that there should be a way of exactlty establshing
the reason for the discrepancy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2007 04:49 AM
тАО08-10-2007 04:49 AM
Re: Displaying interactive sessions
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.
$ 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.
This may account for the difference seen. Does the different values you see stay constant ? Or is there always a constant difference ?
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2007 05:14 AM
тАО08-10-2007 05:14 AM
Re: Displaying interactive sessions
That is the question for the question!
Why does any system service synchronize the SHOW USER operation with
the overall system and users logging in and out at any given point?
The different values we see stay constant between the two commands, with
a difference not less than 2 not higher than 4 at any time.
-----------------------
We are running multiple OpenVMS system with various OS versions.
One in specific is a cause of concern because we have a lot of activity
In this system, one of the user accounts is a generic account were there
may be over 400 user connect sometimes.
So I need to follow-up the load and side effects created by them very keenly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2007 06:29 AM
тАО08-10-2007 06:29 AM
Re: Displaying interactive sessions
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2007 06:40 AM
тАО08-10-2007 06:40 AM
Re: Displaying interactive sessions
If you modify your command file to do only a bunch of SET LOGINS *or* SHOW USERS do you see the count change?
Have you looked at the accounting journal (help accounting, help set accounting/enable)?
Have you considered using T4 or one of the other such tools?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2007 07:45 AM
тАО08-11-2007 07:45 AM
Re: Displaying interactive sessions
I was surprised to see that the output of
$ set login/inter
was one higher than
$ show user/inter/node
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.
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).
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.
Jon