# DCasit.cfg: Collects Information for Fusion Middleware Installation Types # $Id: DCasit.cfg,v 1.8 2015/01/16 10:10:29 RDA Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_8/src/scripting/lib/collect/OFM/DCasit.cfg,v 1.8 2015/01/16 10:10:29 RDA Exp $ # # Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. # # Change history # 20150114 KRA Trigger WLS module as part of ASIT setup. ############################################################################### # Collect the setup information for multiple AS installation types ############################################################################### #------------------------------------------------------------------------------ # Module definition #------------------------------------------------------------------------------ col=${B_IN_USE} dsc='Collects Information for Multiple Fusion Middleware Installation Types' man="Applies to the following installation types of Oracle Fusion Middleware \ 11g and later:\n \ * Oracle Business Intelligence Enterprise Edition\n \ * Oracle Forms and Reports\n \ * Oracle Identity Management\n \ * Oracle Portal, Forms, Reports and Discoverer\n \ * Web Tier" pre=OFM:DCinit req=?B_REQ_IREQ:DCireq,?B_REQ_WLS:OFM:DCwls rpt=B_IN_USE,D_INSTANCE_ROOT tgt=${I_OHC/C} trg=?B_REQ_IREQ:DCireq,?B_REQ_WLS:OFM:DCwls,?B_REQ_WLS:OFM:DCwreq var=not_used # Flow:in_use,B_IN_USE exe=sdcl { "if ${GRP.INIT.I_OH} "{var ${I_OHC/T} = $itm = last " var $ORACLE_HOME = $itm->get_first('D_ORACLE_HOME') " var ${B_REQ_IREQ/T} = undef " var ${B_REQ_WLS/T} = undef " if or(match($itm->get_first('T_PRODUCT'),\ " '^(Classic Application Server 11g|\ " Oracle Forms and Reports 11g|\ " Oracle Identity Management 11g|\ " Oracle Portal, Forms, Reports and Discoverer 11g|\ " Oracle WebTier)'),\ " testDir('d',catDir($itm->get_first('D_ORACLE_HOME'),'opmn'))) " var @{AUX.var} = (cond(${PRF.B_TESTS}, 'in_use',\ " not(${GRP.IAS.B_IN_USE}),'B_IN_USE')) " keep $ORACLE_HOME "} " "macro check_instance "{loop $ins (findDir($arg[0],'^[^\.]+$','np')) " {if ?testFile('f',catFile($ins,'bin',${AS.BATCH:'opmnctl'})) " return 1 " } " return 0 "} " "macro is_valid_instance "{var ($nam,$dir) = @arg " require testDir('d',$dir),\ " 'The specified instance root directory does not exist.' " require isAbsolute($dir),\ " 'The specified instance root directory is not an absolute path.' " require check_instance($dir),\ " 'The specified instance root directory does not contain some Oracle \ " Fusion Middleware instance related-files. Without a valid directory, the \ " collection will not contain complete instance data.' " var ${AUX.nam} = $nam " return true "} } #------------------------------------------------------------------------------ # Setting definitions #------------------------------------------------------------------------------ [in_use] typ=B dft=true dsc='Is Oracle Fusion Middleware information requested?' nam=B_IN_USE var=set_primary,I_OHC [not_used] typ=B dft=false dsc='Is Oracle Fusion Middleware information requested?' nam=B_IN_USE [B_IN_USE] typ=B dft=${AUX.B_SELECTED} dsc='Is Oracle Fusion Middleware information requested?' inp="This module supports the following Oracle Fusion Middleware 11g \ installation types:\n \ * Oracle Business Intelligence Enterprise Edition\n \ * Oracle Forms and Reports\n \ * Oracle Identity Management\n \ * Oracle Portal, Forms, Reports and Discoverer\n \ * Web Tier\n\ Do you want RDA to analyze any of those installation types (Y/N)?" var=true:set_primary,I_OHC [set_primary] typ=B dft=cond(${PRF/B_OFM_PROFILE},${PRF.B_PRIMARY},true) dsc='Is ASIT the primary module?' nam=B_PRIMARY var=true:instance_root #------------------------------------------------------------------------------ # Setting definitions for Oracle Instance #------------------------------------------------------------------------------ [instance_root] typ=D alt=D_INSTANCE_ROOT dft=${SET.RDA.BEGIN.D_INSTANCE_ROOT} dsc='Instance root directory' nam=D_INSTANCE_ROOT var=I_ORACLE_INSTANCES,set_req_instance [D_INSTANCE_ROOT] typ=D dsc='Instance root directory' fmt='<$dir,\ " T_TITLE=>"Instance home ${VAR.dir}"}))) "var ${AUX.dft} = [@itm] } [set_req_instance] typ=B dft=false dsc='Does ASIT require Oracle instance request handler execution?' nam=B_REQ_IREQ exe=sdcl { "var ($flg,%tgt) = (false) "if !or($flg,${PRF/B_OFM_PROFILE}) "{if ?${I_OHC} " {var ${MOD.IREQ_OFM_ASIT_OH.I_ORACLE_HOME:\ " 'Target associated with the Oracle home'} = ${I_OHC} " var $flg = true " } "} "loop $tgt (@{I_ORACLE_INSTANCES}) "{var $dir = $tgt->get_first('D_ORACLE_INSTANCE') " next !?testFile('f',catFile($dir,'bin',${AS.BATCH:'opmnctl'})) " var $oid = $tgt->get_oid " var ${MOD.IREQ_OFM_ASIT_${VAR.oid}.I_ORACLE_INSTANCE:\ " 'Target associated with the Oracle instance home'} = $tgt " var ${MOD.IREQ_OFM_ASIT_${VAR.oid}.D_EXTRA_TNSADMIN:\ " 'List of extra TNS_ADMIN directories'} = catDir($dir,'config') " if ?$tgt->get_first('I_ORACLE_HOME')->get_prime('I_COMMON_HOME') " var $tgt{last->get_oid} = last " var $flg = true "} "loop $oid (keys(%tgt)) "{var ${MOD.IREQ_OFM_ASIT_${VAR.oid}.I_COMMON_HOME:\ " 'Target associated with the Oracle common home'} = $tgt{$oid} " var ${MOD.IREQ_OFM_ASIT_${VAR.oid}.T_CH_FOCUS:\ " 'Focus areas for common home collection'} = 'Manifest' "} "if ?testDir('d',catDir($ORACLE_HOME,upDir(),'utils')) " var ${B_REQ_WLS:'Does ASIT require WLS?'} = true "var ${AUX.dft} = $flg } #------------------------------------------------------------------------------ # Common settings #------------------------------------------------------------------------------ [I_OHC] typ=I cls='OH' dsc='Target associated with the Oracle home' vis=false