000033756 - How to check the size of the internal database in RSA Authentication Manager 8.x

Document created by RSA Customer Support Employee on Oct 20, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000033756
Applies ToRSA Product Set:  SecurID
RSA Product/Service Type:  RSA Authentication Manager
RSA Version/Condition:  8.x
IssueThis article provides steps on how to get the size of the tables in the RSA Authentication Manager 8.x internal database.
Resolution
  1. Ensure access to the primary via SSH is enabled on the primary via the Operations Console.
  2. Open an SSH session on the Authentication Manager primary and run the commands below:
login as: rsaadmin
Password: <enter the operating system password>

  1. 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.
  2. The database password is echoed back.
  3. Connect to database with the ./psql command.
  4. 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>

  1. 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 kB

Attachments

    Outcomes