How to generate activity log history from a script in RSA Authentication Manager
2 years ago
Originally Published: 2006-04-05
Article Number
000057535
Applies To
RSA Authentication Manager Administration API
User wishes to generate RSA Authentication Manager activity reports periodically
Issue
How to generate activity log history from a script in RSA Authentication Manager
Resolution

The RSA Authentication Manager Administration Toolkit function Sd_ListHistory can be used to output Server activity for a specified user or for all users for a specific number of days starting with the current day. Shown below is an example TCL script that can be executed by <ACE_HOME>/utils/tcl/bin/tcl-sd. This script will output the previous 30 days of activity log for all users:


Sd_ApiInit "" "" 1

set line 0
while {1} {
# yesterday through current time activity for single user
#       set line [Sd_ListHistory 1 -tuser]

# 30 days all activity, column format
        set line [Sd_ListHistory 30 * -o pretty]
        if {$line == "Done"} break
        puts $line
}

Sd_ApiEnd


NOTE: The returned log entries are filtered based on Coordinated Universal Time (UTC) but presented in local time. For more information, refer to Sd_ListHistory in the RSA Authentication Manager 6.1 Administration Toolkit Reference Guide.