Jump to content
Gerieca Roldan

Last Logged In User

Recommended Posts

I'm creating a script that needs to get the latest last logged in user of a machine. The lastusername column in computer table is where I can find the last logged in user right? Or automate has a default variable where can I get the last logged in user without using query? Also, I was just wondering how often the database updates its record? I might be getting the outdated record in the lastusername column.

Share this post


Link to post
Share on other sites

I don’t think the agent sends a “last user”.  I believe it reports the logged in users, and each time it changes the database agent copies a name to that column. Logged In users are reported (at least) during each check- in, which is every 5 minutes normally. (Or every 30 seconds for probes or masters?)

Share this post


Link to post
Share on other sites

Yes, it is in the database. I was commenting on the agent not sending that as a distinct value, but rather simply reporting who IS logged in and the server copies to the “lastuser” column. (There is a column for current logged in users, and one for the last logged in user. The agent updates the first column, the server updates the second)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...