racli run diagnostics

Runs and collects the required diagnostics on the Recovery Appliance.

Syntax

racli run diagnostics { --tag=TAG | --level=LEVEL | --path };

Options

--tag

Specifies the name of the tag of diagnostics to be collected, where default tags are:

        sar = 'system activity report'
   txt_dump = 'RA dump txt file'
    dp_dump = 'RA dump datapump'
   ord_wait = 'ORDERING_WAIT analysis'
 corruption = 'corruption'
 racli_logs = 'gather racli logs from each node'
 ra_version = 'get RA version information from each node'
    str_cfg = 'get store and config files from each node'
    history = 'get root and oracle history from each node'
    network = 'get network information from each node'
 obtooldiag = 'run obtool gathering useful information'
    osblogs = 'get osb logs from each node'
     osbxcr = 'get /usr/etc/ob/xcr from each node'
   osbstate = 'get backup/admin/state from each node'
     alerts = 'get ASM and RDBMS alert.logs from each node'
        awr = 'generate awr dump for last 7 days'

And collection tags:

ra_low:  [1] Generates a System Activity Report on the Recovery Appliance
  [2] Gets the version information from each node of the Recovery Appliance
ra_med:  [1] Generates a System Activity Report on the Recovery Appliance
  [2] Performs a text format dump of the Recovery Appliance
  [3] Gets the version information from each node of the Recovery Appliance
ra_high:  [1] Generates a System Activity Report on the Recovery Appliance
  [2] Performs a datapump dump of the Recovery Appliance
  [3] Gets the version information from each node of the Recovery Appliance
osb_low:  [1] Gets OSB information through obtool on the Recovery Appliance
  [2] Gathers OSB logs from all nodes of the Recovery Appliance
osb_med:  [1] Gets OSB information through obtool on the Recovery Appliance
  [2] Gathers OSB logs from all nodes of the Recovery Appliance
  [3] Gathers OSB xcr files from all nodes of the Recovery Appliance

osb_high:  [1] Gets OSB information through obtool on the Recovery Appliance
  [2] Gathers OSB logs from all nodes of the Recovery Appliance
  [3] Gathers OSB xcr files from all nodes of the Recovery Appliance
  [4] Gathers OSB state files from the current node of the Recovery Appliance
--level

Alternatively, if a tag doesn't exist the level can be specified directly, where:

 level     1 - system activity report
 level     2 - RA dump txt file
 level     4 - RA dump datapump
 level     8 - ORDERING_WAIT analysis
 level    16 - corruption
 level    32 - gather racli logs from each node
 level    64 - get RA version information from each node
 level   128 - get store and config files from each node
 level   256 - get root and oracle history from each node
 level   512 - get network information from each node
 level  1024 - run obtool gathering useful information
 level  2048 - get osb logs from each node
 level  4096 - get /usr/etc/ob/xcr from each node
 level  8192 - get backup/admin/state from each node
 level 16384 - get all nodes ASM and ZDLRA alert.logs
 level 32768 - generate awr dump for last 7 days

The levels are additive, so to gather a system activity report and RA dump txt file you would use --level=3

--path

Specfies the location on the Recovery Appliance where the diagnostic bundle will be created, default being radump.

Examples

The following example collects racli logs from all nodes and creates a bundle in default location /radump

racli run diagnostics --tag=racli_logs

The following example using the level directly, runs and bundles system activity report and alert.logs and creates a bundle in path /tmp.

racli run diagnostics --level=16385 --path=/tmp