<!-- $Id: A300AS0904_lin.xml,v 1.18 2007/11/14 16:05:25 mschenke Exp $ -->
<!-- ARCS: $Header: /home/cvs/repository/RDA_4/src/scripting/lib/hcve/A300AS0904_lin.xml,v 1.18 2007/11/14 16:05:25 mschenke Exp $ -->
<!--  Change History: 20071114  KRA  Modify documentation -->
<hcve name="Oracle Application Server 10g (9.0.4) PreInstall (Linux)" type="A" product="AS0904" platform="linux">
<rule condition="==" id="1" maximum="N" minimum="Pentium" mode="VERIFY" name="Processor Type" repeat="1" command_type="RDA">
<command><![CDATA[var @CPU = ()
call setHcveVariable('@CPU')
if !testFile('r','/proc/cpuinfo')
 return setHcveResult('Cannot access /proc/cpuinfo')
var @CPU = grepFile('/proc/cpuinfo','.')
var @lst = grep(@CPU,'model name')
call setHcveResult(cond(\
  grep(@lst,'Pentium','if'), 'Pentium',\
                             'Not a Pentium processor'))
]]></command>
<description><![CDATA[This rule checks for the processor type. The minimum requirement for the processor type is Pentium (32-bit).]]></description>
<action type="negative" syntax="wiki"><![CDATA[The minimum requirement for the processor type is Pentium (32-bit).
|*Return Value*|*Action*|
|Not a Pentium processor|Use a certified processor type.|
|Cannot access /proc/cpuinfo|Grant read permission on /proc/cpuinfo to the current user.|]]></action>
<action type="positive"><![CDATA[The minimum requirement for the processor type has been met.]]></action>
</rule>
<rule condition="&gt;=" id="2" maximum="N" minimum="450" mode="VERIFY" name="Processor Speed" repeat="1" command_type="RDA">
<command><![CDATA[import @CPU
if !defined($CPU[0])
 return setHcveResult('Cannot access /proc/cpuinfo')
call setHcveResult(field('\s+:\s+',1,grep(@CPU,'cpu MHz','f')))
]]></command>
<description><![CDATA[This rule checks for the processor speed. The minimum requirement for the processor speed is 450 MHZ or faster.]]></description>
<action type="negative" 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 on /proc/cpuinfo to the current user.|]]></action>
<action type="positive"><![CDATA[The minimum requirement for the processor speed is met.]]></action>
</rule>
<rule condition="=~" id="3" maximum="N" minimum="Connected|Not connected. Check log." mode="VERIFY" name="Network" repeat="1" command_type="RDA">
<command><![CDATA[call setHcveResult(cond(\
  not(testFile('x','/sbin/ifconfig')),     'Cannot access /sbin/ifconfig',\
  grepCommand('/sbin/ifconfig','eth','f'), 'Connected',\
                                           'Not connected. Check log.'))
]]></command>
<description><![CDATA[This rule checks that 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. Although both cases are supported, 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 information, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Cannot access /sbin/ifconfig|Grant execute permission on /sbin/ifconfig to the current user.|]]></action>
<action type="positive"><![CDATA[The machine is connected to the network.]]></action>
</rule>
<rule condition="==" id="4" maximum="N" mode="RECORD" name="Memory" repeat="1" command_type="RDA">
<command><![CDATA[var $MEM = undef
call setHcveVariable('$MEM')
var $MEM = field('\s+',1,grepFile('/proc/meminfo','MemTotal','f'))
call setHcveResult(cond(\
  not(testFile('r','/proc/meminfo')), 'Cannot access /proc/meminfo',\
                                      concat($MEM,' KB')))
]]></command>
<description><![CDATA[This rule retrieves the available physical memory in KB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></action>
<action type="positive"><![CDATA[NA]]></action>
</rule>
<rule condition="==" id="5" maximum="N" minimum="Available" mode="VERIFY" name="Memory for MDR and OIM" repeat="1" command_type="RDA">
<command><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),      'Cannot access /proc/meminfo',\
  expr('>=',$MEM,1000000), 'Available',\
                           'Need at least 1 GB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough memory to install the Metadata Repository and Oracle Identity Management install type. The minimum requirement is 1 GB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1 GB|Increase the memory to 1 GB or more to install the Metadata Repository and Oracle Identity Management install type.|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></action>
<action type="positive"><![CDATA[The machine has enough memory to install the Metadata Repository and Oracle Identity Management install type.]]></action>
</rule>
<rule condition="==" id="6" maximum="N" minimum="Available" mode="VERIFY" name="Memory for OIM Only" repeat="1" command_type="RDA">
<command><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),     'Cannot access /proc/meminfo',\
  expr('>=',$MEM,512000), 'Available',\
                          'Need at least 512 MB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough memory to install the Identity Management only install type. The minimum requirement is 512 MB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 512 MB|Increase the memory to 512 MB or more to install the Identity Management only install type.|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></action>
<action type="positive"><![CDATA[The machine has enough memory to install the Identity Management only install type.]]></action>
</rule>
<rule condition="==" id="7" maximum="N" minimum="Available" mode="VERIFY" name="Memory for MDR only" repeat="1" command_type="RDA">
<command><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),     'Cannot access /proc/meminfo',\
  expr('>=',$MEM,750000), 'Available',\
                          'Need at least 750 MB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough memory to install the Metadata Repository only install type. The minimum requirement is 750 MB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 750 MB|Increase the memory to 750 MB or more to install the Metadata Repository only install type.|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></action>
<action type="positive"><![CDATA[The machine has enough memory to install the Metadata Repository only install type.]]></action>
</rule>
<rule condition="==" id="8" maximum="N" minimum="Available" mode="VERIFY" name="Memory for J2EE" repeat="1" command_type="RDA">
<command><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),     'Cannot access /proc/meminfo',\
  expr('>=',$MEM,512000), 'Available',\
                          'Need at least 512 MB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough memory to install the J2EE and Web Cache install type. The minimum requirement is 512 MB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 512 MB|Increase the memory to 512 MB or more to install the J2EE and Web Cache install type.|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></action>
<action type="positive"><![CDATA[The machine has enough memory to install the J2EE and Web Cache install type.]]></action>
</rule>
<rule condition="==" id="9" maximum="N" minimum="Available" mode="VERIFY" name="Memory for Portal" repeat="1" command_type="RDA">
<command><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),      'Cannot access /proc/meminfo',\
  expr('>=',$MEM,1000000), 'Available',\
                           'Need at least 1 GB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough memory to install the Portal and Wireless install type. The minimum requirement is 1 GB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1 GB|Increase the memory to 1 GB or more to install the Portal and Wireless install type.|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></action>
<action type="positive"><![CDATA[The machine has enough memory to install the Portal and Wireless install type.]]></action>
</rule>
<rule condition="==" id="10" maximum="N" minimum="Available" mode="VERIFY" name="Memory for BI and Forms" repeat="1" command_type="RDA">
<command><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),      'Cannot access /proc/meminfo',\
  expr('>=',$MEM,1000000), 'Available',\
                           'Need at least 1 GB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough memory to install the Business Intelligence and Forms install type. The minimum requirement is 1 GB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1 GB|Increase the memory to 1 GB or more to install the Business Intelligence and Forms install type.|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></action>
<action type="positive"><![CDATA[The machine has enough memory to install the Business Intelligence and Forms install type.]]></action>
</rule>
<rule condition="==" id="11" maximum="N" mode="RECORD" name="Disk Space" repeat="1" command_type="RDA">
<command><![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,' MB'),$DF))
]]></command>
<description><![CDATA[This rule retrieves the available disk space.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[No action is required.]]></action>
</rule>
<rule condition="==" id="12" maximum="N" minimum="Available" mode="VERIFY" name="Space for Infra" repeat="1" command_type="RDA">
<command><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),  $DF,\
  expr('>=',$DF,2500), 'Available',\
                       'Need at least 2.5 GB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough disk space to install the Infrastructure install type. The minimum requirement is 2.5 GB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 2.5 GB|Increase the available space to 2.5 GB or more to install the Infrastructure install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></action>
<action type="positive"><![CDATA[The machine has enough disk space to install the Infrastructure install type.]]></action>
</rule>
<rule condition="==" id="13" maximum="N" minimum="Available" mode="VERIFY" name="Space for J2EE" repeat="1" command_type="RDA">
<command><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)), $DF,\
  expr('>=',$DF,520), 'Available',\
                      'Need at least 520 MB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough disk space to install the J2EE and Web Cache install type. The minimum requirement is 520 MB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 520 MB|Increase the available space to 520 MB or more to install the J2EE and Web Cache install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></action>
<action type="positive"><![CDATA[The machine has enough disk space to install the J2EE and Web Cache install type.]]></action>
</rule>
<rule condition="==" id="14" maximum="N" minimum="Available" mode="VERIFY" name="Space for Portal" repeat="1" command_type="RDA">
<command><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),  $DF,\
  expr('>=',$DF,1100), 'Available',\
                       'Need at least 1.1 GB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough disk space to install the Portal and Wireless install type. The minimum requirement is 1.1 GB.]]></description>
<action type="negative" 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 Portal and Wireless install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></action>
<action type="positive"><![CDATA[The machine has enough disk space to install the Portal and Wireless install type.]]></action>
</rule>
<rule condition="==" id="15" maximum="N" minimum="Available" mode="VERIFY" name="Space for BI and Forms" repeat="1" command_type="RDA">
<command><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)),  $DF,\
  expr('>=',$DF,1650), 'Available',\
                       'Need at least 1.65 GB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough disk space to install the Business Intelligence and Forms install type. The minimum requirement is 1.65 GB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1.65GB|Increase the available space to 1.1 GB or more to install the Business Intelligence and Forms install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></action>
<action type="positive"><![CDATA[The machine has enough disk space to install the Business Intelligence and Forms install type.]]></action>
</rule>
<rule condition="==" id="16" maximum="N" minimum="Available" mode="VERIFY" name="Space for Developer Kit" repeat="1" command_type="RDA">
<command><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)), $DF,\
  expr('>=',$DF,600), 'Available',\
                      'Need at least 600 MB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough disk space to install the Developer Kit install type. The minimum requirement is 600 MB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Valuei*|*Action*|
|Need at least 600 MB|Increase the available space to 600 MB or more to install the Developer Kit install type.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|
|Cannot access ORACLE_HOME|Set ORACLE_HOME to a valid directory.|]]></action>
<action type="positive"><![CDATA[The machine has enough disk space to install the Developer Kit install type.]]></action>
</rule>
<rule condition="==" id="17" maximum="N" minimum="Available" mode="VERIFY" name="Space in tmp" repeat="1" command_type="RDA">
<command><![CDATA[import $DF
call setHcveResult(cond(\
  not(isNumber($DF)), $DF,\
  expr('>=',$DF,250), 'Available',\
                      'Need at least 250 MB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough tmp space. Initially, Oracle Universal Installer (OUI) 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 250 MB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 250 MB|Increase the available tmp space to 250 MB or more. You can define TMP or TMPDIR to point to a directory with 250 MB available space.|
|Cannot access tmp directory|Grant read and write permission on /tmp or directories in TMP or TMPDIR to the current user.|]]></action>
<action type="positive"><![CDATA[The machine has enough tmp space.]]></action>
</rule>
<rule condition="==" id="18" maximum="N" minimum="Available" mode="VERIFY" name="Swap Space" repeat="1" command_type="RDA">
<command><![CDATA[import $MEM
call setHcveResult(cond(\
  not(defined($MEM)),      'Cannot access /proc/meminfo',\
  expr('>=',$MEM,1500000), 'Available',\
                           'Need at least 1.5 GB'))
]]></command>
<description><![CDATA[This rule checks that the machine has enough swap space. The minimum requirement is 1.5 GB.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least 1.5 GB|Increase the swap space to 1.5 GB or more.|
|Cannot access /proc/meminfo|Grant read permission on /proc/meminfo to the current user.|]]></action>
<action type="positive"><![CDATA[The machine has enough swap space.]]></action>
</rule>
<rule condition="==" id="19" maximum="N" minimum="Adequate" mode="VERIFY" name="Monitor Colors" repeat="1" command_type="RDA">
<command><![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'))
]]></command>
<description><![CDATA[This rule checks that the monitor has a minimum of 256 colors.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The monitor has enough colors.]]></action>
</rule>
<rule condition="==" id="20" maximum="N" minimum="Certified" mode="VERIFY" name="OS Certified?" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM,$OS_TYP
var $UNT_LVL = field('\s+',2,\
  grepFile('/etc/UnitedLinux-release','PATCHLEVEL','f'))
call setHcveVariable('$UNT_LVL')
call setHcveResult(check($OS_TYP,\
  'Red Hat',check(lc($OS_NAM),\
    '(pensacola|panama|shrike|taroon)', 'Certified',\
                                        'Not Certified'),\
  'UnitedLinux',check(\
     $UNT_LVL,'^(3|2a)$', 'Certified',\
                          'Need SP2a or SP3 for United Linux 1.0'),\
  'Not Certified'))
]]></command>
<description><![CDATA[This rule checks that the operating system is certified. The following operating systems are certified for Oracle Application Server 10g: Red Hat Enterprise Linux AS/ES 2.1 - Red Hat Enterprise Linux AS/ES 3.0 - United Linux 1.0 SP2a and SP3.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Not Certified|You must use one of the listed certified operating systems.|
|Need SP2a or SP3 for United Linux 1.0|Apply SP2a or SP3 on United Linux 1.0|]]></action>
<action type="positive"><![CDATA[The operating system is certified.]]></action>
</rule>
<rule condition="=~" id="21" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="Errata for RH 2.1" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM,$OS_VER
var $VER = uname('r')
call setHcveVariable('$VER')
call setHcveResult(check(lc($OS_NAM),\
    '(pensacola|panama|shrike)',cond(\
       not(compare('same',$OS_VER,'2.4.9')),\
         'Need kernel 2.4.9',\
       expr('>=',replace(field('\.',3,$VER),'[^\d]','',true),'25'),\
         'Adequate',\
         'Need at least Errata 25'),\
    'Not required'))
]]></command>
<description><![CDATA[This rule checks that the Errata 25 or later are installed for Red Hat Application Server (AS) 2.1.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least Errata 25|Install Errata 25 or later.|
|Need kernel 2.4.9|Use Red Hat AS 2.1 with 2.4.9 kernel.|]]></action>
<action type="positive"><![CDATA[The correct Errata or later are installed or not required.]]></action>
</rule>
<rule condition="==" id="22" maximum="N" minimum="Adequate" mode="VERIFY" name="Kernel Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP,$OS_NAM,$OS_VER,$VER,$UNT_LVL
macro chk_version
{var ($ver,$ref) = @arg
 return compare('older',$ver,$ref)
}
var $ver = replace($VER,'\-','.')
call setHcveResult(check($OS_TYP,\
  'Red Hat',check(lc($OS_NAM),\
    '(pensacola|panama|shrike)',cond(\
       chk_version($OS_VER,'2.4.9'), 'Need 2.4.9 for Red Hat 2.1',\
                                     'Adequate'),\
    'taroon',cond(\
       chk_version($ver,'1.4.21.4'), 'Need 2.4.21-4+ for Red Hat 3.0',\
                                     'Adequate'),\
                                     'Not certified OS'),\
  'UnitedLinux',check($UNT_LVL,\
       '^2a$',cond(chk_version($ver,'2.4.19'),\
                                     'Need 2.4.19+ for United Linux with SP2a',\
                                     'Adequate'),\
       '^3$', cond(chk_version($ver,'2.4.21'),\
                                     'Need 2.4.21+ for United Linux with SP3',\
                                     'Adequate'),\
                                     'Need SP2a or SP3 for United Linux 1.0'),\
  'Not certified OS'))
]]></command>
<description><![CDATA[This rule checks the minimum supported kernel. The kernel version depends on the distribution:
For Red Hat AS/ES2.1: 2.4.9.
For Red Hat AS/ES 3.0: 2.4.21-4-EL.
For United Linux 1.0-SP2a: 2.4.19.
For United Linux 1.0-SP3: 2.4.21.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need 2.4.9 for Red Hat 2.1|Use Red Hat 2.1 with 2.4.9 kernel.|
|Need 2.4.21-4+ for Red Hat 3.0|Use Red Hat 3.0 with 2.4.21-4 kernel|
|Need 2.4.19+ for United Linux with SP2a|Use United Linux 1.0 + SP2a with 2.4.19 kernel or later.|
|Need 2.4.21+ for United Linux with SP3|Use United Linux 1.0 + SP3 with 2.4.21 kernel or later.|
|Need SP2a or SP3 for United Linux 1.0|Use United Linux 1.0 with SP2a or SP3.|
|Not certified OS|Use a certified operating system.|]]></action>
<action type="positive"><![CDATA[The correct kernel or later is installed.]]></action>
</rule>
<rule condition="==" id="23" maximum="N" minimum="Adequate" mode="VERIFY" name="glibc Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP,$OS_NAM,$UNT_LVL
call setHcveResult(check($OS_TYP,\
  'Red Hat',check(lc($OS_NAM),\
    '(pensacola|panama|shrike)', tst_os_pkg('glibc','2.2.4-32'),\
    'taroon',                    tst_os_pkg('glibc','2.3.2-95.3'),\
                                 'Not certified OS'),\
  'UnitedLinux',check($UNT_LVL,\
    '^2a$', tst_os_pkg('glibc','2.2.5-179'),\
    '^3$',  tst_os_pkg('glibc','2.2.5-213'),\
            'Need SP2a or SP3 for United Linux 1.0'),\
  'Not certified OS'))
]]></command>
<description><![CDATA[This rule checks the minimum supported glibc. The glibc version depends on the distribution:
For Red Hat 2.1: glibc-2.2.4-32 or later.
For Red Hat 3.0: glibc-2.3.2-95.3 or later.
For United Linux 1.0-SP2a: glibc-2.2.5-179 or later.
For United Linux 1.0-SP3: glibc-2.2.5-213 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least glibc-2.2.4-32|Use Red Hat 2.1 with glibc-2.2.4-32 or later.|
|Need at least glibc-2.3.2-95.3|Use Red Hat 3.0 with glibc-2.3.2-95.3 or later.|
|Need at least glibc-2.2.5-179|Use United Linux 1.0 + SP2a with glibc-2.2.5-179 or later.|
|Need at least glibc-2.2.5-213|Use United Linux 1.0 + SP3 with glibc-2.2.5-213 or later.|
|Need SP2a or SP3 for United Linux 1.0|Use United Linux 1.0 with SP2a or SP3.|
|... not installed|Install glibc.|
|Not certified OS|Use a certified operating system.|]]></action>
<action type="positive"><![CDATA[The correct glibc version or later is installed.]]></action>
</rule>
<rule condition="=~" id="24" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="gcc Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM
call setHcveResult(check(lc($OS_NAM),\
  '(pensacola|panama|shrike)', tst_os_pkg('gcc','2.96-108.1'),\
  'taroon',                    tst_os_pkg('gcc','3.2.3-20'),\
                               'Not required'))
]]></command>
<description><![CDATA[This rule checks the minimum supported gcc version. This is only applicable to Red Hat.
For Red Hat AS 2.1: gcc-2.96-108.1 or later.
For Red Hat 3.0: gcc-3.2.3-20 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least gcc-2.96-108.1|Install gcc-2.96-108.1 or later.|
|Need at least gcc-3.2.3-20|Install gcc-3.2.3-20 or later.|
|... not installed|Install gcc-2.96-108.1 or later for Pensacola, Panama, Shrike.|
|... not installed|Install gcc-3.2.3-20 or later for Taroon.|]]></action>
<action type="positive"><![CDATA[The correct gcc package version or later is installed or not required.]]></action>
</rule>
<rule condition="==" id="25" maximum="N" minimum="Adequate" mode="VERIFY" name="pdksh Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP,$OS_NAM
call setHcveResult(check($OS_TYP,\
  'Red Hat',check(lc($OS_NAM),\
    '(pensacola|panama|shrike)', tst_os_pkg('pdksh','5.2.14-13'),\
    'taroon',                    tst_os_pkg('pdksh','5.2.14'),\
                                 'Not certified OS'),\
  'UnitedLinux',tst_os_pkg('pdksh','5.2.14'),\
  'Not certified OS'))
]]></command>
<description><![CDATA[This rule checks the minimum required pdksh package version.
For Red Hat AS 2.1: pdksh-5.2.14-13 or later.
For Red Hat AS 3.0 and United Linux 1.0: pdksh-5.2.14 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least pdksh-5.2.14-13|Install pdksh-5.2.14-13 or later.|
|Need at least pdksh-5.2.14|Install pdksh-5.2.14 or later.|
|... not installed|Install pdksh-5.2.14-13 or later for Pensacola, Panama, Shrike.|
|... not installed|Install pdksh-5.2.14 or later for Taroon, United Linux 1.0.|
|Not certified OS|Use a certified operating system.|]]></action>
<action type="positive"><![CDATA[The correct pdksh package version or later is installed or not required.]]></action>
</rule>
<rule condition="==" id="26" maximum="N" minimum="Adequate" mode="VERIFY" name="openmotif Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP,$OS_NAM
call setHcveResult(check($OS_TYP,\
  'Red Hat',check(lc($OS_NAM),\
    '(pensacola|panama|shrike)', tst_os_pkg('openmotif','2.1.30'),\
    'taroon',                    tst_os_pkg('openmotif','2.1.30-8'),\
                                 'Not certified OS'),\
  'UnitedLinux',tst_os_pkg('openmotif','2.1.30MLI4'),\
  'Not certified OS'))
]]></command>
<description><![CDATA[This rule checks the minimum required openmotif package version.
For Red Hat AS 2.1: openmotif-2.1.30 or later.
For Red Hat AS 3.0: openmotif21-2.1.30-8 or later.
For United Linux 1.0: openmotif-2.1.30MLI4 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least openmotif-2.1.30|Install openmotif-2.1.30 or later.|
|Need at least openmotif-2.1.30-8|Install openmotif21-2.1.30-8 or later.|
|Need at least openmotif(MLI4)-2.1.30|Install openmotif-2.1.30MLI4 or later.|
|... not installed|Install openmotif-2.1.30 or later for Pensacola, Panama, Shrike.|
|... not installed|Install openmotif21-2.1.30-8 or later for Taroon.|
|... not installed|Install openmotif-2.1.30MLI4 or later for United Linux 1.0.|
|Not certified OS|Use a certified operating system.|]]></action>
<action type="positive"><![CDATA[The correct openmotif package version or later is installed.]]></action>
</rule>
<rule condition="==" id="27" maximum="N" minimum="Adequate" mode="VERIFY" name="sysstat Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP,$OS_NAM
call setHcveResult(check($OS_TYP,\
  'Red Hat',check(lc($OS_NAM),\
    '(pensacola|panama|shrike)', tst_os_pkg('sysstat','4.0.1'),\
    'taroon',                    tst_os_pkg('sysstat','4.0.7'),\
                                 'Not certified OS'),\
  'UnitedLinux',tst_os_pkg('sysstat','4.0.3'),\
  'Not certified OS'))
]]></command>
<description><![CDATA[This rule checks the minimum required sysstat package version.
For Red Hat AS/ES 2.1: sysstat-4.0.1 or later.
For Red Hat AS/ES 3.0: sysstat-4.0.7 or later.
For United Linux 1.0: sysstat-4.0.3 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least sysstat-4.0.1|Install sysstat-4.0.1 or later.|
|Need at least sysstat-4.0.3|Install sysstat-4.0.3 or later.|
|Need at least sysstat-4.0.7|Install sysstat-4.0.7 or later.|
|... not installed|Install sysstat-4.0.1 or later for Pensacola, Panama, Shrike.|
|... not installed|Install sysstat-4.0.3 or later for Taroon.|
|... not installed|Install sysstat-4.0.7 or later for United Linux 1.0.|
|Not certified OS|Use a certified operating system.|]]></action>
<action type="positive"><![CDATA[The correct sysstat package version or later is installed.]]></action>
</rule>
<rule condition="=~" id="28" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="compat-glibc Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM
call setHcveResult(check(lc($OS_NAM),\
  '(pensacola|panama|shrike)', tst_os_pkg('compat-glibc','6.2-2.1.3.2'),\
  'taroon',                    tst_os_pkg('compat-glibc','7.x-2.2.4.32.5'),\
                               'Not required'))
]]></command>
<description><![CDATA[This rule checks the minimum required compat-glibc package version.
For Red Hat AS/ES 2.1: compat-glibc-6.2-2.1.3.2 or later.
For Red Hat AS/ES 3.0: compat-glibc-7.x-2.2.4.32.5 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least compat-glibc-6.2-2.1.3.2|Install compat-glibc-6.2-2.1.3.2 or later.|
|Need at least compat-glibc-7.x-2.2.4.32.5|Install compat-glibc-7.x-2.2.4.32.5 or later.|
|... not installed|Install compat-glibc-6.2-2.1.3.2 or later for Pensacola, Panama, Shrike.|
|... not installed|Install compat-glibc-7.x-2.2.4.32.5 or later for Taroon.|]]></action>
<action type="positive"><![CDATA[The correct compat-glibc package version or later is installed or not required.]]></action>
</rule>
<rule condition="=~" id="29" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="libstdc++ Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP,$OS_NAM
call setHcveResult(check($OS_TYP,\
  'Red Hat',check(lc($OS_NAM),\
    '(pensacola|panama|shrike)', tst_os_pkg('libstdc++','2.96-108.1'),\
                                 'Not required'),\
  'UnitedLinux',tst_os_pkg('libstdc++','3.2.2-38'),\
  'Not required'))
]]></command>
<description><![CDATA[This rule checks that the minimum required libstdc++ package version is installed.
For Red Hat AS/ES 2.1: libstdc++-2.96-108.1 or later.
For United Linux 1.0: libstdc++-3.2.2-38 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least libstdc++-2.96-108.1|Install libstdc++-2.96-108.1 or later.|
|Need at least libstdc++-3.2.2-38|Install libstdc++-3.2.2-38 or later.|
|... not installed|Install libstdc++-2.96-108.1 or later for Pensacola, Panama, Shrike.|
|... not installed|Install libstdc++-3.2.2-38 or later for United Linux 1.0.|]]></action>
<action type="positive"><![CDATA[The correct libstdc++ package version or later is installed or not required.]]></action>
</rule>
<rule condition="=~" id="30" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="setarch Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM
call setHcveResult(check(lc($OS_NAM),\
  'taroon', tst_os_pkg('setarch','1.3-1'),\
            'Not required'))
]]></command>
<description><![CDATA[This rule checks that the minimum required setarch package version is installed. This is required for Red Hat AS/ES 3.0 only. The minimum required version is setarch-1.3-1 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least setarch-1.3-1|Install setarch-1.3-1 or later.|
|... not installed|Install setarch-1.3-1 or later.|]]></action>
<action type="positive"><![CDATA[The correct setarch package version or later is installed or not required.]]></action>
</rule>
<rule condition="=~" id="31" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="gnome-libs Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM
call setHcveResult(check(lc($OS_NAM),\
  'taroon', tst_os_pkg('gnome-libs','1.4.1.2.90-34.1'),\
            'Not required'))
]]></command>
<description><![CDATA[This rule checks that the minimum required gnome-libs package version is installed. This is required for Red Hat AS/ES 3.0 only. The minimum required version is gnome-libs-1.4.1.2.90-34.1 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least gnome-libs-1.4.1.2.90-34.1|Install gnome-libs-1.4.1.2.90-34.1 or later.|
|... not installed|Install gnome-libs-1.4.1.2.90-34.1 or later.|]]></action>
<action type="positive"><![CDATA[The correct gnome-libs package version or later is installed or not required.]]></action>
</rule>
<rule condition="=~" id="32" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="compat-gcc Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM
call setHcveResult(check(lc($OS_NAM),\
  'taroon', tst_os_pkg('compat-gcc','7.3-2.96.122'),\
            'Not required'))
]]></command>
<description><![CDATA[This rule checks that the minimum required compat-gcc package version is installed. This is required for Red Hat AS/ES 3.0 only. The minimum required version is compat-gcc-7.3-2.96.122 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least compat-gcc-7.3-2.96.122|Install compat-gcc-7.3-2.96.122 or later.|
|... not installed|Install compat-gcc-7.3-2.96.122 or later.|]]></action>
<action type="positive"><![CDATA[The correct compat-gcc package version or later is installed or not required.]]></action>
</rule>
<rule condition="=~" id="33" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="compat-libstdc++ Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM
call setHcveResult(check(lc($OS_NAM),\
  'taroon', tst_os_pkg('compat-libstdc++','7.3-2.96.122'),\
            'Not required'))
]]></command>
<description><![CDATA[This rule checks that the minimum required compat-libstdc++ package version is installed. This is required for Red Hat AS/ES 3.0 only. The minimum required version is compat-libstdc++-7.3-2.96.122 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least compat-libstdc++-7.3-2.96.122|Install compat-libstdc++-7.3-2.96.122 or later.|
|... not installed|Install compat-libstdc++-7.3-2.96.122 or later.|]]></action>
<action type="positive"><![CDATA[The correct compat-libstdc++ package version or later is installed or not required.]]></action>
</rule>
<rule condition="=~" id="34" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="compat-libstdc++-devel Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM
call setHcveResult(check(lc($OS_NAM),\
  'taroon', tst_os_pkg('compat-libstdc++-devel','7.3-2.96.122'),\
            'Not required'))
]]></command>
<description><![CDATA[This rule checks that the minimum required compat-libstdc++-devel package version is installed. This is required for Red Hat AS/ES 3.0 only. The minimum required version is compat-libstdc++-devel-7.3-2.96.122 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least compat-libstdc++-devel-7.3-2.96.122|Install compat-libstdc++-devel-7.3-2.96.122 or later.|
|... not installed|Install compat-libstdc++-devel-7.3-2.96.122 or later.|]]></action>
<action type="positive"><![CDATA[The correct compat-libstdc++ package version or later is installed or not required.]]></action>
</rule>
<rule condition="=~" id="35" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="compat-gcc-c++ Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM
call setHcveResult(check(lc($OS_NAM),\
  'taroon', tst_os_pkg('compat-gcc-c++','7.3-2.96.122'),\
            'Not required'))
]]></command>
<description><![CDATA[This rule checks that the minimum required ccompat-gcc-c++ package version is installed. This is required for Red Hat AS/ES 3.0 only. The minimum required version is compat-gcc-c++-7.3-2.96.122 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least compat-gcc-c++-7.3-2.96.122|Install compat-gcc-c++-7.3-2.96.122 or later.|
|... not installed|Install compat-gcc-c++-7.3-2.96.122 or later.|]]></action>
<action type="positive"><![CDATA[The correct compat-gcc-c++ package version or later is installed or not required.]]></action>
</rule>
<rule condition="=~" id="36" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="gcc_old Version" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP
call setHcveResult(check($OS_TYP,\
  'UnitedLinux', tst_os_pkg('gcc_old','2.95.3'),\
                 'Not required'))
]]></command>
<description><![CDATA[This rule checks if the minimum required gcc_old package version is installed. This is required for United Linux 1.0 only. The minimum required version is gcc_old-2.95.3 or later.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Need at least gcc_old-2.95.3|Install gcc_old-2.95.3 or later.|
|... not installed|Install gcc_old-2.95.3 or later.|]]></action>
<action type="positive"><![CDATA[The correct gcc_old package version or later is installed or not required.]]></action>
</rule>
<rule condition="=~" id="37" maximum="N" minimum="Exist|Not required" mode="VERIFY" name="gcc and gcc++ Links" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP,$OS_NAM
var $LS = findCommand('ls')
call setHcveVariable('$LS')
call setHcveResult(check($OS_TYP,\
  'Red Hat',check(lc($OS_NAM),\
    'taroon',cond(and(grepCommand(concat($LS,' -l /usr/bin/gcc'),\
                                  quote('/usr/bin/gcc296'),\
                                  'f'),\
                      grepCommand(concat($LS,' -l /usr/bin/g++'),\
                                  quote('/usr/bin/g++296'),\
                                  'f')),\
                    'Exist',\
                  and(grepCommand(concat($LS,' -l /usr/bin/gcc'),\
                                  quote('./gcc296'),\
                                  'f'),\
                      grepCommand(concat($LS,' -l /usr/bin/g++'),\
                                  quote('./g++296'),\
                                  'f')),\
                    'Exist',\
                    'Missing'),\
                    'Not required'),\
  'UnitedLinux',cond(and(grepCommand(concat($LS,' -l /usr/bin/cc'),\
                                     quote('/opt/gcc295/bin/gcc'),\
                                     'f'),\
                         grepCommand(concat($LS,' -l /lib/libgcc.a'),\
                                     quote('/opt/gcc295/lib/gcc-lib/\
                                     i486-suse-linux/2.95.3/libgcc.a'),\
                                     'f')),\
                    'Exist',\
                    'Missing'),\
  'Not required'))
]]></command>
<description><![CDATA[This rule checks that the gcc++ links are created. This is required for Red Hat AS/ES 3.0 and United Linux 1.0.
For Red Hat AS/ES 3.0, the following links must exist:
/usr/bin/gcc -> /usr/bin/gcc296 and /usr/bin/g++ -> /usr/bin/g++296.
For United Linux, 1.0 the following must exist and the gcc_package is installed (should find /opt/gcc295):
/usr/bin/gcc -> /opt/gcc295/bin/gcc
/usr/bin/cc -> /opt/gcc295/bin/gcc
/lib/libgcc.a -> /opt/opt/gcc295/lib/gcc-lib/i486-suse-linux/2.95.3/libgcc.a.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Missing|Create gc and gcc++ links.|]]></action>
<action type="positive"><![CDATA[The correct required gcc and gcc++ links are created or are not required.]]></action>
</rule>
<rule condition="=~" id="38" maximum="N" minimum="Adequate|Not required" mode="VERIFY" name="hugemem Kernel" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM,$VER
call setHcveResult(check(lc($OS_NAM),\
  'taroon',cond(\
     and(match($VER,'hugemem',true),not(match(uname('m'),'i386',true))),\
     'hugemem kernel is used',\
     'Adequate'),\
     'Not required'))
]]></command>
<description><![CDATA[This rule checks if the hugemem kernel is used. This is required for Red Hat AS/ES 3.0 only. If the hugemem kernel is used, then you must run the setarch i386 command.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|hugemem kernel is used|Run the setarch i386 command.|]]></action>
<action type="positive"><![CDATA[The hugemem kernel is either not used or is used and the setarch i386 command is run.]]></action>
</rule>
<rule condition="=~" id="39" maximum="N" minimum="Installed|Not required" mode="VERIFY" name="Patch 3006854" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_NAM,$LS
call setHcveResult(check(lc($OS_NAM),\
  'taroon',cond(\
     and(grepCommand(concat($LS,' -l /etc/libcwait.so'),'.','f'),\
         grepFile('/etc/ld.so.preload',quote('/etc/libcwait.so'),'f')),\
     'Installed',\
     'Not Installed'),\
     'Not required'))
]]></command>
<description><![CDATA[This rule checks that patch 3006854 is applied. This is required for Red Hat AS/ES 3.0 only.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Not Installed|Install patch 3006854.|]]></action>
<action type="positive"><![CDATA[Patch 3006854 is installed or not required.]]></action>
</rule>
<rule condition="=~" id="40" maximum="N" minimum="Exists|Not required" mode="VERIFY" name="Perl Link" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP,$LS
call setHcveResult(check($OS_TYP,\
  'UnitedLinux',cond(\
     grepCommand(concat($LS,' -l /usr/local/bin/perl'),\
                 quote('/usr/bin/perl'),\
                 'f'),\
     'Exists',\
     'Missing'),\
     'Not required'))
]]></command>
<description><![CDATA[This rule checks that the following symbolic link exists. This is required for United Linux 1.0. /usr/local/bin/perl -> /usr/bin/perl.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Missing|Create the Perl symbolic link.|]]></action>
<action type="positive"><![CDATA[The Perl link exists or is not required.]]></action>
</rule>
<rule condition="=~" id="41" maximum="N" minimum="Exists|Not required" mode="VERIFY" name="fuser Link" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP,$LS
call setHcveResult(check($OS_TYP,\
  'UnitedLinux',cond(\
     grepCommand(concat($LS,' -l /sbin/fuser'),quote('/bin/fuser'),'f'),\
     'Exists',\
     'Missing'),\
     'Not required'))
]]></command>
<description><![CDATA[This rule checks that the fuser symbolic link exists. This is required for United Linux 1.0.
/sbin/fuser -> /bin/fuser]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Missing|Create the fuser symbolic link.|]]></action>
<action type="positive"><![CDATA[The fuser link exists or is not required.]]></action>
</rule>
<rule condition="=~" id="42" maximum="N" minimum="Not installed|Installed correctly|Not applicable" mode="VERIFY" name="orarun Package" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP
call setHcveResult(check($OS_TYP,\
  'UnitedLinux',cond(\
     not(chk_os_pkg('orarun')),\
       'Not installed',\
     and(not(grepFile('/etc/profile.d',\
                      '(oracle\.csh|oracle\.sh|alljava\.sh|alljava\.csh)',\
                      'if')),\
         not(grepFile(catFile(getEnv('HOME'),'.profile'),\
                      quote('. ./.oracle'),\
                      'if'))),\
       'Installed correctly',\
       'Clear profile.d and .profile'),\
       'Not applicable'))
]]></command>
<description><![CDATA[This rule checks that the orarun package is installed on the system. This is required for United Linux 1.0. If orarun is installed, then the following must be run:
(1) oracle.csh, oracle.sh, alljava.sh and alljava.csh do not exist under /etc/profile.d.
(2) $HOME/.profile does not include ". ./.oracle".]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Clear profile.d and .profile|Clear profile.d and .profile from reference to orarun package.|]]></action>
<action type="positive"><![CDATA[orarun is not installed or installed correctly.]]></action>
</rule>
<rule condition="=~" id="43" maximum="N" minimum="Not required|Installed" mode="VERIFY" name="Patch 3167528" repeat="1" command_type="RDA">
<command><![CDATA[import $OS_TYP
if !match($OS_TYP,'UnitedLinux')
 return setHcveResult('Not required')
macro chk_pch
{var ($prt,$ref,$val) = @arg
 import $err
 while expr('<=',$prt,$ref)
 {if and(grepLastFile($prt,'f'),not(match(\
           substr(field('\s+',0,grepLastFile($prt,'f')),0,1),'#')))
  {var $err = true
   var $prt = $val
  }
  incr $prt
 }
}
var $err = false
call loadFile('/etc/services')
call chk_pch(3060,3199,3200)
call chk_pch(1812,1869,1870)
call setHcveResult(cond($err,'Not installed','Installed'))
]]></command>
<description><![CDATA[This rule checks that the patch 3167528 has been applied. This is required for United Linux 1.0.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Not installed|Install patch 3167528.|]]></action>
<action type="positive"><![CDATA[Patch 3167528 is not installed or is not required]]></action>
</rule>
<rule condition="==" id="44" maximum="N" minimum="Adequate" mode="VERIFY" name="semmsl" repeat="1" command_type="RDA">
<command><![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'))
]]></command>
<description><![CDATA[This rule checks that the semmsl kernel parameter is 256 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The semmsl kernel parameter is 256 or higher.]]></action>
</rule>
<rule condition="==" id="45" maximum="N" minimum="Adequate" mode="VERIFY" name="semmns" repeat="1" command_type="RDA">
<command><![CDATA[import $KER
call setHcveResult(cond(\
  not(defined($KER)),                   'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',3,$KER),32000), 'Adequate',\
                                        'Less than 32000'))
]]></command>
<description><![CDATA[This rule checks that the semmns kernel parameter is 32000 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The semmns kernel parameter is 32000 or higher.]]></action>
</rule>
<rule condition="==" id="46" maximum="N" minimum="Adequate" mode="VERIFY" name="semopm" repeat="1" command_type="RDA">
<command><![CDATA[import $KER
call setHcveResult(cond(\
  not(defined($KER)),                 'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',4,$KER),100), 'Adequate',\
                                      'Less than 100'))
]]></command>
<description><![CDATA[This rule checks that the semopm kernel parameter is 100 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The semopm kernel parameter is 100 or higher.]]></action>
</rule>
<rule condition="==" id="47" maximum="N" minimum="Adequate" mode="VERIFY" name="semmni" repeat="1" command_type="RDA">
<command><![CDATA[import $KER
call setHcveResult(cond(\
  not(defined($KER)),                 'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',5,$KER),142), 'Adequate',\
                                      'Less than 142'))
]]></command>
<description><![CDATA[This rule checks that the semmni kernel parameter is 142 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The semmni kernel parameter is 142 or higher.]]></action>
</rule>
<rule condition="==" id="48" maximum="N" minimum="Adequate" mode="VERIFY" name="shmall" repeat="1" command_type="RDA">
<command><![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'))
]]></command>
<description><![CDATA[This rule checks that the shmall kernel parameter is 2097152 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The shmall kernel parameter is 2097152 or higher.]]></action>
</rule>
<rule condition="==" id="49" maximum="N" minimum="Adequate" mode="VERIFY" name="shmmax" repeat="1" command_type="RDA">
<command><![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'))
]]></command>
<description><![CDATA[This rule checks that the shmmax kernel parameter is 2147483648 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The shmmax kernel parameter is 2147483648 or higher.]]></action>
</rule>
<rule condition="==" id="50" maximum="N" minimum="Adequate" mode="VERIFY" name="shmmni" repeat="1" command_type="RDA">
<command><![CDATA[import @KER
call setHcveResult(cond(\
  not(defined($KER[0])),\
    'Cannot access /sbin/sysctl',\
  expr('>=',field('\s+',2,grep(@KER,'kernel\.shmmni','f')),142),\
    'Adequate',\
    'Less than 142'))
]]></command>
<description><![CDATA[This rule checks that the shmmni kernel parameter is 142 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 142|Increase shmmni to 142 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></action>
<action type="positive"><![CDATA[The shmmni kernel parameter is 142 or higher.]]></action>
</rule>
<rule condition="==" id="51" maximum="N" minimum="Adequate" mode="VERIFY" name="msgmax" repeat="1" command_type="RDA">
<command><![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'))
]]></command>
<description><![CDATA[This rule checks that the msgmax kernel parameter is 8192 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The msgmax kernel parameter is 8192 or higher.]]></action>
</rule>
<rule condition="==" id="52" maximum="N" minimum="Adequate" mode="VERIFY" name="msgmnb" repeat="1" command_type="RDA">
<command><![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'))
]]></command>
<description><![CDATA[This rule checks that the msgmnb kernel parameter is 65535 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The msgmnb kernel parameter is 65535 or higher.]]></action>
</rule>
<rule condition="==" id="53" maximum="N" minimum="Adequate" mode="VERIFY" name="msgmni" repeat="1" command_type="RDA">
<command><![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'))
]]></command>
<description><![CDATA[This rule checks that the msgmni kernel parameter is 2878 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The msgmni kernel parameter is 2878 or higher.]]></action>
</rule>
<rule condition="==" id="54" maximum="N" minimum="Adequate" mode="VERIFY" name="file-max" repeat="1" command_type="RDA">
<command><![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'))
]]></command>
<description><![CDATA[This rule checks that the file-max kernel parameter is 131072 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The file-max kernel parameter is 131072 or higher.]]></action>
</rule>
<rule condition="==" id="55" maximum="N" minimum="Adequate" mode="VERIFY" name="ip_local_port_range" repeat="1" command_type="RDA">
<command><![CDATA[import @KER
if !defined($KER[0])
 return setHcveResult('Cannot access /sbin/sysctl')
var ($lin) = grep(@KER,'ip_local_port_range','f')
var (undef,undef,$low,$hig) = split('\s+',$lin,4)
call setHcveResult(cond(and(expr('<=',$low,20000),expr('>=',$hig,65000)),\
                        'Adequate',\
                        'Less than 20000 and 65000'))
]]></command>
<description><![CDATA[This rule checks that the ip_local_port_range kernel parameter is between 20000 and 65000 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 20000 and 65000|Increase ip_local_port_range to 20000 and 65000 or higher.|
|Cannot access /sbin/sysctl|Grant execute permission on /sbin/sysctl to the current user.|]]></action>
<action type="positive"><![CDATA[The ip_local_port_range kernel parameter is between 20000 and 65000 or higher.]]></action>
</rule>
<rule condition="==" id="56" maximum="N" minimum="Adequate" mode="VERIFY" name="limit processes" repeat="1" command_type="RDA">
<command><![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)))
]]></command>
<description><![CDATA[This rule checks that the limit of max processes is set to 16384 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 16384|Increase the limit for max processes to 16384 or higher.|]]></action>
<action type="positive"><![CDATA[The limit of max processes is set to 16384 or higher.]]></action>
</rule>
<rule condition="==" id="57" maximum="N" minimum="Adequate" mode="VERIFY" name="limit descriptors" repeat="1" command_type="RDA">
<command><![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 descriptors"'),true),\
             proc_lmt(concat($shl,' -c "ulimit -n"'),false)))
]]></command>
<description><![CDATA[This rule checks that the limit of descriptors is set to 16384 or higher. For information about configuring this parameter, see the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Less than 16384|Increase the limit for descriptors to 16384 or higher.|]]></action>
<action type="positive"><![CDATA[The limit of descriptors is set to 16384 or higher.]]></action>
</rule>
<rule condition="=~" id="58" maximum="N" minimum="TNS Listener 9.0.1 or later is running|Free" mode="VERIFY" name="Port 1521" repeat="1" command_type="RDA">
<command><![CDATA[var @lst = grepCommand('/bin/netstat -an','LISTEN')
if !grep(@lst,'1521','f')
 return setHcveResult('Free')
call cond(\
 testFile('x','/usr/sbin/lsof'),\
   assign($prc,grepCommand('/usr/sbin/lsof -i TCP:1521','LIST','f')),\
 testFile('x','/usr/bin/lsof'),\
   assign($prc,grepCommand('/usr/bin/lsof -i TCP:1521','LIST','f')))
if !length($prc)
 return setHcveResult('Cannot access lsof')
macro chk_tns
{var ($prc) = @arg
 var @cmd = grepCommand('ps auxww',field('\s+',1,$prc))
 var @ver = command(replace(field(\
    '\s+',10,grep(@cmd,'tnslsnr','f')),'tnslsnr','lsnrctl version'))
 var $ver = field('\s+',4,grep(@ver,'LSNRCTL','f'))
 return cond(compare('older',$ver,'9.0.1'),\
             concat('TNS Listener version [',$ver,'] is running'),\
             'TNS Listener 9.0.1 or later is running')
}
call setHcveResult(cond(not(match(field('\s+',0,$prc),'tnslsnr',true)),\
                        'Port is used by non-oracle program',\
                        chk_tns($prc)))
]]></command>
<description><![CDATA[This rule checks that port 1521 is free. If an Oracle listener version 9.0.1 or later uses port 1521, then the existing database and the Oracle Application Server 10g Metadata Repository will use the existing listener. The installer performs this configuration automatically. If an Oracle listener version earlier than 9.0.1 uses port 1521, then the existing listener must be stopped. After the installation is complete, you can configure the new 9.0.1 listener to listen to the existing (pre 9.0.1) databases. If non Oracle programs use port 1521, then this program must be configured to listen to ports other than 1521. For more information, see the "If Port 1521 is in Use" section of the ''Oracle Application Server 10g Installation Guide''.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|TNS Listener version ... is running|Stop the existing listener.|
|Port is used by non-oracle program|Reconfigure the program to use a different port than 1521.|
|Cannot access lsof|Manually check port 1521.|]]></action>
<action type="positive"><![CDATA[Port 1521 is not used or is used by TNS*Listener version 9.0.1 or later.]]></action>
</rule>
<rule condition="==" id="59" maximum="N" minimum="Properly defined" mode="VERIFY" name="Environment Variables" repeat="1" command_type="RDA">
<command><![CDATA[
if grepEnv('^(TNS_ADMIN|ORA_NLS|ORA_NLS32|ORA_NLS33|LD_BIND_NOW)$')
 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')
]]></command>
<description><![CDATA[This rule checks that the following environment variables are not set: TNS_ADMIN, ORA_NLS, ORA_NLS32, ORA_NLS33, and LD_BIND_NOW. In addition, the following environment variables must not reference to any existing Oracle home, PATH, CLASSPATH, and LD_LIBRARY_PATH.]]></description>
<action type="negative" 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, ORA_NLS32, ORA_NLS33, and LD_BIND_NOW.|
|Cannot access /etc/oratab|Grant read permission on /etc/oratab to the current user.|]]></action>
<action type="positive"><![CDATA[Environment variables do not have a reference to any existing Oracle homes.]]></action>
</rule>
<rule id="60" mode="RECORD" name="Domain Name" repeat="1" command_type="RDA">
<command><![CDATA[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'))
 }
}
call setHcveResult(cond($dom,$dom,\
                        and(length($nis),compare('ne',$nis,'(none)')),$nis,\
                        $dns,$dns,\
                        $nsl,$nsl,\
                             'Not configured'))
]]></command>
<description><![CDATA[This rule gets the host domain name.]]></description>
</rule>
<rule id="61" mode="RECORD" name="IP Address" repeat="1" command_type="RDA">
<command><![CDATA[var $hst = field('\.',0,command('hostname'))
var ($lin) = grepFile('/etc/hosts',\
 concat('^[^#]+\s\<?',quote($hst),'\>?($|\.|\s)'),'f')
call setHcveResult(field('\s+',0,$lin))
]]></command>
<description><![CDATA[This rule gets the host IP address.]]></description>
</rule>
<rule condition="==" id="62" minimum="Host correctly registered in DNS" mode="VERIFY" name="DNS Lookup" repeat="1" command_type="RDA">
<command><![CDATA[var $ip  = "%61%"
var $hst = field('\.',0,command('hostname'))
call setHcveResult(cond(\
  not(length($ip)),\
    'Cannot determine IP address',\
  not(testFile('x','/usr/bin/nslookup')),\
    'Cannot access /usr/bin/nslookup',\
  and(grepCommand(concat('/usr/bin/nslookup ',$hst),quote($ip),'f'),\
      grepCommand(concat('/usr/bin/nslookup ',$ip),quote($hst),'f')),\
    'Host correctly registered in DNS',\
    'Host not correctly registered in DNS'))
]]></command>
<description><![CDATA[This rule checks that the host is registered properly in the DNS.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Host not correctly registered in DNS|Register the host.domain in the DNS.|
|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.|]]></action>
<action type="positive"><![CDATA[The host is registered correctly in the DNS.]]></action>
</rule>
<rule condition="==" id="63" minimum="Contains host.domain" mode="VERIFY" name="/etc/hosts Format" repeat="1" command_type="RDA">
<command><![CDATA[var $dom = "%60%"
var $ip  = "%61%"
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'))
]]></command>
<description><![CDATA[This rule checks that the /etc/hosts file contains a line with "ip_address fully_qualified_hostname short_hostname".]]></description>
<action type="negative" 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.|]]></action>
<action type="positive"><![CDATA[The Fuly Qualified Domain name is set correctly.]]></action>
</rule>
<rule condition="==" id="64" minimum="Less than 127 char" mode="VERIFY" name="Oracle Home Length" repeat="1" command_type="RDA">
<command><![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 char'))
]]></command>
<description><![CDATA[This rule checks that the path to the Oracle home directory is not longer than 127 characters.]]></description>
<action type="negative" syntax="wiki"><![CDATA[|*Return Value*|*Action*|
|Longer than 127 char|Change ORACLE_HOME to a directory not longer than 127 characters.|
|ORACLE_HOME is not set|Set the ORACLE_HOME environment variable.|]]></action>
<action type="positive"><![CDATA[The Oracle home directory is not longer than 127 characters.]]></action>
</rule>
</hcve>
