# S354UCM.def: Collects Oracle Universal Content Management Information # $Id: S354UCM.def,v 1.1 2009/08/07 12:28:43 mschenke Exp $ # ARCS: $Header: /u02/webapps/workbench/cvs/RDA_4/src/scripting/lib/modules/S354UCM.def,v 1.1 2009/08/07 12:28:43 mschenke Exp $ # # Change History # 20090721 KRA Initial version. =head1 NAME S354UCM - Collects Oracle Universal Content Management Information =head1 DESCRIPTION This module collects Oracle Universal Content Management-related information. The following reports can be generated and are regrouped under C: =head1 REPORTS =cut echo tput('bold'),'Processing UCM module ...',tput('off') # Initialization var $AGE = getSetting('UCM_LOG_AGE',5) var $TAIL = getSetting('RDA_TAIL',1000) if testDir('d',catDir(getSetting('ORACLE_HOME',''),'ucm')) {var $DOMAIN = getSetting('WLS_DOMAIN','') var $CS_HOME = catDir($DOMAIN,'ucm','cs') var $IBR_HOME = catDir($DOMAIN,'ucm','ibr') } else {var $CS_HOME = getSetting('UCM_CS_HOME','') var $IBR_HOME = getSetting('UCM_IBR_HOME','') var $SSPU_HOME = getSetting('UCM_SSPU_HOME','') } var $MNU = 'Enterprise Content Management' var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' pretoc '^1:',$MNU pretoc '1+:Universal Content Management' # Load the common macros run library() =head2 Content Server Collects Content Server-related information. =cut debug ' Inside UCM module, getting content server configuration files' pretoc '2:Content Server' # Collect the configuration files pretoc '3:Configuration Files' call sort_files(4,0,catFile($CS_HOME,'data','conversion','cvtemplates.hda')) unpretoc =head3 env_info - Environment Information On UNIX, collects Dynamic Converter environment information. =cut if isUnix() {debug ' Inside UCM module, getting dynamic converter environment information' report env_info # Get the environment variables var ($osn,@tbl) = (getOsName(),'DISPLAY','PATH',getSetting('RDA_SHLIB')) prefix {write '---+!! Dynamic Converter Environment Information' write $TOC write '---+ Dynamic Converter Environment Variables' write '|*Variable*|*Value*|' } if compare('eq',$osn,'hpux') var @tbl = (@tbl,'LD_LIBRARY_PATH') loop $key (@tbl) write '|',$key,'|',getEnv($key),' |' if hasOutput(true) write $TOP # Get the locale information if match($osn,'^(aix|hpux|linux|solaris|sunos)$') {if loadCommand('locale') {prefix {write '---+ Locale Information' write '|*Name*|*Value*|' } loop $lin (getLines()) write '|',key($lin),' |',value($lin),' |' if hasOutput(true) write $TOP } } if isCreated() toc '3:[[',getFile(),'][rda_report][Environment Information]]' } unpretoc =head2 Inbound Refinery Collects Inbound Refinery-related information. =cut if $IBR_HOME {debug ' Inside UCM module, getting IBR configuration and log files' pretoc '2:Inbound Refinery' # Collect the configuration files pretoc '3:Configuration Files' call sort_files(4,$TAIL,\ catFile($IBR_HOME,'config','config.cfg'),\ catFile($IBR_HOME,'bin','intradoc.cfg'),\ grepDir(catDir($IBR_HOME,'data','configuration'),'^\.+$','drv'),\ grepDir(catDir($IBR_HOME,'custom','PDFConverter','bin','win32'),\ '^\.+$','drv')) unpretoc # Collect the log files pretoc '3:Log Files' call sort_files(4,0,\ catFile($IBR_HOME,'bin','IdcRefineryNT.log'),\ grepDir(catDir($IBR_HOME,'weblayout','groups','secure','logs'),\ '\.htm$',concat('dirm',$AGE))) unpretoc 2 =head2 Digital Asset Management Collects Digital Asset Management-related information. =cut debug ' Inside UCM module, getting DAM configuration and log files' pretoc '2:Digital Asset Management' # Collect the configuration files pretoc '3:Configuration Files' call sort_files(4,$TAIL,\ grepDir(catDir($IBR_HOME,'data','configuration','dam'),'^\.+$','drv')) unpretoc 2 } =head2 Web Content Management =head3 Site Studio Publishing Utility Collects Site Studio Publishing Utility-related information. =cut if $SSPU_HOME {debug ' Inside UCM module, getting SSPU configuration and log files' pretoc '2:Web Content Management' pretoc '3:Site Studio Publishing Utility' # Collect the configuration files pretoc '4:Configuration Files' call sort_files(5,$TAIL,\ catFile($SSPU_HOME,'sitestudio.config'),\ grepDir($SSPU_HOME,'^cns\.(db2|oracle|sqlserver)\.config$','ip')) unpretoc # Collect the log files pretoc '4:Log Files' call sort_files(5,$TAIL,catFile($SSPU_HOME,'syndicator.log')) unpretoc 3 } # Disable the group title in next index if isTocCreated(true) toc '-:',$MNU =head1 SEE ALSO L =begin credits =over 10 =item RDA 4.17: Jeremy Reilmann, Matt Rudd. =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