How to check the size of the internal database in RSA Authentication Manager 8.x
Originally Published: 2016-08-11
Article Number
Applies To
RSA Product/Service Type: RSA Authentication Manager
RSA Version/Condition: 8.x
Issue
Resolution
- Ensure access to the primary via SSH is enabled on the primary via the Operations Console.
- Open an SSH session on the Authentication Manager primary and run the commands below:
login as: rsaadmin Password: <enter the operating system password>
- Capture the rsa.db.dba.password information using the ./rsautil manage-secrets -a get com.rsa.db.dba.password command. Enter the Operations Console admin name and password when prompted.
- The database password is echoed back.
- Connect to database with the ./psql command.
- Paste the database password when prompted
rsaadmin@am81p:~> cd /opt/rsa/am/utils
rsaadmin@am81p:/opt/rsa/am/utils> ./rsautil manage-secrets -a get com.rsa.db.dba.password
Please enter OC Administrator username: <enter the Operations Console admin's name>
Please enter OC Administrator password: <enter the Operations Console admin's password>
com.rsa.db.dba.password: <com.rsa.db.dba.password string>
rsaadmin@am81p:/opt/rsa/am/utils> cd ../pgsql/bin
rsaadmin@am81p:/opt/rsa/am/pgsql/bin> ./psql -h localhost -p 7050 -d db -U rsa_dba
Password for user rsa_dba: <enter the com.rsa.db.dba.password captured above>
- In the command line, type the query shown here as one line:
SELECT relname AS "Table", pg_size_pretty(pg_total_relation_size(relid)) AS "Size", pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) AS "External Size" FROM pg_catalog.pg_statio_user_tables ORDER BY pg_total_relation_size(relid) DESC;
Output will be as follows:
db=# SELECT relname AS "Table", pg_size_pretty(pg_total_relation_size(relid)) AS "Size",
pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) as "External Size"
FROM pg_catalog.pg_statio_user_tables ORDER BY pg_total_relation_size(relid) DESC;
Table | Size | External Size
------------------------------------------+------------+---------------
ims_log_system | 13 MB | 7248 kB
ims_batch_job | 3560 kB | 3424 kB
ims_instance_node | 2552 kB | 248 kB
am_p2r_primarystatus | 2000 kB | 72 kB
ims_config_value | 1104 kB | 584 kB
am_token | 904 kB | 440 kB
am_r2p_primarystatus | 872 kB | 104 kB
am_token_attr_values | 648 kB | 464 kB
am_p2r_combinedstatus | 648 kB | 96 kB
am_r2p_combinedstatus | 640 kB | 88 kB
ims_config_metadata | 568 kB | 392 kB
re_configuration | 496 kB | 384 kB
entity_aggregations | 472 kB | 360 kB
rba_bs_buckets_static | 432 kB | 136 kB
ims_admin_permission | 392 kB | 272 kB
am_token_attribute | 360 kB | 232 kB
ims_log_keys | 296 kB | 80 kBRelated Articles
How to check the VMware Tools version for RSA Authentication Manager 8.x 122Number of Views How to create Internal Database users without passwords in Authentication Manager 8.x 21Number of Views Edit the Internal Database 14Number of Views How to check the connectivity and response time of an Identity source for RSA Authentication Manager using ldapsearch 527Number of Views How to Check and Restart Web Tier Services on Linux in Authentication Manager 8.x Using init.d 1.1KNumber of Views
Trending Articles
RSA Authentication Manager 8.9 Setup and Configuration Guide How to 'Trust' the RSA Authentication Manager Security Console Self-Signed Root CA certificate and prevent Cert warnings. RSA Authentication Manager 8.9 Release Notes (January 2026) Configure RSA Authentication Manager as a Secure Proxy Server for Cloud Access Service RSA Authentication Manager Upgrade Process
Don't see what you're looking for?