How to log the last time a particular user logged into any session using CA Automation Point

Document ID : KB000045975
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction: 

We have a new requirement from the Business asking Operations to report on the last time any user logged into any CA Automation Point (AP) session.

Question: 

Does CA Automation Point have any built-in reporting mechanism for providing the last time a particular user logged into any AP session?

Environment:  

Any Supported Release of CA Automation Point

Answer: 

CA Automation Point does not provide a specific mechanism for reporting the last time a particular user logged into any session. However, we do keep log file records of each time any user logs into any session from CA Remote Viewer Client in the xc_msg.log and the out.deb files. So you could write an AP rule that detects these login message IDs and sends the &TIME and &MSG environment variables to a custom AP-REXX script that you can write which parses the &MSG for the session name and userID, and then writes the parsed userID and &TIME to a log file somewhere on the server's filesystem whose filename is prefixed by the parsed session name (e.g. session1_last_user_login.txt.

Additional Information:

 

Please contact CA Support with any usage or defect issues regarding possible user-defined solutions to this problem.