How to check the size of the internal database in RSA Authentication Manager 8.x
Originally Published: 2016-08-11
Last Modified: 2023-10-06
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
SecurID Internal Database Password Algorithm 79Number of Views How to check the VMware Tools version for RSA Authentication Manager 8.x 131Number of Views Customer Preparations for Upcoming Identity Management and Governance 7.0.0 Release 4Number of Views System.OutOfMemoryException: Insufficient memory to continue the execution of the program. 26Number of Views Error message "Error: java.lang.IllegalArgumentException: Window boundary must be positive" in the RSA SecurID Authenticat… 120Number of Views
Trending Articles
How to manipulate imported RSA SecurID Software Token(s) on an iPhone or iPad device Reporting on RSA Authentication Manager 8.x users with On-Demand Token, a fixed passcode or a hardware/software token assi… How to Download OTP Token Seed Files from myRSA Anomalix idGenius - SAML Relying Party Configuration - RSA Ready Implementation Guide RSA MFA Agent 2.5 for Microsoft Windows Installation and Administration Guide
Don't see what you're looking for?