I need to check how many users are connected to server for specific applications through a browser. I'm mainly interested in Oracle. My server runs RHEL.
A web application needs to be configured or programmed to enumerate active sessions, but for a list of users and idle times for SSH sessions...
See the NOTES section in the man page for w. The line above produces something like this:
Or, only idle times:
Or, just a count of SSH sessions: