• Command line to query AIX telnet/SSH login session inactive duration/in

    From gregtnjones@gmail.com@21:1/5 to All on Tue Jul 7 16:54:16 2020
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to gregtnjones@gmail.com on Tue Jul 7 21:50:39 2020
    On 7/7/20 5:54 PM, gregtnjones@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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)