How to get Last logon user and last login time of a CI in CMDB form

skhan
Tera Contributor

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

7 REPLIES 7

Tony Chatfield1
Kilo Patron
Can you clarify what you mean by last login user and last login time, is this a user viewing the servicenow CI record or details of the user accessing the actual CI device?

Hi Tony, Its the details of the user accessing the actual CI device. I need that information pulled into the cmdb form.

 

Thanks

adilrathore
ServiceNow Employee
ServiceNow Employee

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'.

Hello Adil,

I need the information of the user accessing the actual CI device (server) not servicenow.

 

Thanks