# OIDr11.ctl: Defines Common Macros for Oracle Internet Directory 11g # $Id: OIDr11.ctl,v 1.4 2015/01/02 14:00:34 RDA Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_8/src/scripting/lib/collect/OFM/OIDr11.ctl,v 1.4 2015/01/02 14:00:34 RDA Exp $ # # Change History # 20150102 KRA Extend log files collection. =head1 NAME OFM:OIDr11 - Defines Common Macros for Oracle Internet Directory 11g =head1 DESCRIPTION This persistent submodule regroups macros that are common to Oracle Internet Directory in Oracle Fusion Middleware 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') # Load the common macros run RDA:library() =head2 S This macro collects Oracle Internet Directory instance information. =cut macro collect_oid_instance {var ($pre,$top,\%cmp) = @arg import $TAIL # Collect the instance database information var $env = setLocalEnv('TNS_ADMIN',catDir($top,'config')) run OFM:OIDinfo(true,true) call setLocalEnv('TNS_ADMIN',$env) # Collect the instance files debug ' - Getting Oracle Internet Directory instance files' loop $key (keys(%cmp)) {var ($typ,$cmp) = split('\|',$key,2) next !match($typ,'^oidmon$',true) debug ' - ',$cmp,' component' call setPrefix(concat($pre,'_c_',$cmp)) pretoc "2:'",$cmp,"' OID Component" # Collect the config files pretoc '3:Configuration Files' call sort_files(4,$TAIL,\ 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_files(4,$TAIL,\ grepDir($dir,'^oid(ldapd|mon|repld|stack).*\.log$|.*_stack.*\.dmp$',\ 'inp'),\ grepDir(catDir($top,'OID','load'),'.','p'),\ grepDir(catDir($top,'diagnostics','logs','OID','tools'),'\.log$','p')) unpretoc 2 } call setPrefix($pre) } =head1 SEE ALSO L =begin credits =over 10 =item RDA 4.15: Greg Cook, Andrew Salt. =item RDA 4.20: Hector Viveros. =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