# DCoia.ctl:347:Collects Oracle Identity Analytics Information # $Id: DCoia.ctl,v 1.5 2013/11/26 11:18:44 RDA Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_8/src/scripting/lib/collect/OFM/DCoia.ctl,v 1.5 2013/11/26 11:18:44 RDA Exp $ # # Change History # 20131126 MSC Improve the documentation. =head1 NAME OFM:DCoia - Collects Oracle Identity Analytics Information =head1 DESCRIPTION This module collects information related to Oracle Identity Analytics, formerly known as Sun Role Manager. The following reports can be generated and are regrouped under C: =head1 REPORTS =cut echo tput('bold'),'Processing OFM.OIA module ...',tput('off') # Initialization var $OIA_HOME = ${D_HOME:''} var $OIA_RBACXWAR_PATH = ${D_RBACXWAR_PATH:''} var $WAS_PATH = ${D_WAS_PATH:''} var $WAS_TYPE = ${W_WAS} var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' toc '%TITLE("1:Oracle Identity Analytics")%' # Load common macros run RDA:library() call setSymbol('$OIA_HOM',$OIA_HOME) var %tbl = (JBS => '$JBOSS',\ TOM => '$TOMCAT',\ WLS => '$DOM',\ WSP => '$PROFILE') if missing($tbl{$WAS_TYPE}) echo 'Invalid Web server type' elsif ?testDir('d',$WAS_PATH) call setSymbol($tbl{$WAS_TYPE},$WAS_PATH) =head2 abbr_used - Abbreviations Displays the RDA abbreviations defined for Oracle Identity Analytics collection. =cut report abbr_used prefix {write '---+ Oracle Identity Analytics Abbreviations' write '|*Abbreviation*|*Location*|' } var %hsh = getSymbols() loop $abr (keys(%hsh)) write '|',$abr,' |',$hsh{$abr},' |' if isCreated(true) toc '%TITLE("2:[[',getFile(),'][rda_report][Abbreviations]]")%' =head2 OIA Configuration Files Collects Oracle Identity Analytics configuration files. =cut debug ' Inside OIA module, collecting the OIA configuration files' pretoc '2:OIA Configuration Files' call sort_files(3,0,\ grepDir(catDir($OIA_HOME,'conf'),'^\.+$','drv'),\ grepDir(catDir($OIA_RBACXWAR_PATH,'WEB-INF'),'^\.+$','drv')) unpretoc =head2 OIA Log Files Collects Oracle Identity Analytics log files. =cut debug ' Inside OIA module, collecting the OIA log files' pretoc '2:OIA Log Files' call sort_files(3,0,catFile($OIA_HOME,'logs','rbacx.log')) unpretoc =head2 JBoss Server Log Files Collects JBoss server log files. =cut if ?testDir('d',$WAS_PATH) {if compare('eq',$WAS_TYPE,'JBS') {debug ' Inside OIA module, collecting the JBoss log files' pretoc '2:JBoss Server Log Files' call sort_files(3,0,catFile($WAS_PATH,'server','default','log','server.log')) unpretoc } =head2 Tomcat Server Log Files Collects Tomcat server log files. =cut elsif compare('eq',$WAS_TYPE,'TOM') {debug ' Inside OIA module, collecting the Tomcat log files' pretoc '2:Tomcat Server Log Files' call sort_files(3,0,catFile($WAS_PATH,'logs','catalina.out')) unpretoc } =head2 Oracle WebLogic Server Log Files Collects Oracle WebLogic server log files from the specified servers. =cut elsif compare('eq',$WAS_TYPE,'WLS') {debug ' Inside OIA module, collecting the WebLogic log files' pretoc '2:Oracle WebLogic Server Log Files' loop $srv (@{W_WLS_SERVERS}) {pretoc "3:'",$srv,"' Server" call sort_files(4,0,\ grepDir(catDir($WAS_PATH,'servers',$srv,'logs'),\ concat('^',verbatim($srv),'\.log$'),'p')) unpretoc } unpretoc } =head2 IBM WebSphere Server Log Files Collects IBM WebSphere server log files from the specified servers. =cut elsif compare('eq',$WAS_TYPE,'WSP') {debug ' Inside OIA module, collecting the Websphere log files' pretoc '2:IBM WebSphere Server Log Files' loop $srv (@{W_WSP_SERVERS}) {pretoc "3:'",$srv,"' Server" call sort_files(4,0,\ grepDir(catDir($WAS_PATH,'logs',$srv),'^System(Err|Out)\.log$','p')) unpretoc } unpretoc } } toc '%UNTITLE2%' =head1 SEE ALSO L =begin credits =over 10 =item RDA 4.27: Mark Wang. =back =end credits =head1 COPYRIGHT NOTICE Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. =head1 TRADEMARK NOTICE Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. =cut