# S531EMS.def: Collects Email Marketing Server Information # $Id: S531EMS.def,v 1.4 2012/01/03 13:34:47 mschenke Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_4/src/scripting/lib/modules/S531EMS.def,v 1.4 2012/01/03 13:34:47 mschenke Exp $ # # Change History # 20120103 MSC Change the copyright notice. =head1 NAME S531EMS - Collects Email Marketing Server Information =head1 DESCRIPTION This module collects Email Marketing Server information for any or all of the following: =over 2 =item o Click Through Daemon =item o Email Server Daemon =item o Web Survey Daemon =back The following reports can be generated and are regrouped under C: =cut echo tput('bold'),'Processing EMS module ...',tput('off') # Initialization var $CTD_HOME = getSetting('EMS_CTD_HOME','') var $ESD_HOME = getSetting('EMS_ESD_HOME','') var $WSD_HOME = getSetting('EMS_WSD_HOME','') var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' pretoc '1:Email Marketing Server' =head1 CLICK THROUGH DAEMON =head2 ctd_cfgpar - Configuration Parameters Collects key configuration parameters from the F<$CTD_HOME/ctd.properties> file. =cut if testDir('d',$CTD_HOME) {pretoc '2:Click Through Daemon' if testFile('fr',$fil = catFile($CTD_HOME,'ctd.properties')) {debug ' Inside EMS Module, getting CTD configuration parameters' report ctd_cfgpar prefix {write '---+ Key Configuration Parameters' write '---## Information Extracted from ',encode($fil) write '|*Name*|*Value*|' } loop $lin (grepFile($fil,'^\s*ctd\.(tomcatPort|webservice\.url)','i')) write '|',key($lin),' |',value($lin),' |' if isCreated(true) toc '3:[[',getFile(),'][rda_report][Configuration Parameters]]' } unpretoc } =head1 EMAIL SERVER DAEMON =head2 esd_cfgpar - Configuration Parameters Collects key configuration parameters from the F<$ESD_HOME/esd.properties> file. =cut if testDir('d',$ESD_HOME) {pretoc '2:Email Server Daemon' if testFile('fr',$fil = catFile($ESD_HOME,'esd.properties')) {debug ' Inside EMS Module, getting ESD configuration parameters' report esd_cfgpar prefix {write '---+ Key Configuration Parameters' write '---## Information Extracted from ',encode($fil) write '|*Name*|*Value*|' } loop $lin (grepFile($fil,\ '^\s*esd\.(handler\.webservice\.url|mailServers|mountpoint|tomcatPort)',\ 'i')) write '|',key($lin),' |',value($lin),' |' if isCreated(true) toc '3:[[',getFile(),'][rda_report][Configuration Parameters]]' } unpretoc } =head1 WEB SURVEY DAEMON =head2 wsd_cfgpar - Configuration Parameters Collects key configuration parameters from the F<$WSD_HOME/webapps/websurveys/config/websurvey.properties> file. =cut if testDir('d',$WSD_HOME) {pretoc '2:Web Survey Daemon' if testFile('fr',$fil = catFile(\ $WSD_HOME,'webapps','websurveys','config','websurvey.properties')) {debug ' Inside EMS Module, getting WSD configuration parameters' report wsd_cfgpar prefix {write '---+ Key Configuration Parameters' write '---## Information Extracted from ',encode($fil) write '|*Name*|*Value*|' } var $pat = cond(isFiltered(),'(password|user|username)$','(password)$') var %msk = (password => '%R:PASSWORD%',\ user => '%R:USER%',\ username => '%R:USER%') loop $lin (grepFile($fil,\ '^\s*(db\.WEBSURVEY\.(password|url|user)|\ SIEBEL_(PASSWORD|URL|USERNAME)|\ survey\.baseURL)','i')) {var $key = key($lin) var $val = value($lin) if match($key,$pat,true) write '|',$key,' |',$msk{lc(last)},' |' else write '|',$key,' |',$val,' |' } if isCreated(true) toc '3:[[',getFile(),'][rda_report][Configuration Parameters]]' } unpretoc } unpretoc =begin credits =over 10 =item RDA 4.25: Gabriel Gonzalez. =back =end credits =head1 COPYRIGHT NOTICE Copyright (c) 2002, 2012, 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