# OVDr11.def: Defines Common Macros for Oracle Virtual Directory 11g # $Id: OVDr11.def,v 1.4 2009/02/06 18:22:53 mschenke Exp $ # ARCS: $Header: /u02/webapps/workbench/cvs/RDA_4/src/scripting/lib/modules/OVDr11.def,v 1.4 2009/02/06 18:22:53 mschenke Exp $ # # Change History # 20090206 DEM Encode file names. =head1 NAME OVDr11 - Defines Common Macros for Oracle Virtual Directory 11g =head1 DESCRIPTION This persistent sub module regroups macros that are common to Oracle Virtual Directory in Oracle Application Server 11g. The following macros are available: =cut # Make the module persistent and share macros keep $KEEP_BLOCK,@SHARE_MACROS var @SHARE_MACROS = ('collect_ovd_generic','collect_ovd_instance',\ 'get_components','get_instances') # Load the common macros run ASITlib() =head2 S This macro gathers Oracle Virtual Directory executable list. =cut macro collect_ovd_generic {var ($hom) = @arg debug ' Inside OVD module, gathering executable list' report ovd_bin var $dir = catDir($hom,'bin') prefix write '---+ List of Files in ',encode($dir) call statDir('an',$dir) if isCreated(true) toc '2:[[',getFile(),'][rda_report][Executable List]]' } =head2 S This macro collects Oracle Virtual Directory-related configuration and log files. =cut macro collect_ovd_instance {var ($dsc,$top,\%cmp) = @arg import $TAIL debug ' - Getting Oracle Virtual Directory configuration and log files' var $abr = setAbbr() var $pre = concat('^',quote($top),'\b') loop $key (keys(%cmp)) {var ($typ,$cmp) = split('\|',$key,2) next !match($typ,'^OVD$',true) debug ' - ',$cmp,' component' call setAbbr(concat($abr,'i_',$dsc,'_c_',$cmp)) pretoc "2:'",$cmp,"' OVD Component" # Collect the config files pretoc '3:Configuration Files' call sort_results(4,$TAIL,$pre,'$OI',\ grepDir(catDir($top,'config',$typ,$cmp),'^\.+$','drv')) unpretoc # Collect the log files pretoc '3:Log Files' call sort_results(4,$TAIL,$pre,'$OI',\ grepDir(catDir($top,'diagnostics','logs',$typ,$cmp),'\.log','inp')) unpretoc 2 } call setAbbr($abr) } =head1 SEE ALSO L =begin credits =over 10 =item RDA 4.15: Greg Cook, Andrew Salt. =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