# S563HPL.def: Collects Oracle Hyperion Planning Information # $Id: S563HPL.def,v 1.2 2009/05/16 15:40:19 mschenke Exp $ # ARCS: $Header: /u02/webapps/workbench/cvs/RDA_4/src/scripting/lib/modules/S563HPL.def,v 1.2 2009/05/16 15:40:19 mschenke Exp $ # # Change History # 20090515 DEM Do not collect old log files. =head1 NAME S563HPL - Collects Oracle Hyperion Planning Information =head1 DESCRIPTION This module collects information for Oracle Hyperion Planning. The following reports can be generated and are regrouped under C: =cut echo tput('bold'),'Processing HPL module ...',tput('off') # Initialization var $AGE = getSetting('HPL_LOG_AGE',15) var $HYPERION_HOME = getSetting('HPL_HOME',getEnv('HYPERION_HOME','')) var $ORACLE_HOME = getSetting('ORACLE_HOME',getEnv('ORACLE_HOME','')) var $TAIL = getSetting('HPL_TAIL',1000) var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' pretoc '1:Planning' # Load the common library run library() =head2 plan_files - Planning Home Files Reports the contents of F<$HYPERION_HOME/Planning> directory. =cut report plan_files debug ' Inside HPL module, getting contents of Planning directory' prefix {write '---+!! Contents of Planning directory' write '---## Information Taken from ',encode($dir) write $TOC } var $dir = catDir($HYPERION_HOME,'Planning') loop $fil ($dir,grepDir($dir,'^\.+$','drv')) {if testDir('d',$fil) {write '---++ Contents of ',encode($fil) call statDir('an',$fil) write $TOP } } if isCreated(true) toc '2:[[',getFile(),'][rda_report][Planning Home Files]]' =head2 Configuration Files Collects configuration files. =cut pretoc '2:Configuration Files' debug ' Inside HPL module, getting configuration files' call sort_files(3,0,\ catFile($HYPERION_HOME,'Planning','Planning.SystemDBproperties'),\ catFile($HYPERION_HOME,'Planning','HBRServer.properties'),\ catFile($HYPERION_HOME,'Planning','config','essbase.properties'),\ catFile($HYPERION_HOME,'deployments','WebLogic9','config','config.xml'),\ grepDir(catDir($HYPERION_HOME,'deployments','Tomcat5'),\ 'Deploy\.properties$','p'),\ grepDir(catDir($HYPERION_HOME,'deployments'),'CSS\.xml','r'),\ grepDir(catDir($HYPERION_HOME,'common','config','product','planning',\ '9.3.1.0'),\ '\.(xml|properties)$','p'),\ grepDir(catDir($HYPERION_HOME,'common','config','9.5.0.0','product',\ 'planning','9.5.0.0'),\ '\.(xml|properties)$','p'),\ grepDir(catDir($HYPERION_HOME,'deployments','Tomcat5','HyperionPlanning',\ 'webapps','HyperionPlanning','WEB-INF','classes'),\ '\.(xml|properties)$','p'),\ grepDir(catDir($HYPERION_HOME,'deployments','WebLogic9','servers',\ 'HyperionPlanning','webapps','HyperionPlanning','WEB-INF',\ 'classes'),\ '\.(xml|properties)$','p'),\ grepDir(catDir($HYPERION_HOME,'deployments','WebSphere6','profile',\ 'installedApps','hyslCell','HyperionPlanning.ear',\ 'HyperionPlanning.war','WEB-INF','classes'),\ '\.(xml|properties)$','p'),\ grepDir(catDir($ORACLE_HOME,'j2ee','HyperionPlanning','applib'),\ '\.(xml|properties)$','p')) =head2 Business Rules log files Collects business rules log files. =cut pretoc '2:Business Rules Log Files' debug ' Inside HPL module, getting business rule log files' call sort_files(3,$TAIL,\ catFile($HYPERION_HOME,'AnalyticAdministrationServices','console','bin',\ 'hbrclient.log'),\ catFile($HYPERION_HOME,'deployments','Tomcat5','bin','hbrserver.log'),\ catFile($HYPERION_HOME,'deployments','WebSphere6','profile',\ 'hbrserver.log'),\ catFile($HYPERION_HOME,'AnalyticAdministrationServices','AppServer',\ 'InstalledApps','WebLogic','8.1','aasDomain','hbrserver.log'),\ catFile($HYPERION_HOME,'deployments','WebLogic9','hbrserver.log'),\ catFile($HYPERION_HOME,'deployments','Tomcat5','bin','hbrlaunch.log'),\ catFile($HYPERION_HOME,'deployments','WebSphere6','profile',\ 'hbrlaunch.log'),\ catFile($HYPERION_HOME,'AnalyticAdministrationServices','AppServer',\ 'InstalledApps','WebLogic','8.1','aasDomain','hbrlaunch.log'),\ catFile($HYPERION_HOME,'deployments','WebLogic9','hbrlaunch.log')) =head2 Other log Files Collects other log files. =cut pretoc '2:Other log Files' debug ' Inside HPL module, getting other log files' var $opt = concat('pm',$AGE) call sort_files(3,$TAIL,\ catFile($HYPERION_HOME,'deployments','WebSphere6','profile','logs',\ 'HyperionPlanning','SystemErr.log'),\ catFile($HYPERION_HOME,'deployments','WebSphere6','profile','logs',\ 'HyperionPlanning','SystemOut.log'),\ catFile($HYPERION_HOME,'deployments','Tomcat5','HyperionPlanning',\ 'logs','Planning_log.txt'),\ catFile($HYPERION_HOME,'deployments','WebLogic9','servers',\ 'HyperionPlanning','logs','HyperionPlanning.log'),\ grepDir(catDir($HYPERION_HOME,'logs'),\ '\.log$',$opt),\ grepDir(catDir($HYPERION_HOME,'Planning','logs'),\ '\.log$',$opt),\ grepDir(catDir($ORACLE_HOME,'j2ee','HyperionPlanning',\ 'application-deployments','HyperionPlanning'),\ '\.log$',$opt),\ grepDir(catDir($HYPERION_HOME,'deployments','Tomcat5','HyperionPlanning',\ 'logs'),\ '\.log$',$opt),\ grepDir(catDir($HYPERION_HOME,'WebSphere6','profile','logs',\ 'HyperionPlanning'),\ '\.log$',$opt),\ grepDir(catDir($HYPERION_HOME,'deployments','Tomcat5','HyperionPlanning',\ 'webapps','HyperionPlanning','WEB-INF','classes'),\ '\.log$',$opt),\ grepDir(catDir($HYPERION_HOME,'deployments','WebLogic9','servers',\ 'HyperionPlanning','webapps','HyperionPlanning','WEB-INF',\ 'classes'),\ '\.log$',$opt),\ grepDir(catDir($HYPERION_HOME,'deployments','WebSphere6','profile',\ 'installedApps','hyslCell','HyperionPlanning.ear',\ 'HyperionPlanning.war','WEB-INF','classes'),\ '\.log$',$opt),\ grepDir(catDir($ORACLE_HOME,'j2ee','HyperionPlanning','applib'),\ '\.log$',$opt)) =head1 SEE ALSO L =begin credits =over 10 =item RDA 4.16: Sudev Alampalli. =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