Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Command line to query AIX telnet/SSH login session inactive duration/inactivity period

93 views
Skip to first unread message

gregt...@gmail.com

unread,
Jul 7, 2020, 7:54:19 PM7/7/20
to
Have searched high and low for a command/script that can show how long users login sessions have been inactive for. All of what I have found, talks about how to do this. Eg. Via session timeout where the 'forced logout after X period of inactive time/inactivity.

Client has a character based application 'behind' telnet that our AIX specialist is saying can't be monitored for inactivity/inactive login session duration as this will kill background tasks. Completely understand why you would not want to kick of a session that has a long running background process, but the client has asked if it is possible to run a report showing users and how long their login has been inactive.

Anyone know how to programmatically query a login session's current inactive duration/inactivity. I'm not talking about knowing what has been set as the session timeout, which will force disconnect a session. This is about running a command to query how long a user or all users on a systems have been inactive for?

Any help would be really appreciated.

Grant Taylor

unread,
Jul 7, 2020, 11:50:42 PM7/7/20
to
On 7/7/20 5:54 PM, gregt...@gmail.com wrote:
> Anyone know how to programmatically query a login session's current
> inactive duration/inactivity. I'm not talking about knowing what has
> been set as the session timeout, which will force disconnect a session.
> This is about running a command to query how long a user or all users
> on a systems have been inactive for?
>
> Any help would be really appreciated.

Does "w" not give you the information that you want?



--
Grant. . . .
unix || die
0 new messages