# OIDr11.def: Defines Common Macros for Oracle Internet Directory 11g # $Id: OIDr11.def,v 1.2 2009/01/27 17:44:52 mschenke Exp $ # ARCS: $Header: /u02/webapps/workbench/cvs/RDA_4/src/scripting/lib/modules/OIDr11.def,v 1.2 2009/01/27 17:44:52 mschenke Exp $ # # Change History # 20090127 KRA Imporve report names. =head1 NAME OIDr11 - Defines Common Macros for Oracle Internet Directory 11g =head1 DESCRIPTION This persistent sub module regroups macros that are common to Oracle Internet Directory in Oracle Application Server 11g. The following macro is available: =cut # Make the module persistent and share macros keep $KEEP_BLOCK,@SHARE_MACROS var @SHARE_MACROS = ('collect_oid_instance','get_components','get_instances') # Load the common macros run ASITlib() =head2 S This macro collects Oracle Internet Directory instance information. =cut macro collect_oid_instance {var ($dsc,$top,\%cmp) = @arg import $TAIL # Collect the instance files debug ' - Getting Oracle Internet Directory instance files' var $abr = setAbbr() var $pre = concat('^',quote($top),'\b') loop $key (keys(%cmp)) {var ($typ,$cmp) = split('\|',$key,2) next !match($typ,'^oidmon$',true) debug ' - ',$cmp,' component' call setAbbr(concat($abr,'i_',$dsc,'_c_',$cmp)) pretoc "2:'",$cmp,"' OID Component" # Collect the config files pretoc '3:Configuration Files' call sort_results(4,$TAIL,$pre,'$OI',\ grepDir(catDir($top,'config','OID',$cmp),'\.(conf|properties|xml)$','dir')) unpretoc # Collect the log files pretoc '3:Log Files' var $dir = catDir($top,'diagnostics','logs','OID',$cmp) call sort_results(4,$TAIL,$pre,'$OI',\ grepDir($dir,'oid(ldapd|mon|repld).*\.log','inp'),\ grepDir(catDir($top,'OID','load'),'.','p')) 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