<sdp_diaglet platform="linux" product="AS1013" set="A300AS1013_lni" title="Oracle Application Server 10g R3 (10.1.3) PreInstall (IA-64 Linux)" type="A">
<sdp_meta id="$Id: A300AS1013_lni.xml,v 1.11 2009/01/28 22:01:24 mschenke Exp $" type="version"/>
<sdp_meta author="PRE" change="Modify swap calculation" type="history"/>
<sdp_content set="A300AS1013_lni" title="Oracle Application Server 10g R3 (10.1.3) PreInstall (IA-64 Linux)" type="check">
<sdp_group>
<sdp_rule id="A00010" mode="RECORD" name="OS Type">
<sdp_command type="RDA"><![CDATA[import $OS_TYP,$OS_NAM
call setHcveResult(concat($OS_TYP,' ',$OS_NAM))
]]></sdp_command>
<sdp_description><![CDATA[This rule retrieves the OS type.]]></sdp_description>
</sdp_rule>
<sdp_rule id="A00020" mode="VERIFY" name="Processor Type">
<sdp_command type="RDA"><![CDATA[var @CPU = ()
call setHcveVariable('@CPU')
if !testFile('r','/proc/cpuinfo')
 return setHcveResult('Cannot access /proc/cpuinfo')
var @CPU = grepFile('/proc/cpuinfo','.')
var ($CPU) = grep(@CPU,'Itanium','if')
call setHcveResult(cond(\
  grep(@CPU,'model name','if'),\
        field('\s+:\s+',1,grep(@CPU,'model name','if')),\
  $CPU, 'Itanium',\
        'Model name not found'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks for the processor type. The minimum requirement for the processor type is Pentium (32-bit).]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" minimum="Cannot access" result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Cannot access /proc/cpuinfo|Grant read permission on /proc/cpuinfo to the current user.|]]></sdp_action>
<sdp_action result="PASSED"><![CDATA[No action is required.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00022" mode="VERIFY" name="Processor speed">
<sdp_command type="RDA"><![CDATA[import @CPU
if !defined($CPU[0])
 return setHcveResult('Cannot access /proc/cpuinfo')
call setHcveResult(field('\s+:\s+',1,grep(@CPU,'cpu MHz','f')))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks the processor speed. The minimum requirement for the processor speed is 450 MHz or faster.]]></sdp_description>
<sdp_actions>
<sdp_action condition=">=" maximum="N" minimum="450" result="PASSED"><![CDATA[The minimum requirement for the processor speed is met.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[The minimum requirement for the processor speed is 450 MHz or faster.
|*Return Value*|*Action*|
|Processor speed|Use a processor with a speed of 450 MHz or faster.|
|Cannot access /proc/cpuinfo|Grant read permission to /proc/cpuinfo for the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00030" mode="VERIFY" name="Network">
<sdp_command type="RDA"><![CDATA[call setHcveResult(cond(\
  not(testFile('x','/sbin/ifconfig')),     'Cannot access /sbin/ifconfig',\
  grepCommand('/sbin/ifconfig','eth','f'), 'Connected',\
                                           'Not connected. Check log.'))
]]></sdp_command>
<sdp_description><![CDATA[The rule checks if the machine is connected to the network. You can install Oracle Application Server 10g on a standalone machine that is not connected to the network or on a machine that is connected to the network. When the machine is not connected to the network, you must configure the machine to resolve the host name of the computer to either a static IP address or a loopback IP address. To access Oracle Application Server, you must use a local browser. For more details, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Connected|Not connected. Check log." result="PASSED"><![CDATA[The machine is connected to the network.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Cannot access /sbin/ifconfig|Grant execute permission on /sbin/ifconfig to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00040" mode="VERIFY" name="Memory Available">
<sdp_command type="RDA"><![CDATA[var $MEM = undef
call setHcveVariable('$MEM')
if !testFile('r','/proc/meminfo')
 return setHcveResult('Cannot access /proc/meminfo')
var $MEM = field('\s+',1,grepFile('/proc/meminfo','MemTotal','f'))
call setHcveResult(concat($MEM,' KB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule retrieves the available physical memory in KB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" minimum=" KB$" result="PASSED"><![CDATA[No action is required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00042" mode="VERIFY" name="Memory Required">
<sdp_command type="RDA"><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),      'Cannot access /proc/meminfo',\
  expr('>=',$MEM,1000000), 'Available',\
                           'Need at least 1 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough memory to install Oracle Application Server 10.1.3.0 or later. The minimum requirement is 1 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough memory to install Oracle Application Server 10.1.3.0 or later.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1 GB|Increase the memory to 1 GB or more to install Oracle Application Server 10.1.3.0 or later.|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00050" mode="VERIFY" name="Disk Space">
<sdp_command type="RDA"><![CDATA[var $ORACLE_HOME = getEnv('ORACLE_HOME')
var $DF = cond(\
  not($ORACLE_HOME),              'ORACLE_HOME is not set',\
  not(testDir('d',$ORACLE_HOME)), 'Cannot access ORACLE_HOME',\
                                  get_df($ORACLE_HOME))
call setHcveVariable('$DF')
call setHcveResult(cond(isNumber($DF),concat($DF,' KB'),$DF))
]]></sdp_command>
<sdp_description><![CDATA[This rule retrieves the available disk space.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" minimum=" KB$" result="PASSED"><![CDATA[No action is required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|ORACLE_HOME is not set|Set ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00052" mode="VERIFY" name="Space for 10.1.3.0">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),    $DF,\
  expr('>=',$DF,900000), 'Available',\
                         'Need at least 900 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the Oracle Application Server 10.1.3.0 install type. The minimum requirement is 900 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Oracle Application Server 10.1.3.0 install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 900 MB|Increase the available space to 900 MB or more to install the Oracle Application Server 10.1.3.0 install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00054" mode="VERIFY" name="Space for J2EE/SOA (10.1.3.1)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,1100000), 'Available',\
                          'Need at least 1.1 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the J2EE Server and Oracle SOA Suite install type. The minimum requirement is 1.1 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the J2EE Server and Oracle SOA Suite install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1.1 GB|Increase the available space to 1.1 GB or more to install the J2EE Server and Oracle SOA Suite install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00056" mode="VERIFY" name="Space for J2EE/Web/SOA (10.1.3.1)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,1200000), 'Available',\
                          'Need at least 1.2 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the J2EE Server, Web Server, and Oracle SOA Suite install type. The minimum requirement is 1.2 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the J2EE Server, Web Server, and Oracle SOA Suite install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1.2 GB|Increase the available space to 1.2 GB or more to install the J2EE Server, Web Server, and Oracle SOA Suite install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00058" mode="VERIFY" name="Space for J2EE/Web (10.1.3.1)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),    $DF,\
  expr('>=',$DF,650000), 'Available',\
                         'Need at least 650 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the J2EE Server and Web Server install type. The minimum requirement is 650 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the J2EE Server and Web Server install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 650 MB|Increase the available space to 650 MB or more to install the J2EE Server and Web Server install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00060" mode="VERIFY" name="Space for J2EE (10.1.3.1)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),    $DF,\
  expr('>=',$DF,750000), 'Available',\
                         'Need at least 750 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the J2EE Server install type. The minimum requirement is 750 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the J2EE Server install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 750 MB|Increase the available space to 750 MB or more to install the J2EE Server install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00062" mode="VERIFY" name="Space for Web (10.1.3.1)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),    $DF,\
  expr('>=',$DF,650000), 'Available',\
                         'Need at least 650 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the Web Server install type. The minimum requirement is 650 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Web Server install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 650 MB|Increase the available space to 650 MB or more to install the Web Server install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00064" mode="VERIFY" name="Space for 10.1.3.2">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,1090000), 'Available',\
                          'Need at least 1.09 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the 10.1.3.2 basic install type. The minimum requirement is 1.09 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the 10.1.3.2 basic install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1.09 GB|Increase the available space to 1.09 GB or more to install the 10.1.3.2 basic install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00066" mode="VERIFY" name="Space for WebCenter/HTTP (10.1.3.2)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,1050000), 'Available',\
                          'Need at least 1.05 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the Oracle WebCenter Framework with Oracle HTTP Server install type. The minimum requirement is 1.05 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Oracle WebCenter Framework with Oracle HTTP Server install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1.05 GB|Increase the available space to 1.05 GB or more to install the Oracle WebCenter Framework with Oracle HTTP Server install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00068" mode="VERIFY" name="Space for Content Database (10.1.3.2)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),     $DF,\
  expr('>=',$DF,1000000), 'Available',\
                          'Need at least 1 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the Oracle Content Database install type. The minimum requirement is 1 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Oracle Content Database install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1 GB|Increase the available space to 1 GB or more to install the Oracle Content Database install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00070" mode="VERIFY" name="Space for WebCenter (10.1.3.2)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),    $DF,\
  expr('>=',$DF,892000), 'Available',\
                         'Need at least 892 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the Oracle WebCenter Framework install type. The minimum requirement is 892 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Oracle WebCenter Framework install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 892 MB|Increase the available space to 892 MB or more to install the Oracle WebCenter Framework install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00072" mode="VERIFY" name="Space for HTTP (10.1.3.2)">
<sdp_command type="RDA"><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),    $DF,\
  expr('>=',$DF,867000), 'Available',\
                         'Need at least 867 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough disk space to install the Oracle HTTP Server install type. The minimum requirement is 867 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough disk space to install the Oracle HTTP Server install type.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 867 MB|Increase the available space to 867 MB or more to install the Oracle HTTP Server install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00080" mode="VERIFY" name="Space in tmp">
<sdp_command type="RDA"><![CDATA[var $TMP = nvl(getEnv('TMP'),getEnv('TMPDIR'),'/tmp')
call setHcveResult(cond(\
  not(testDir('d',$TMP)),      'Cannot access tmp directory',\
  expr('>=',expr('/',get_df($TMP),1024),400), 'Available',\
                               'Need at least 400 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough tmp space. Oracle Universal Installer (OUI) initially checks the TMP and TMPDIR environment variables to locate the temporary directory. If these environment variables do not exist, then OUI uses /tmp. The minimum requirement is 400 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough tmp space.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 400 MB|Increase the available tmp space to 400 MB or more. You can define TMP or TMPDIR to point to a directory with 400 MB of available space.|
|Cannot access tmp directory|Grant read and write permission on /tmp or directories in TMP or TMPDIR to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00090" mode="VERIFY" name="Swap Space for 10.1.3.0/10.1.3.1">
<sdp_command type="RDA"><![CDATA[var $SWAP = undef
call setHcveVariable('$SWAP')
if !testFile('r','/proc/meminfo')
 return setHcveResult('Cannot access /proc/meminfo')
var $SWAP = field('\s+',1,grepFile('/proc/meminfo','SwapTotal','f'))
call setHcveResult(cond(expr('>=',$SWAP,1024000),'Available',\
                                                 'Need at least 1024 MB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough swap space for 10.1.3.0 and 10.1.3.1 only. The minimum requirement is 1024 MB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough swap space.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1024 MB|Increase the swap space to 1024 MB or more.|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00092" mode="VERIFY" name="Swap Space for 10.1.3.2">
<sdp_command type="RDA"><![CDATA[import $SWAP
call setHcveResult(cond(\
  not(defined($SWAP)),      'Cannot access /proc/meminfo',\
  expr('>=',$SWAP,2000000), 'Available',\
                            'Need at least 2 GB'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the machine has enough swap space for 10.1.3.2 only. The minimum requirement is 2 GB.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Available" result="PASSED"><![CDATA[The machine has enough swap space.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 2 GB|Increase the swap space to 2 GB or more.|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00100" mode="VERIFY" name="Monitor Colors">
<sdp_command type="RDA"><![CDATA[call loadCommand('/usr/X11R6/bin/xdpyinfo 2>&1')
var @dpt = grepLastFile('depths')
call setHcveResult(cond(\
  grep(@dpt,'8','f'),              'Adequate',\
  not(defined(getEnv('DISPLAY'))), 'DISPLAY is not set',\
  grepLastFile('unable','f'),      'Cannot open DISPLAY',\
                                   'Need at least 256 colors'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the monitor has a minimum of 256 colors.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The monitor has enough colors.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 256 colors|Use a display with 256 colors.|
|DISPLAY is not set|Set the DISPLAY environment variable to a valid display.|
|Cannot open DISPLAY|Set the DISPLAY environment variable to a correct display.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00110" mode="VERIFY" name="OS Certified?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
macro chk_release
{import $OS_NAM
 if match($OS_NAM,'Update\s+(\d+)',true)
  return last
}
call setHcveResult(check($OS_TYP,\
  'Enterprise',check(lc($OS_NAM),\
    'october','Certified',\
              'Not certified [Enterprise version]'),\
  'Red Hat',check(lc($OS_NAM),\
    'taroon',cond(\
      expr('>=',chk_release(),6), 'Certified',\
                                  'Not certified [RH version]'),\
    'nahant',cond(\
      expr('>=',chk_release(),1), 'Certified',\
                                  'Not certified [RH version]'),\
                                  'Not certified [RH version]'),\
  'SuSE',check($OS_NAM,\
    'SLES-9','Certified',\
             'Not certified [SUSE version]'),\
  'Not certified [OS]'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the operating system is certified. The following operating systems are certified for Oracle Application Server 10g: Red Hat Enterprise Linux AS/ES 3.0, Red Hat Enterprise Linux AS/ES 4.0, and SUSE Linux Enterprise Server 9.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Certified" result="PASSED"><![CDATA[The operating system is certified.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Not certified ...|You must use one of the listed certified operating systems.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00120" mode="VERIFY" name="EL4 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'Enterprise')
 call setHcveResult('NotEnterprise')
elsif !match($OS_NAM,'october',true)
 call setHcveResult('NotEL4')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'binutils','2.15.92.0.2.13')
 call cmp_os_pkg(\@tbl,'compat-db','4.1.25.9')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-296','2.96.132.7.2')
 call cmp_os_pkg(\@tbl,'gcc','3.4.3.22.1')
 call cmp_os_pkg(\@tbl,'gcc-c++','3.4.3.22.1')
 call cmp_os_pkg(\@tbl,'glibc','2.3.4.2.9')
 call cmp_os_pkg(\@tbl,'glibc-common','2.3.4.2.9')
 call cmp_os_pkg(\@tbl,'glibc-devel','2.3.4.2.9')
 call cmp_os_pkg(\@tbl,'libstdc++','3.4.3.22.1')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','3.4.3.22.1')
 call cmp_os_pkg(\@tbl,'make','3.80.5')
 call cmp_os_pkg(\@tbl,'openmotif21','2.1.30.11.4/RHEL4')
 call cmp_os_pkg(\@tbl,'pdksh','5.2.14.30')
 call cmp_os_pkg(\@tbl,'sysstat','5.0.5.1')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'EL4rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on an Enterprise Linux 4 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="EL4rpmsOK|NotEL4|NotEnterprise" result="PASSED"><![CDATA[The correct binutils, compat-db, compat-libstdc++-296, gcc, gcc-c++, glibc, glibc-common, glibc-devel, libstdc++, libstdc++-devel, make, openmotif21, pdksh, and sysstat packages are installed on your Enterprise Linux 4 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of binutils, compat-db, compat-libstdc++-296, gcc, gcc-c++, glibc, glibc-common, glibc-devel, libstdc++, libstdc++-devel, make, openmotif21, pdksh, or sysstat installed on your system. Make sure that the correct versions are installed. For more information about the correct version, see the ''Oracle Application Server 10g Installation Guide''.%BR%If binutils-2.15.92.0.2-13 is not installed, then you must install that exact version. For information about downloading the exact version, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00130" mode="VERIFY" name="RHEL3 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'Red Hat')
 call setHcveResult('NotRedHat')
elsif !match($OS_NAM,'taroon',true)
 call setHcveResult('NotRHEL3')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'binutils','2.14.90.0.4.39')
 call cmp_os_pkg(\@tbl,'compat-db','4.0.14.5.1')
 call cmp_os_pkg(\@tbl,'compat-glibc','7.2.2.4.32.6/x')
 call cmp_os_pkg(\@tbl,'compat-libstdc++','7.3.2.96.128')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-devel','7.3.2.96.128')
 call cmp_os_pkg(\@tbl,'gcc','3.2.3.53')
 call cmp_os_pkg(\@tbl,'gcc-c++','3.2.3.53')
 call cmp_os_pkg(\@tbl,'glibc','2.3.2.95.37')
 call cmp_os_pkg(\@tbl,'glibc-common','2.3.2.95.37')
 call cmp_os_pkg(\@tbl,'gnome-libs','1.4.1.2.90.34.2')
 call cmp_os_pkg(\@tbl,'libstdc++','3.2.3.53')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','3.2.3.53')
 call cmp_os_pkg(\@tbl,'make','3.79.1.17.1')
 call cmp_os_pkg(\@tbl,'openmotif21','2.1.30.9.6/RHEL3')
 call cmp_os_pkg(\@tbl,'pdksh','5.2.14.21')
 call cmp_os_pkg(\@tbl,'setarch','1.3.1')
 call cmp_os_pkg(\@tbl,'sysstat','5.0.5.5/rhel3')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'RHEL3rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on a Red Hat Enterprise Linux 3 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="RHEL3rpms|NotRHEL3|NotRedHat" result="PASSED"><![CDATA[The correct binutils, compat-db, compat-glibc, compat-libstdc++, compat-libstdc++-devel, gcc, gcc-c++, glibc, glibc-common, gnome-libs, libstdc++, libstdc++-devel, make, openmotif21, pdksh, setarch, and sysstat packages are installed on your RHEL3 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of binutils, compat-db, compat-glibc, compat-libstdc++, compat-libstdc++-devel, gcc, gcc-c++, glibc, glibc-common, gnome-libs, libstdc++, libstdc++-devel, make, openmotif21, pdksh, setarch, or sysstat installed on your system. Make sure that the correct versions are installed. For the recommended versions, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00132" mode="VERIFY" name="RHEL4 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'Red Hat')
 call setHcveResult('NotRedHat')
elsif !match($OS_NAM,'nahant',true)
 call setHcveResult('NotRHEL4')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'binutils','2.15.92.0.2.13')
 call cmp_os_pkg(\@tbl,'compat-db','4.1.25.9')
 call cmp_os_pkg(\@tbl,'compat-libstdc++-296','2.96.132.7.2')
 call cmp_os_pkg(\@tbl,'gcc','3.4.3.22.1')
 call cmp_os_pkg(\@tbl,'gcc-c++','3.4.3.22.1')
 call cmp_os_pkg(\@tbl,'glibc','2.3.4.2.9')
 call cmp_os_pkg(\@tbl,'glibc-common','2.3.4.2.9')
 call cmp_os_pkg(\@tbl,'glibc-devel','2.3.4.2.9')
 call cmp_os_pkg(\@tbl,'libstdc++','3.4.3.22.1')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','3.4.3.22.1')
 call cmp_os_pkg(\@tbl,'make','3.80.5')
 call cmp_os_pkg(\@tbl,'openmotif21','2.1.30.11.4/RHEL4')
 call cmp_os_pkg(\@tbl,'pdksh','5.2.14.30')
 call cmp_os_pkg(\@tbl,'sysstat','5.0.5.1')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'RHEL4rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on a Red Hat Enterprise Linux 4 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="RHEL4rpmsOK|NotRHEL4|NotRedHat" result="PASSED"><![CDATA[The correct binutils, compat-db, compat-libstdc++-296, gcc, gcc-c++, glibc, glibc-common, glibc-devel, libstdc++, libstdc++-devel, make, openmotif21, pdksh, and sysstat packages are installed on your RHEL4 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of binutils, compat-db, compat-libstdc++-296, gcc, gcc-c++, glibc, glibc-common, glibc-devel, libstdc++, libstdc++-devel, make, openmotif21, pdksh, or sysstat installed on your system. Make sure that the correct versions are installed. For the recommended versions, see the ''Oracle Application Server 10g Installation Guide''.%BR%If binutils-2.15.92.0.2-13 is not installed, that you must install that exact version. For information about downloading the exact version, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00140" mode="VERIFY" name="SUSE SLES9 RPMs OK?">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$OS_TYP
if !match($OS_TYP,'SuSE')
 call setHcveResult('NotSuSE')
elsif !match($OS_NAM,'SLES-9')
 call setHcveResult('NotSLES9')
else
{var @tbl = ()
 call cmp_os_pkg(\@tbl,'binutils','2.15.90.0.1.1.32.10')
 call cmp_os_pkg(\@tbl,'gcc','3.3.3.43.41')
 call cmp_os_pkg(\@tbl,'gcc-c++','3.3.3.43.41')
 call cmp_os_pkg(\@tbl,'glibc','2.3.3.98.61')
 call cmp_os_pkg(\@tbl,'glibc-devel','2.3.3.98.61')
 call cmp_os_pkg(\@tbl,'libstdc++','3.3.3.43.41')
 call cmp_os_pkg(\@tbl,'libstdc++-devel','3.3.3.43.41')
 call cmp_os_pkg(\@tbl,'make','3.80.184.1')
 call cmp_os_pkg(\@tbl,'openmotif-libs','2.2.2.519.4')
 call cmp_os_pkg(\@tbl,'pdksh','5.2.14.780.7')
 call cmp_os_pkg(\@tbl,'sysstat','5.0.1.35.7')
 call setHcveResult(cond(scalar(@tbl),join("\012",@tbl),'SLES9rpmsOK'))
}]]></sdp_command>
<sdp_description><![CDATA[This rule verifies that the correct versions of the required RPMs are installed on a SUSE Linux Enterprise Server 9 system.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="SLES9rpmsOK|NotSLES9|NotSuSE" result="PASSED"><![CDATA[The correct binutils, gcc, gcc-c++, glibc, glibc-devel, libstdc++, libstdc++-devel, make, openmotif-libs, pdksh, and sysstat packages are installed on your SUSE SLES9 system. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[You have incorrect versions of binutils, gcc, gcc-c++, glibc, glibc-devel, libstdc++, libstdc++-devel, make, openmotif-libs, pdksh, or sysstat packages installed on your SUSE SLES9 system. Make sure that the correct versions are installed. For the recommended versions, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00160" mode="VERIFY" name="Perl Link">
<sdp_command type="RDA"><![CDATA[import $OS_NAM
var $LS = findCommand('ls')
call setHcveVariable('$LS')
call setHcveResult(cond(\
  not(match($OS_NAM,'(SLES-9|SuSE Linux 9|SUSE LINUX Enterprise Server 9)',\
            true)),\
    'Not required',\
  grepCommand(concat($LS,' -l /usr/local/bin/perl'),\
              quote('/usr/bin/perl'),\
              'f'),\
    'Exists',\
    'Missing'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks that the following symbolic link exists: /usr/local/bin/perl -> /usr/bin/perl.
This is required for SUSE 9.0.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Exists|Not required" result="PASSED"><![CDATA[The Perl link exists or else is not required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Missing|Log in as root and create a Perl symbolic link:%BR%ln -sf /usr/bin/perl /usr/local/bin/perl|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00162" mode="VERIFY" name="fuser Link">
<sdp_command type="RDA"><![CDATA[import $OS_NAM,$LS
call setHcveResult(cond(\
  not(match($OS_NAM,'(SLES-9|SuSE Linux 9|SUSE LINUX Enterprise Server 9)',\
            true)),\
    'Not required',\
  grepCommand(concat($LS,' -l /sbin/fuser'),quote('/bin/fuser'),'f'),\
    'Exists',\
    'Missing'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the fuser symbolic link /sbin/fuser -> /bin/fuser exists. This is required for SUSE 9.0.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Exists|Not required" result="PASSED"><![CDATA[The fuser link exists or else is not required.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Missing|Log in as root and create an fuser symbolic link:%BR%ln -sf /bin/fuser /sbin/fuser|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00170" mode="VERIFY" name="orarun Package">
<sdp_command type="RDA"><![CDATA[import $OS_NAM
call setHcveResult(cond(\
  not(match($OS_NAM,'(SLES-9|SuSE Linux 9|SUSE LINUX Enterprise Server 9)',\
            true)),\
    'Not applicable',\
  not(chk_os_pkg('orarun')),\
    'Not installed',\
  not(testFile('r',catFile(getEnv('HOME'),'.profile'))),\
    'Environment reset not required.',\
  not(assign($prf,grepFile(catFile(getEnv('HOME'),'.profile'),\
                           quote('. ./.oracle'),\
                           'if'))),\
    'Installed correctly',\
  compare('eq',substr($prf,0,1),'#'),\
    'Installed correctly',\
    'Reset oracle environment.'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the orarun package is installed and if the oracle user environment requires to be reset. This is required for SUSE 9.0 only.]]></sdp_description>
<sdp_actions>
<sdp_action condition="=~" maximum="N" minimum="Not installed|Installed correctly|Not applicable|Environment reset not required" result="PASSED"><![CDATA[orarun is not installed or else is installed correctly.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Reset oracle environment.|For SUSE 9.0, follow these steps to reset the environment:%BR%a. Enter the following commands:%BR%prompt> cd /etc/profile.d%BR%prompt> mv oracle.csh oracle.csh.bak%BR%prompt> mv oracle.sh oracle.sh.bak%BR%prompt> mv alljava.sh alljava.sh.bak%BR%prompt> mv alljava.csh alljava.csh.bak%BR%b. Use any text editor to comment out%BR%the following line from the%BR%$HOME/.profile file:%BR%. ./.oracle%BR%c. Log out of the oracle user account.%BR%d. Log in to the oracle user account for the changes to take effect.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00180" mode="VERIFY" name="semmsl">
<sdp_command type="RDA"><![CDATA[var ($KER,@KER) = (undef)
call setHcveVariable('$KER','@KER')
if !testFile('x','/sbin/sysctl')
 return setHcveResult('Cannot access /sbin/sysctl')
var @KER = command('/sbin/sysctl -a')
var ($KER) = grep(@KER,'sem','f')
call setHcveResult(cond(\
  expr('>=',field('\s+',2,$KER),256), 'Adequate',\
                                      'Less than 256'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the semmsl kernel parameter is 256 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The semmsl kernel parameter is 256 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 256|Increase semmsl to 256 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00182" mode="VERIFY" name="semmns">
<sdp_command type="RDA"><![CDATA[import $KER
call setHcveResult(cond(\
  not(defined($KER)),                   'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',3,$KER),32000), 'Adequate',\
                                        'Less than 32000'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the semmns kernel parameter is 32000 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The semmns kernel parameter is 32000 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 32000|Increase semmns to 32000 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00184" mode="VERIFY" name="semopm">
<sdp_command type="RDA"><![CDATA[import $KER
call setHcveResult(cond(\
  not(defined($KER)),                 'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',4,$KER),100), 'Adequate',\
                                      'Less than 100'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the semopm kernel parameter is 100 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The semopm kernel parameter is 100 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 100|Increase semopm to 100 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00186" mode="VERIFY" name="semmni">
<sdp_command type="RDA"><![CDATA[import $KER
call setHcveResult(cond(\
  not(defined($KER)),                 'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',5,$KER),142), 'Adequate',\
                                      'Less than 142'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the semmni kernel parameter is 142 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The semmni kernel parameter is 142 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 142|Increase semmni to 142 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00188" mode="VERIFY" name="shmall">
<sdp_command type="RDA"><![CDATA[import @KER
call setHcveResult(cond(\
  not(defined($KER[0])),\
    'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',2,grep(@KER,'kernel\.shmall','f')),2097152),\
    'Adequate',\
    'Less than 2097152'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the shmall kernel parameter is 2097152 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The shmall kernel parameter is 2097152 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 2097152|Increase shmall to 2097152 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00190" mode="VERIFY" name="shmmax">
<sdp_command type="RDA"><![CDATA[import @KER
call setHcveResult(cond(\
  not(defined($KER[0])),\
    'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',2,grep(@KER,'kernel\.shmmax','f')),2147483648),\
    'Adequate',\
    'Less than 2147483648'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the shmmax kernel parameter is 2147483648 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The shmmax kernel parameter is 2147483648 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 2147483648|Increase shmmax to 2147483648 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00192" mode="VERIFY" name="shmmni">
<sdp_command type="RDA"><![CDATA[import @KER
call setHcveResult(cond(\
  not(defined($KER[0])),\
    'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',2,grep(@KER,'kernel\.shmmni','f')),4096),\
    'Adequate',\
    'Less than 4096'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the shmmni kernel parameter is 4096 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The shmmni kernel parameter is 4096 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 4096|Increase shmmni to 4096 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00194" mode="VERIFY" name="msgmax">
<sdp_command type="RDA"><![CDATA[import @KER
call setHcveResult(cond(\
  not(defined($KER[0])),\
    'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',2,grep(@KER,'kernel\.msgmax','f')),8192),\
    'Adequate',\
    'Less than 8192'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the msgmax kernel parameter is 8192 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The msgmax kernel parameter is 8192 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 8192|Increase msgmax to 8192 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00196" mode="VERIFY" name="msgmnb">
<sdp_command type="RDA"><![CDATA[import @KER
call setHcveResult(cond(\
  not(defined($KER[0])),\
    'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',2,grep(@KER,'kernel\.msgmnb','f')),65535),\
    'Adequate',\
    'Less than 65535'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the msgmnb kernel parameter is 65535 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The msgmnb kernel parameter is 65535 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 65535|Increase msgmnb to 65535 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00198" mode="VERIFY" name="msgmni">
<sdp_command type="RDA"><![CDATA[import @KER
call setHcveResult(cond(\
  not(defined($KER[0])),\
    'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',2,grep(@KER,'kernel\.msgmni','f')),2878),\
    'Adequate',\
    'Less than 2878'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the msgmni kernel parameter is 2878 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The msgmni kernel parameter is 2878 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 2878|Increase msgmni to 2878 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00200" mode="VERIFY" name="file-max">
<sdp_command type="RDA"><![CDATA[import @KER
call setHcveResult(cond(\
  not(defined($KER[0])),\
    'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',2,grep(@KER,'file\-max','f')),131072),\
    'Adequate',\
    'Less than 131072'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the file-max kernel parameter is 131072 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The file-max kernel parameter is 131072 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 131072|Increase file-max to 131072 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00202" mode="VERIFY" name="ip_local_port_range">
<sdp_command type="RDA"><![CDATA[import @KER
if !defined($KER[0])
 return setHcveResult('Cannot access /sbin/sysctl')
var (undef,undef,$low,$hig) = split('\s+',grep(\
 @KER,'ip_local_port_range','f'),4)
call setHcveResult(cond(\
  and(expr('<=',$low,10000),expr('>=',$hig,65000)),\
    'Adequate',\
    'Less than 10000 and 65000'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the ip_local_port_range kernel parameter is between 10000 and 65000 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The ip_local_port_range kernel parameter is between 10000 and 65000 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 10000 and 65000|Increase ip_local_port_range to 10000 and 65000 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00210" mode="VERIFY" name="Limit Processes">
<sdp_command type="RDA"><![CDATA[var $shl = getEnv('SHELL')
macro proc_lmt
{var ($cmd,$flg) = @arg
 var ($val) = command($cmd)
 if $flg
  var $val = field('\s+',1,$val)
 if compare('eq',$val,'unlimited')
  return 'Adequate'
 return cond(and(isNumber($val),expr('>=',$val,16384)),\
             'Adequate',\
             'Less than 16384')
}
call setHcveResult(check(\
  $shl,'csh',proc_lmt(concat($shl,' -f -c "limit maxproc"'),true),\
       'ksh',proc_lmt(concat($shl,' -c "ulimit -p"'),false),\
             proc_lmt(concat($shl,' -c "ulimit -u"'),false)))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the limit of max processes is set to 16384 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The limit of max processes is set to 16384 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 16384|Increase the limit for max processes to 16384 or higher.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00220" mode="VERIFY" name="Limit Descriptors">
<sdp_command type="RDA"><![CDATA[var $shl = getEnv('SHELL')
macro proc_lmt
{var ($cmd,$flg) = @arg
 var ($val) = command($cmd)
 if $flg
  var $val = field('\s+',1,$val)
 if compare('eq',$val,'unlimited')
  return 'Adequate'
 return cond(and(isNumber($val),expr('>=',$val,65536)),\
             'Adequate',\
             'Less than 65536')
}
call setHcveResult(check(\
  $shl,'csh',proc_lmt(concat($shl,' -f -c "limit descriptors"'),true),\
             proc_lmt(concat($shl,' -c "ulimit -n"'),false)))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the limit of file descriptors is set to 65536 or higher. For more information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Adequate" result="PASSED"><![CDATA[The limit of descriptors is set to 65536 or higher.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 65536|Increase the limit for file descriptors to 65536 or higher.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00230" mode="VERIFY" name="Environment variables">
<sdp_command type="RDA"><![CDATA[if grepEnv('^(TNS_ADMIN|ORA_NLS|LD_BIND_NOW|ANT_HOME)$')
 return setHcveResult('Some variables are set')
if testFile('e','/etc/oratab')
{if !testFile('r','/etc/oratab')
  return setHcveResult('Cannot access /etc/oratab')
 var @pth = (split(':',join(':',getEnv('PATH'),\
                                getEnv('CLASSPATH'),\
                                getEnv('LD_LIBRARY_PATH'))))
 loop $lin (grepFile('/etc/oratab','#|^$','v'))
 {var $pat = concat('^',quote(replace(field(':',1,$lin),'\/+$')),'(\/.*)?$')
  if grep(@pth,$pat)
   return setHcveResult('Variables containing reference to existing \
                         Oracle homes')
 }
}
return setHcveResult('Properly defined')
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the following environment variables are not set: TNS_ADMIN, ORA_NLS, ANT_HOME, and LD_BIND_NOW. In addition, the following environment variables must not reference to any existing Oracle home, PATH, CLASSPATH, and LD_LIBRARY_PATH.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" maximum="N" minimum="Properly defined" result="PASSED"><![CDATA[Environment variables do not have references to existing Oracle homes.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Variables containing reference to existing Oracle homes|Remove any reference to existing Oracle homes from PATH, CLASSPATH, and LD_LIBRARY_PATH.|
|Some variables are set|Unset TNS_ADMIN, ORA_NLS, ANT_HOME, and LD_BIND_NOW.|
|Cannot access /etc/oratab|Grant read permission on /etc/oratab to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00240" mode="RECORD" name="IP Address">
<sdp_command type="RDA"><![CDATA[var $hst = field('\.',0,command('hostname'))
var ($lin) = grepFile('/etc/hosts',\
 concat('^[^#]+\s\<?',quote($hst),'\>?($|\.|\s)'),'f')
call setHcveResult(field('\s+',0,$lin))
]]></sdp_command>
<sdp_description><![CDATA[This rule gets the host IP address.]]></sdp_description>
</sdp_rule>
<sdp_rule id="A00250" mode="RECORD" name="Domain Name">
<sdp_dependencies>
<sdp_dependency condition="IS" id="A00240" minimum="RECORD" result="FAILED"><![CDATA[Requires rule 240.]]></sdp_dependency>
</sdp_dependencies>
<sdp_command type="RDA"><![CDATA[var $ip = "%A00240%"
var ($hst) = command('hostname')
var ($nam,$dom) = split('\.',$hst,2)
if testFile('x','/bin/domainname')
 var ($nis) = command('/bin/domainname')
if testFile('r','/etc/resolv.conf')
 var $dns = field('\s+',1,grepFile('/etc/resolv.conf','domain'))
if testFile('x','/usr/bin/nslookup')
{if $nam
 {var $nsl = field(concat(quote($nam),'\.'),1,\
                   grepCommand(concat('/usr/bin/nslookup ',$hst),'Name','f'))
 }
 else
 {var $nsl = field(concat(quote($hst),'\.'),1,\
                   grepCommand(concat('/usr/bin/nslookup ',$hst),'Name','f'))
 }
}
if $ip
{if !$nam
  var $ipn = trim(field(concat($hst,'\.'),1,\
             grepCommand(concat('/usr/bin/nslookup -sil ',$ip),'Name','f')),'.')
}
call setHcveResult(cond($dom,$dom,\
                        and(length($nis),compare('ne',$nis,'(none)')),$nis,\
                        $dns,$dns,\
                        $nsl,$nsl,\
                        $ipn,$ipn,\
                             'Not configured'))
]]></sdp_command>
<sdp_description><![CDATA[This rule gets the host domain name.]]></sdp_description>
</sdp_rule>
<sdp_rule id="A00260" mode="VERIFY" name="DNS Lookup">
<sdp_dependencies>
<sdp_dependency condition="IS" id="A00250" minimum="RECORD" result="FAILED"><![CDATA[Requires rule 250.]]></sdp_dependency>
<sdp_dependency condition="IS" id="A00240" minimum="RECORD" result="FAILED"><![CDATA[Requires rule 240.]]></sdp_dependency>
</sdp_dependencies>
<sdp_command type="RDA"><![CDATA[var $dom = "%A00250%"
var $ip  = "%A00240%"
var $hst = field('\.',0,command('hostname'))
if !length($hst)
{if and(compare('ne',$dom,'Not configured'),length($dom))
  var $hst = concat($hst,'.',$dom)
}
call setHcveResult(cond(\
  not(length($ip)),\
    'Cannot determine IP address',\
  not(testFile('x','/usr/bin/nslookup')),\
    'Cannot access /usr/bin/nslookup',\
  not(grepCommand(concat('/usr/bin/nslookup -sil ',$hst),quote($ip),'f')),\
    'nslookup host.domain',\
  not(grepCommand(concat('/usr/bin/nslookup -sil ',$ip),quote($hst),'f')),\
    'nslookup IP_address',\
    'Host correctly registered in DNS'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the host is registered properly in the DNS.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" minimum="Host correctly registered in DNS" result="PASSED"><![CDATA[The host is registered correctly in the DNS.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|nslookup host.domain|The DNS server failed to resolve the nslookup using host.domain.|
|nslookup IP_address|The DNS server failed to resolve the nslookup using IP address.|
|Cannot determine IP address|Fix any problem with the host IP address.|
|Cannot access /usr/bin/nslookup|Grant execute permission on /usr/bin/nslookup to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00270" mode="VERIFY" name="/etc/hosts Format">
<sdp_dependencies>
<sdp_dependency condition="IS" id="A00250" minimum="RECORD" result="FAILED"><![CDATA[Requires rule 250.]]></sdp_dependency>
<sdp_dependency condition="IS" id="A00240" minimum="RECORD" result="FAILED"><![CDATA[Requires rule 240.]]></sdp_dependency>
</sdp_dependencies>
<sdp_command type="RDA"><![CDATA[var $dom = "%A00250%"
var $ip  = "%A00240%"
if !testFile('r','/etc/hosts')
 return setHcveResult('Cannot access /etc/hosts')
var $hst = field('\.',0,command('hostname'))
var $fqd = concat($hst,'.',$dom)
var ($lin) = grepFile('/etc/hosts',quote($fqd),'f')
var @fld = split('\s+',$lin,4)
call setHcveResult(cond(\
  compare('eq',join('|',$fld[0],$fld[1]),join('|',$ip,$fqd)),\
    'Contains host.domain',\
    'Missing host.domain'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks if the /etc/hosts file contains a line with "ip_address fully_qualified_hostname short_hostname".]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" minimum="Contains host.domain" result="PASSED"><![CDATA[The fully qualified domain name is set correctly.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[The fully qualified host name is not configured properly. 
|*Return Value*|*Action*|
|Missing host.domain|Add the FQDN to the /etc/hosts file.|
|Cannot access /etc/hosts|Grant read permission on /etc/hosts to the current user.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00280" mode="VERIFY" name="Host Name Length">
<sdp_command type="RDA"><![CDATA[var $hst = uname('n')
call setHcveResult(cond(\
  expr('>',length($hst),255), 'Host name is greater than 255 characters',\
                              'Host name is less than 255 characters'))
]]></sdp_command>
<sdp_description><![CDATA[Ensure that your fully qualified host name is not longer than 255 characters.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" minimum="Host name is less than 255 characters" result="PASSED"><![CDATA[The host name is less than 255 characters. No action required.]]></sdp_action>
<sdp_action result="FAILED"><![CDATA[Modify your fully qualified host name to less than 255 characters.]]></sdp_action>
</sdp_actions>
</sdp_rule>
<sdp_rule id="A00290" mode="VERIFY" name="Oracle Home Length">
<sdp_command type="RDA"><![CDATA[var $ORACLE_HOME = getEnv('ORACLE_HOME')
call setHcveResult(cond(\
  not(defined($ORACLE_HOME)),\
    'ORACLE_HOME is not set',\
  expr('<=',length($ORACLE_HOME),127),\
    'Less than 127 char',\
    'Longer than 127 characters'))
]]></sdp_command>
<sdp_description><![CDATA[This rule checks that the path to the Oracle home directory is not longer than 127 characters.]]></sdp_description>
<sdp_actions>
<sdp_action condition="==" minimum="Less than 127 char" result="PASSED"><![CDATA[The Oracle home directory is not longer than 127 characters.]]></sdp_action>
<sdp_action result="FAILED" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Longer than 127 characters|Change ORACLE_HOME to a directory not longer than 127 characters.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|]]></sdp_action>
</sdp_actions>
</sdp_rule>
</sdp_group>
</sdp_content>
</sdp_diaglet>
