# S340OID.def: Collects Oracle Internet Directory Information # $Id: S340OID.def,v 1.25 2009/01/30 14:20:29 mschenke Exp $ # ARCS: $Header: /u02/webapps/workbench/cvs/RDA_4/src/scripting/lib/modules/S340OID.def,v 1.25 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 S340OID - Collects Oracle Internet Directory Information =head1 DESCRIPTION This module collects Oracle Internet Directory-related information. The following reports can be generated and are regrouped under C: =cut echo tput('bold'),'Processing Oracle Internet Directory module ...',tput('off') # Initialization var $ORACLE_HOME = getSetting('ORACLE_HOME','') var $TAIL = getSetting('RDA_TAIL',1000) var $LDAP_HOME = catDir($ORACLE_HOME,'ldap') var $MNU = '1:Oracle Internet Directory' var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' # Collect the OID information if or(getSetting('ASIT_IN_USE'),testDir('d',catDir($ORACLE_HOME,'rcu'))) {# Abort collection when merged if getSetting('ASIT_MERGE',true) {echo "OID collection performed by the ASIT module" return } # Collect the generic Oracle Internet Directory information pretoc $MNU pretoc '1+:Oracle Home' run OIDinfo(true) unpretoc # Load the common macros var ($CNT,%DUP) = (0) run OIDr11() # 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,'^oidmon$') # 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_oid_instance($dsc,$dir,\%cmp) unpretoc 2 } } else {# Collect the generic information pretoc $MNU run OIDinfo(false) # Load the common macros run library() # Collect log files related to Oracle Internet Directory var $dir = catDir($LDAP_HOME,'log') =head2 oidmon.log Displays the last lines of the monitor log. =cut debug ' Inside OID module, tail the monitor log' loop $nam (grepDir($dir,'oidmon\.log','in')) call tail_report($dir,$nam,$TAIL) =head2 oidldapd.log Displays the last lines of the LDAP log. =cut debug ' Inside OID module, tail the LDAP logs' loop $nam (grepDir($dir,'oidldapd.*\.log','in')) call tail_report($dir,$nam,$TAIL) =head2 oidrepld.log Displays the last lines of the replication log. =cut debug ' Inside OID module, tail the replication logs' loop $nam (grepDir($dir,'oidrepld.*\.log','in')) call tail_report($dir,$nam,$TAIL) =head2 $OH/ldap/odi/log Displays the contents of the files in the F<$ORACLE_HOME/ldap/odi/log> directory. =cut debug ' Inside OID module, listing the files in $OH/ldap/odi/log directory' call sort_files(3,$TAIL,grepDir(catDir($LDAP_HOME,'odi','log'),'.','p')) =head2 $OH/ldap/load Displays the contents of the files in the F<$ORACLE_HOME/ldap/load> directory. =cut debug ' Inside OID module, listing the files in $OH/ldap/load directory' call sort_files(3,$TAIL,grepDir(catDir($LDAP_HOME,'load'),'.','p')) =head2 $OH/ldap/das Displays the contents of the files in the F<$ORACLE_HOME/ldap/das> directory except for the F file. =cut debug ' Inside OID module, listing the files in $OH/ldap/das directory' call sort_files(3,$TAIL,\ grepDir(catDir($LDAP_HOME,'das'),'^oiddas\.ear$','vip')) unpretoc } =head2 not_found - Not found Used as a warning when none of the Oracle Internet Directory files are found. =cut if !isTocCreated(true) {debug ' Inside OID module, no file found' report not_found write 'No Oracle Internet Directory configuration 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, L =begin credits =over 10 =item RDA 4.4: Wes Root. =item RDA 4.9: Irina Donaldson, Anita Hegde, Satheesan Vettahil. =item RDA 4.12: Raju Channabasappa, Wes Root, Jerry Smith, Satheesan Vettahil. =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