You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Usage

adiag is a tool to gather diagnostic information at the request of the CLAIMS Direct support team. Depending on arguments, it will query PostgreSQL version information and relevant data from either all tables, or those specified on the command line. The result will be a zip file created in the directory from which the tool was run.

Since this tool uses the CLAIMS Direct logging infrastructure, it is highly recommended that this be run as user alexandria, e.g.,

cd /tmp
sudo -u alexandria adiag 
  adiag [ Options ]

  --pgdbname=s      Database entry from alexandria.xml
  --details         Collect granular statistics
    --table=s@      Gather details for specific table (can specify multiple tables)

  --facility=s      Logging facility

  --help            Print this usage and exit

Examples

Gather General Diagnostic Information

adiag

[mproc03] [2023/02/01 09:03:50] [INFO      ] [reporting.t_client_load_process analysis complete: 0.004]
[mproc03] [2023/02/01 09:03:50] [INFO      ] [reporting.t_client_index_process analysis complete: 0.001]
[mproc03] [2023/02/01 09:03:50] [INFO      ] [xml.t_abstract analysis complete: 0.007]
[mproc03] [2023/02/01 09:03:50] [INFO      ] [xml.t_amended_claims analysis complete: 0.002]
[mproc03] [2023/02/01 09:03:50] [INFO      ] [xml.t_application_reference analysis complete: 0.004]
[mproc03] [2023/02/01 09:03:50] [INFO      ] [xml.t_attachments_external analysis complete: 0.002]
[mproc03] [2023/02/01 09:03:50] [INFO      ] [xml.t_citations analysis complete: 0.002]
[mproc03] [2023/02/01 09:03:50] [INFO      ] [xml.t_claims analysis complete: 0.002]
# abbreviated.

Gather Detailed Diagnostic Information for Specific Tables

adiag --details --table=xml.t_patent_document_values --table=xml.t_abstract

[mproc03] [2023/02/01 09:03:50] [INFO      ] [xml.t_abstract analysis complete: 0.007]
[mproc03] [2023/02/01 09:03:50] [INFO      ] [xml.t_patent_document_values analysis complete: 0.002]
  • No labels