An overview of the token statistics page for RSA Authentication Manager 8.x is provided in an article called
Overview of the token statistics page for RSA Authentication Manager 8.x ( also available at URL
https://community.rsa.com/t5/securid-knowledge-base/overview-of-the-token-statistics-page-for-rsa-authentication/ta-p/3828 ).
An administrator has a requirement to run a different token statistics report from the command line.
This knowledge article provides a Linux shell script which can be executed on the primary instance to generate a report on token statistics.
The Linux shell script must be run with elevated privileges on the rsaadmin account and requires the Operations Console username and password to read data from the Authentication Manager database.
Installation
- Download and copy the attached shell script called token_statistics_report.sh into the /tmp folder on the primary instance. Enable Secure Shell on the Appliance, if needed. Where Secure Shell (SSH) has been enabled, a secure FTP client (e.g. WinSCP) can be used to copy the shell script into the /tmp folder.
- Change the permissions of the shell script so it can be run at the command line: chmod 755 /tmp/token_statistics_report.sh
Usage
- Logon to the Authentication Manger instance with the rsaadmin account, either in an SSH session or at the local console.
- Change the privileges of the rsaadmin account using the command: sudo su -
NOTE if you do not change the privileges of the rsaadmin account the following message appears: "You must be the root user to use this program; exiting..." - Navigate to the /tmp folder e.g. cd /tmp
- Run the shell script from the /tmp folder e.g. ./token_statistics_report.sh
Example:
am87p:/tmp/scripts # ./token_statistics_report.sh
Checking OC credentials....missing OC credentials!
Please enter OC Administrator username: ocadmin
Please enter OC Administrator password: ** entered OC password received **
OC credentials validated... redirecting to main program..
- collecting data from the AM database for the token statistics report..
- done!
- report filename : /tmp/ts_report_202303171110.log
am87p:/tmp/scripts #
- Review the report file generated by the program.
Example:
am87p:/tmp/scripts # cat /tmp/ts_report_202303171110.log
Authentication Manager Token Statistics
from: am87p.securidcsapj.local
date: Fri Mar 17 11:10:35 AEDT 2023
Total tokens ............................. : 19
Assigned tokens .......................... : 5
Available tokens ......................... : 14
Expired tokens ........................... : 0
Expiring tokens within 90 days ........... : 0
Enabled tokens ........................... : 5
Assigned and disabled tokens ............. : 0
Tokens Enabled for Emergency Online Access : 0
Unassigned tokens ........................ : 14
Unexpired tokens ......................... : 19
Unassigned and disabled tokens ........... : 5
Unassigned and enabled tokens ............ : 9
am87p:/tmp/scripts #