# PDAr11.def: Defines Common Macros for Portal 11g # $Id: PDAr11.def,v 1.2 2009/01/27 17:44:52 mschenke Exp $ # ARCS: $Header: /u02/webapps/workbench/cvs/RDA_4/src/scripting/lib/modules/PDAr11.def,v 1.2 2009/01/27 17:44:52 mschenke Exp $ # # Change History # 20090127 KRA Improve report names. =head1 NAME PDAr11 - Defines Common Macros for Portal 11g =head1 DESCRIPTION This persistent sub module regroups macros that are common to Portal in Oracle Application Server 11g. The following macro is available: =cut # Make the module persistent and share macros keep $KEEP_BLOCK,@SHARE_MACROS var @SHARE_MACROS = ('analyze_ohs_logs','get_components','get_instances') # Load the common macros run IAS() run ASITlib() =head2 S This macro collects Portal instance information. =cut macro analyze_ohs_logs {var ($dsc,$top,$use,$ver,\%cmp) = @arg import %HTTPDCONF,%HTTPDERRLOG debug ' - Getting Portal performance related information' var $abr = setAbbr() loop $key (keys(%cmp)) {var ($typ,$cmp) = split('\|',$key,2) next !match($typ,'^OHS$',true) debug ' - ',$cmp,' component' var (%HTTPDCONF,%HTTPDERRLOG) = () var ($fil) = (grepDir(catDir($top,'config',$typ,$cmp),\ '^httpd(s)?\.conf$','pf')) call setTempSetting('HTTPD_CONF_LOCATION',$fil) # Get the ohs error file (more recent complete one in case of rotation) call httpServer_getListenerConf(true,$top,$typ,$cmp) call httpServer_getListenerLogs(true,$top,$typ,$cmp) var ($max,$fil) = (0) loop $log (keys(%HTTPDERRLOG)) {if expr('>',$HTTPDERRLOG{$log},$max) var ($fil,$max) = ($log,$HTTPDERRLOG{$log}) } # Analyze the performances if $fil {pretoc "2:'",$cmp,"' OHS Component" call setAbbr(concat($abr,'i_',$dsc,'_c_',$cmp)) run PDAperf(3,$use,$ver,$fil) unpretoc } } call setTempSetting('HTTPD_CONF_LOCATION') call setAbbr($abr) } =head1 SEE ALSO L, L =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