# DCoud.cfg: Collects Oracle Unified Directory Information # $Id: DCoud.cfg,v 1.10 2015/09/25 00:35:35 RDA Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_8/src/scripting/lib/collect/OFM/DCoud.cfg,v 1.10 2015/09/25 00:35:35 RDA Exp $ # # Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. # # Change history # 20150924 MSC Eliminate trailing spaces. ############################################################################### # Collect Oracle Unified Directory setup information ############################################################################### #------------------------------------------------------------------------------ # Module definition #------------------------------------------------------------------------------ col=${B_IN_USE} dsc='Collects Oracle Unified Directory Information' fam=Cygwin,Unix,Windows pre=OFM:DCinit rpt=B_IN_USE,B_ADVANCED tgt=${I_OHC/C} var=not_used # Flow:in_use,B_IN_USE exe=sdcl { "if ${GRP.INIT.I_OH} "{var ${I_OHC/T} = $itm = last " if or(match($itm->get_first('T_PRODUCT'),'^Oracle Unified Directory'),\ " grepDir($itm->get_first('D_ORACLE_HOME'),\ " '^oud(-proxy|-replication-gateway)-setup(\.bat)?$','fip')) " var @{AUX.var} = (cond(${PRF.B_TESTS},'in_use','B_IN_USE')) "} " "macro is_valid_instance "{var ($nam,$dir) = @arg " require testDir('d',$dir),\ " 'The specified instance home directory does not exist.' " require isAbsolute($dir),\ " 'The specified instance home directory is not an absolute path.' " require testDir('d',catDir($dir,'OUD')),\ " 'The specified instance home directory does not contain some OUD 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 Unified Directory in use?' nam=B_IN_USE var=D_INSTANCE,B_REPLICATION,T_HOST,N_ADMIN_PORT,N_LDAP_PORT,N_LDAPS_PORT,\ T_DIR_MANAGER,D_JDK,B_ADVANCED,N_TAIL,I_OHC [not_used] typ=B dft=false dsc='Is Oracle Unified Directory in use?' nam=B_IN_USE [B_IN_USE] typ=B dft=${AUX.B_SELECTED} dsc='Is Oracle Unified Directory in use?' inp='Do you want RDA to collect Oracle Unified Directory information (Y/N)?' var=true:D_INSTANCE,B_REPLICATION,T_HOST,N_ADMIN_PORT,N_LDAP_PORT,N_LDAPS_PORT,\ T_DIR_MANAGER,D_JDK,B_ADVANCED,N_TAIL,I_OHC #------------------------------------------------------------------------------ # Setting definitions for Oracle Instance #------------------------------------------------------------------------------ [D_INSTANCE] typ=D dft=${ENV.ORACLE_INSTANCE} dsc='Instance home directory' fmt='< 'DB Information',\ MONITOR_STAT => 'Monitoring Statistics',\ JAVA_STAT => 'Java Statistics',\ INSTANCE_HANG => 'Instance Hang Capture'] lvl=3 mnu=cond(isWindows(),list('1','2'),\ isCygwin(), list('1','2'),\ list('1','2','3','4')) pck=1 val=E [chk_menu] typ=B dft=grep(@{W_MENU},'MONITOR_STAT|JAVA_STAT|INSTANCE_HANG','f') dsc='Apply the menu-related setup' nam=- var=true:N_LOOP,N_SLEEP [N_LOOP] typ=N dft=4 dsc='Number of iterations to perform on the items selected in the menu' err='The number of iterations must be a positive integer' hlp="Item 'DB Information' will not be included in the iteration" inp='Enter the number of iterations to perform on the items selected in the \ menu' lvl=3 ref='I[0,[' val=F [N_SLEEP] typ=N dft=30 dsc='Number of seconds to sleep between each iterations' err='The number of seconds must be a positive integer' inp='Enter the wait time (in seconds) between each iterations' lvl=3 ref='I[0,[' val=F [N_TAIL] typ=N dft=1000 dsc='Maximum number of lines to extract from each log file' err='The number of lines must be an positive integer' hlp='Providing zero as input collects the whole log file.' inp='How many lines do you want RDA to extract starting from the end of each \ log file?' lvl=6 ref='I[0,[' val=F [I_OHC] typ=I cls='OH' dsc='Target associated with the Oracle home' vis=false