# S325PDA.def: Collects Portal Diagnostics Information # $Id: S325PDA.def,v 1.29 2009/01/30 14:20:29 mschenke Exp $ # ARCS: $Header: /u02/webapps/workbench/cvs/RDA_4/src/scripting/lib/modules/S325PDA.def,v 1.29 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 S325PDA - Collects Portal Diagnostics Information =head1 DESCRIPTION This module collects the Portal diagnostics-related information. The reports are regrouped under C. =cut echo tput('bold'),'Processing PDA module ...',tput('off') # Initialization var $MNU = '1:Portal Diagnostics' var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' var %HTTPDCONF var %HTTPDERRLOG var $OC4J_USED var $VERSION # Collect the Portal information if or(getSetting('ASIT_IN_USE'),testDir('d',catDir($ORACLE_HOME,'rcu'))) {# Abort collection when merged if getSetting('ASIT_MERGE',true) {echo "PDA collection performed by the ASIT module" return } # Collect the portal repository information pretoc $MNU pretoc '1+:Oracle Home' run PDAinfo(\$OC4J_USED,\$VERSION) unpretoc # Load the common macros var ($CNT,%DUP) = (0) run PDAr11() # 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 its associated components var $top = catDir($hom,$ins) var $dsc = get_components(\%cmp,$top,$ins,'^OHS$') # Skip instances without relevant components next !keys(%cmp) # Treat relevant components debug ' Inside PDA module, analyzing instance ',$dsc if isTocCreated(true) pretoc '%SPLIT%' else pretoc $MNU pretoc "1+:'",$dsc,"' Instance" call analyze_ohs_logs($dsc,$top,$OC4J_USED,$VERSION,\%cmp) unpretoc 2 } } else {# Collect the portal repository information pretoc $MNU run PDAinfo(\$OC4J_USED,\$VERSION) # Analyze the log files run PDAlog($OC4J_USED,$VERSION) unpretoc } =head1 SEE ALSO L, L, L, L, L =begin credits =over 10 =item RDA 4.5: Ersan Eser, Krishna Kumar, Rishi Mehrotra, Meraj Mohammed. =item RDA 4.6: Ersan Eser. =item RDA 4.12: Meraj Mohammed. =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