Saturday 4 April 2015

DIAG TOOL

11gR2 RAC 

Cluster Diagnostic Collection Tool

$GRID_HOME/bin/diagcollection.pl --> Script

To use cluster diagnostic collection tool helps you collect the diagnostic information for all the require components
like HOST, OS, CLUSTER, AGENT etc....


------ OPTIONS AVAILABLE ------

[root@rac1 ~]# diagcollection.pl

Production Copyright 2004, 2008, Oracle.  All rights reserved
Cluster Ready Services (CRS) diagnostic collection tool
diagcollection
    --collect
             [--crs] For collecting crs diag information
             [--adr] For collecting diag information for ADR
             [--ipd] For collecting IPD-OS data
             [--all] Default.For collecting all diag information.
             [--core] UNIX only. Package core files with CRS data
             [--afterdate] UNIX only. Collects archives from the specified date. Specify in mm/dd/yyyy format
             [--aftertime] Supported with -adr option. Collects archives after the specified time. Specify in YYYYMMDDHHMISS24 format
             [--beforetime] Supported with -adr option. Collects archives before the specified date. Specify in YYYYMMDDHHMISS24 format
             [--crshome] Argument that specifies the CRS Home location
             [--incidenttime] Collects IPD data from the specified time.  Specify in MM/DD/YYY24HH:MM:SS format
                  If not specified, IPD data generated in the past 24 hours are collected
             [--incidentduration] Collects IPD data for the duration after the specified time.  Specify in HH:MM format.
                 If not specified, all IPD data after incidenttime are collected
             NOTE:
             1. You can also do the following
                ./diagcollection.pl --collect --crs --crshome <CRS Home>

     --clean        cleans up the diagnosability
                    information gathered by this script

     --coreanalyze  UNIX only. Extracts information from core files
                    and stores it in a text file




--nocore option undocumented is to use to ignore core datafiles while collection diagnostic information using Oracle Cluster Diagnostic Tool.




Below Example.:-

[root@rac1 ~]# diagcollection.pl --collect --crs --crshome /app/gridHome
Production Copyright 2004, 2008, Oracle.  All rights reserved
Cluster Ready Services (CRS) diagnostic collection tool
The following CRS diagnostic archives will be created in the local directory.
crsData_rac1_20150314_1940.tar.gz -> logs,traces and cores from CRS home. Note: core files will be packaged only with the --core option.
ocrData_rac1_20150314_1940.tar.gz -> ocrdump, ocrcheck etc
coreData_rac1_20150314_1940.tar.gz -> contents of CRS core files in text format

osData_rac1_20150314_1940.tar.gz -> logs from Operating System
Collecting crs data
/bin/tar: log/rac1/cssd/ocssd.log: file changed as we read it
/bin/tar: log/rac1/ohasd/ohasd.log: file changed as we read it
/bin/tar: log/rac1/agent/ohasd/orarootagent_root/orarootagent_root.log: file changed as we read it
/bin/tar: log/rac1/agent/ohasd/oraagent_grid/oraagent_grid.log: file changed as we read it
/bin/tar: log/rac1/agent/crsd/oraagent_oracle/oraagent_oracle.log: file changed as we read it
Collecting OCR data
Collecting information from core files
No corefiles found
Collecting OS logs.

[root@rac1 ~]#


Note:- Check log One by one.

tail -100 $GRID_HOME/log/rac1/cssd/ocssd.log

No comments: