How to generate a token statistics report from the command line for RSA Authentication Manager 8.x
Originally Published: 2016-04-07
Article Number
Applies To
RSA Product/Service Type: Authentication Manager
RSA Version/Condition: 8.x
Issue
An administrator has a requirement to run a different token statistics report from the command line.
Resolution
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
- 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 #
Notes
Attachments
If the attachment does not open when clicked, please refresh the page and try again. You must be logged into view the file(s).
Related Articles
How to query users and tokens from the command line for RSA Authentication Manager 8.x 93Number of Views Change On-Demand Tokencode length from command line interface on RSA Authentication Manager 8.x 95Number of Views How to stop, start and restart RSA Authentication Manager 8.x services at the command line 1.66KNumber of Views Determine SUSE Linux version from the command line in RSA Authentication Manager 8.x 378Number of Views Services will not start after changing IP address of RSA Authentication Manager 8.x from command line 534Number of Views
Trending Articles
Passwordless Authentication in Windows MFA Agent for Active Directory – Quick Setup Guide RSA Authentication Manager Upgrade Process RSA Authentication Manager 8.9 Release Notes (January 2026) An example of SSO using SAML and ADFS with RSA Identity Management and Governance 6.9.x RSA Authentication Manager 8.8 Setup and Configuration Guide
Don't see what you're looking for?