How to get Last logon user and last login time of a CI in CMDB form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2019 10:17 AM
Greetings,
I need to two new field in the CMDB server form. One needs to be the "last logon user in a CI" and the other one is "last login time in a CI"
Is there a way to get this information?
I would really appreciate if someone can help me with this.
Thank You
- Labels:
-
Discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2019 10:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2019 12:23 PM
Hi Tony, Its the details of the user accessing the actual CI device. I need that information pulled into the cmdb form.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2019 10:59 AM
You already get the last logon user in ServiceNow and it is updated on the Assigned to field.
For last login time you might have to create a custom field and specific to windows computers you can fetch the login time using commands like 'whoami' and 'query user'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2019 12:26 PM
Hello Adil,
I need the information of the user accessing the actual CI device (server) not servicenow.
Thanks