# S342OVD.def: Collects Oracle Virtual Directory Information # $Id: S342OVD.def,v 1.6 2009/01/30 14:20:29 mschenke Exp $ # ARCS: $Header: /u02/webapps/workbench/cvs/RDA_4/src/scripting/lib/modules/S342OVD.def,v 1.6 2009/01/30 14:20:29 mschenke Exp $ # # Change History # 20090130 KRA Test for the existence of 'rcu' directory in AS 11g context. =head1 NAME S342OVD - Collects Oracle Virtual Directory Information =head1 DESCRIPTION This module collects Oracle Virtual Directory-related information (for example, server, configuration, and log files). The following reports can be generated and are regrouped under C: =cut echo tput('bold'),'Processing Oracle Virtual Directory module ...',tput('off') # Initialization var $ORACLE_HOME = getSetting('ORACLE_HOME','') var $OVD_HOME = getSetting('OVD_HOME') if !$OVD_HOME var $OVD_HOME = $ORACLE_HOME var $MNU = '1:Oracle Virtual Directory' var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' # Collect the Oracle Virtual Directory information if or(getSetting('ASIT_IN_USE'),testDir('d',catDir($ORACLE_HOME,'rcu'))) {# Abort collection when merged if getSetting('ASIT_MERGE',true) {echo "OVD collection performed by the ASIT module" return } # Load the common macros var ($CNT,%DUP) = (0) run OVDr11() # Collect the generic information pretoc $MNU pretoc '1+:Oracle Home' call collect_ovd_generic($OVD_HOME) unpretoc # Collect the data for each instance var $hom = catDir(getSetting('ASIT_INSTANCE_HOME','')) var %cmp loop $ins (get_instances($hom,'ASIT_INSTANCES')) {# Get the instance name and the relevant instance components var $dir = catDir($hom,$ins) var $dsc = get_components(\%cmp,$dir,$ins,'^OVD$') # Skip instances without relevant components next !keys(%cmp) # Treat relevant components debug ' Inside OID module, analyzing instance ',$dsc if isTocCreated(true) pretoc '%SPLIT%' else pretoc $MNU pretoc "1+:'",$dsc,"' Instance" call collect_ovd_instance($dsc,$dir,\%cmp) unpretoc 2 } } else {# Load the common macros run library() =head2 Server Files Collects the following server files: =over =item o F =item o F =item o F =back =cut pretoc $MNU debug ' Inside OVD module, gathering server files' pretoc '2:Server Files' var $dir = $OVD_HOME call cat_report($dir,'ovidserver.lax','s_') call cat_report($dir,'vde.sh','s_') call cat_report($dir,'vde_start.sh','s_') unpretoc =head2 Configuration Files Collects configuration files from the F directory. =cut debug ' Inside OVD module, gathering configuration files' pretoc '2:Configuration Files' var $dir = catDir($OVD_HOME,'conf') loop $fil (grepDir($dir,'.*','n')) call cat_report($dir,$fil,'c_') unpretoc =head2 Log Files Collects the log files from the F directory. =cut debug ' Inside OVD module, gathering log files' pretoc '2:Log Files' var $dir = catDir($OVD_HOME,'log') call cat_report($dir,'access.log','l_') call cat_report($dir,'vde.log','l_') call cat_report($dir,'vde.log.exception','l_') call cat_report($dir,'vde_startup.log','l_') unpretoc } =head2 not_found - Not Found Used as a warning when none of the Oracle Virtual Directory files are found. =cut if !isTocCreated(true) {debug ' Inside OVD module, no file found' report not_found write 'No Oracle Virtual Directory files were found and all files were \ optional. This does not mean there was necessarily a problem with RDA, \ but it should be investigated.' toc $MNU toc '2:[[',getFile(),'][rda_report][Not Found]]' } =head1 SEE ALSO L, L =begin credits =over 10 =item RDA 4.9: Mark Wilcox. =item RDA 4.15: Greg Cook, Andrew Salt, Olaf Stullich. =back =end credits =head1 COPYRIGHT NOTICE Copyright (c) 2002-2009, Oracle. All rights reserved. =head1 TRADEMARK NOTICE Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. =cut