# S387BI.def: Collects Oracle Business Intelligence Information # $Id: S387BI.def,v 1.3 2008/02/22 17:08:19 mschenke Exp $ # ARCS: $Header: /home/cvs/repository/RDA_4/src/scripting/lib/modules/S387BI.def,v 1.3 2008/02/22 17:08:19 mschenke Exp $ # # Change History # 20080222 MSC Fix the description. =head1 NAME S378BI - Collects Oracle Business Intelligence Information =head1 DESCRIPTION This module collects the Oracle Business Intelligence-related information. The following reports can be generated and are regrouped under C: =cut echo tput('bold'),'Processing BI module ...',tput('off') # Initialization var $ORACLE_HOME = getSetting('ORACLE_HOME','') var $BI_HOME = getSetting('BI_HOME','') var $BI_DATA = getSetting('BI_DATA','') var $TAIL = getSetting('BI_TAIL',5000) var $AGE = getSetting('BI_LOG_AGE',5) var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' pretoc '1:Oracle Business Intelligence' # Load the common macros run library() =head2 bi_version - Version Information Gathers version information. =cut debug ' Inside BI module, getting version information' report bi_version call cat_file(catDir($BI_HOME,'server','Document'),'version.txt') if isCreated(true) toc '2:[[',getFile(),'][rda_report][Version Information]]' =head2 present_config - Presentation Server Configuration Gathers presentation server configuration information. =cut pretoc '2:Configuration Files' debug ' Inside BI module, getting presentation server configuration' report present_config call cat_file(catDir($BI_DATA,'web','config'),'instanceconfig.xml') if isCreated(true) toc '3:[[',getFile(),'][rda_report][Presentation Server]]' =head2 server_config - Server Configuration Gathers server configuration information. =cut debug ' Inside BI module, getting server configuration' report server_config call cat_file(catDir($BI_HOME,'server','Config'),'NQSConfig.INI') if isCreated(true) toc '3:[[',getFile(),'][rda_report][Server]]' =head2 cluster_config - Cluster Controller Configuration Gathers cluster controller configuration information. =cut debug ' Inside BI module, getting cluster controller configuration' report cluster_config call cat_file(catDir($BI_HOME,'server','Config'),'NQClusterConfig.INI') if isCreated(true) toc '3:[[',getFile(),'][rda_report][Cluster Controller]]' unpretoc =head2 Log Files Gathers important log files. =cut pretoc '2:Log Files' debug ' Inside BI module, getting server log' report server_log call tail_file(catDir($BI_HOME,'server','Log'),'NQServer.log',$TAIL) if isCreated(true) toc '3:[[',getFile(),'][rda_report][Server]]' debug ' Inside BI module, getting query log' report query_log call tail_file(catDir($BI_HOME,'server','Log'),'NQQuery.log',$TAIL) if isCreated(true) toc '3:[[',getFile(),'][rda_report][Query]]' debug ' Inside BI module, getting scheduler log' report scheduler_log call tail_file(catDir($BI_HOME,'server','Log'),'NQScheduler.log',$TAIL) if isCreated(true) toc '3:[[',getFile(),'][rda_report][Scheduler]]' debug ' Inside BI module, getting administration tool log' report admin_log call tail_file(catDir($BI_HOME,'server','Log'),'NQSAdminTool.log',$TAIL) if isCreated(true) toc '3:[[',getFile(),'][rda_report][Administration Tool]]' debug ' Inside BI module, getting install log' report install_log call tail_file(catDir($BI_HOME,'log'),'install.log',$TAIL) if isCreated(true) toc '3:[[',getFile(),'][rda_report][Install]]' debug ' Inside BI module, getting cluster controller log' report cluster_log call tail_file(catDir($BI_HOME,'server','Log'),'NQCluster.log',$TAIL) if isCreated(true) toc '3:[[',getFile(),'][rda_report][Cluster Controller]]' pretoc '3:Presentation Server' var $dir = catDir($BI_DATA,'web','log') loop $fil (grepDir($dir,'^sawlog.*\.log$'),concat('im',$AGE)) {report concat('web_',$fil) call tail_file($dir,$fil,$TAIL) if isCreated(true) toc '4:[[',getFile(),'][rda_report][',$fil,']]' } unpretoc pretoc '3:Javahost' var $dir = catDir($BI_DATA,'web','log','javahost') loop $fil (grepDir($dir,'^jhost0\.log\.'),concat('im',$AGE)) {report concat('java_',$fil) call tail_file($dir,$fil,$TAIL) if isCreated(true) toc '4:[[',getFile(),'][rda_report][',$fil,']]' } unpretoc 2 =head2 repository - Repositories Gathers repositories. =cut debug ' Inside BI module, getting repositories' report repository prefix {write '---+ Collected Repositories' write '|*Repository Name*| *Size*|*Last Modification*|' } suspend report var $rep = getSetting('BI_REPOSITORY','All') if compare('eq',$rep,'All') var @fil = grepDir(catDir($BI_HOME,'server','Repository'),'\.rpd$','inp') elsif compare('eq',$rep,'None') var @fil = () else var @fil = (catFile($BI_HOME,'server','Repository',$rep)) loop $fil (@fil) {data concat('rep_',basename($fil)) if writeData($fil) {var $rpt = getFile('.') resume report write '|[[',$rpt,'][_blank][',$fil,']]| ',getSize($fil),'|',\ getLastModify($fil,'%d-%b-%Y %H:%M:%S'),' |' suspend report } } resume report if isCreated(true) toc '2:[[',getFile(),'][rda_report][Repositories]]' unpretoc =head1 SEE ALSO See also L. =begin credits =over 10 =item RDA 4.11: Ravindrasinh Parmar. =back =end credits =head1 COPYRIGHT NOTICE Copyright (c) 2002-2008, 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