Generating a Software Token Report for RSA Authentication Manager with Lifetime Extension Information
2 months ago
Article Number
000072935
Applies To
RSA Product Set:  SecurID
RSA Product/Service Type:  RSA Authentication Manager
RSA Version/Condition:  8.6 or later
Platform: Linux
Issue
An administrator has a requirement to generate a report on all software tokens in Authentication Manager, perhaps for troubleshooting purposes.
Resolution
The Linux shell script (called swtreport.sh) will generate a software token report with
User ID, Identity Source, Token Serial, Token Start Date (UTC), Token Expiry Date (UTC), NTC, New PIN mode, Software Token Profile, Extension Token and Date Token Extended (UTC) headings.
 

Installation

  1. Download and copy the attached swtreport.sh shell script into the /tmp folder on the primary instance in the Authentication Manager deployment.  Use the procedure at URL https://community.rsa.com/s/article/Enable-Secure-Shell-on-the-Appliance-bf9a6052 to enable secure shell on the Appliance where needed.  Where secure shell has been enabled, a secure FTP client, such as WinSCP, can be used to copy the shell script into the /tmp folder on the primary instance.
  2. Change the permissions of the swtreport.sh shell script so it can be executed at the command line:
chmod 755 /tmp/swtreport.sh
Usage
  1. Logon to the Authentication Manger instance with the rsaadmin account, either in an secure shell session or at the local console.
  2. Elevate the privileges of the rsaadmin account using the command:
sudo su -
  1. Navigate to the /tmp folder using the command:
cd /tmp
  1. Run the shell script using the command:
./swtreport.sh
Example
rsaadmin@am87-1:~> sudo su -
[sudo] password for rsaadmin:
am87-1:~ # cd /tmp
am87-1:/tmp # ./swtreport.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.

 - Generating HTML report...

  -- Report name : /tmp/swtreport_202410110252.html

 - Done!

am87-1:/tmp # cat /tmp/swtreport_202410110252.html
<!DOCTYPE html><html lang=en>
<head><meta charset=UTF-8><meta name=viewport content=width=device-width, initial-scale=1.0><title>HTML Report</title>
<style>h1,h2 {color: red;text-align: center;} table {width: 60%; border-collapse: collapse; margin: 20px auto;}
th,td {padding: 8px;border: 1px solid #ddd;text-align: left;word-wrap: break-word;}
th {background-color: #f2f2f2;}</style></head>
<body><h1>Software Tokens Report</h1><h2>(includes Extended Software Token information)</h2>
<table>
<tr><th>User ID</th><th>Identity Source</th><th>Token Serial</th><th>Token Start Date (UTC)</th><th>Token Expiry Date (UTC)</th><th>NTC</th><th>New PIN mode</th><th>Software Token Profile</th><th>Extension Token</th><th>Date Token Extended (UTC)</th></tr>
<tr><td>RSAID000000022</td><td>OpenLDAP</td><td>000008888981</td><td>2006-07-11 00:00:00</td><td>2026-07-06 00:00:00</td><td>f</td><td>t</td><td>Android 4.x 60-8-PIN-CTF</td><td></td><td></td></tr>
<tr><td>rsatest</td><td>Internal Database</td><td>000008888978</td><td>2006-07-11 00:00:00</td><td>2026-07-06 00:00:00</td><td>f</td><td>t</td><td>Android 4.x 60-8-PIN-CTF</td><td></td><td></td></tr>
<tr><td>RSAID000001</td><td>Sandbox</td><td>000008888979</td><td>2006-07-11 00:00:00</td><td>2026-07-06 00:00:00</td><td>f</td><td>t</td><td>iOS 4.3 60-8-PIN-CTF</td><td></td><td></td></tr>
<tr><td>mbell</td><td>RSA Customer Support</td><td>000008888980</td><td>2006-07-11 00:00:00</td><td>2026-07-06 00:00:00</td><td>f</td><td>t</td><td>Android 4.x 60-8-PIN-CTF</td><td></td><td></td></tr>
</table></body></html>
am87-1:/tmp #

Viewing /tmp/swtreport_202410110252.html in a web browser:
image.png
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).