Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
I am trying to get last login time of user by using CLI command. I didn't find any specific command to find out this.
Could you please help me to get last login detail of user by using CLI command?
Thanks,
Sithik
There is no CLI command for that kind of information.
My experience is that "login" or "logout" are not database events and therefore cannot be found in the audit log.
I'm not sure if that can be found in the server log. All I find in mine is authentication errors but not successful logins. There may be a log option for that, you would have to ask PTC.
The command "im diag --diag=licenses" can show you who is using a license and therefore logged in. If you run it periodically, you can reconstruct approximately when people log in/out.
I think the better approach is to use the PSM tool, but I haven't been able to do that yet, so hopefully other users can tell us.
Sithik,
You may want to open a Support case, to have your organization attached to "new feature" requests in our system, relating to this, for future consideration. This is currently not captured in the Integrity product, in the manner you are looking for.
The "new feature" RFC asks for the ability to capture User log in data. ex. In the Integrity server log, or in the admin client interface. Your CLI scenario, could be a use-case for that.