Prerequisite Scanner Evaluators - IBM Prerequisite Scanner User Manual

Table of Contents

Advertisement

For example, the installedSoftware.TCR.version file is a custom collector that
obtains the version of Tivoli Common Reporting that is installed on the machine. It
is stored in the ips_root/UNIX_Linux directory.
UNIX collectors must adhere to the following rules:
v Naming convention for the custom UNIX collector file with no file extension:
v Standard output for a prerequisite property that returns the actual value for the
v Code to call and run the collector in the ips_root/UNIX_Linux/packageTest.sh

Prerequisite Scanner evaluators

IBM Prerequisite Scanner evaluators are scripts that compare the actual data from
the collectors and the expected data for the same properties that are in the
configuration files. Evaluations can be: platform-specific; based on simple
operators, such as, less than, equal to, or greater than; and based on whether a
property is installed, present, or enabled. They can also verify whether ports are in
use or available and connectivity status of the machine. You can create or edit
evaluators.
Prerequisite Scanner uses evaluators in the following languages depending upon
your platform:
v Windows: VBScript with .vbs extension
22
Prerequisite Scanner: User's Guide
[prefix_identifier.]property_name
where:
– prefix_identifier is an identifier for a predefined category of prerequisite
properties as outlined in Table 3 on page 4. This prefix identifier is required
by some of the predefined categories, for example, installedSoftware.
– property_name is the name of the prerequisite property, for example,
TCR.version.
Store the collector in the ips_root/UNIX_Linux directory. Ensure that it does not
have a file extension.
prerequisite property if it is an integer or string; for example, the software
version or the amount of available disk space for a mounted file system.
Alternatively, it can return "Unavailable" if it does not.
echo "True"|"False" 'If the scan checks for the existence of the prerequisite
'property
echo $res 'If the scan checks returns the value, for example, product version,
'of the prerequisite property
echo "Unavailable" 'If the scan returns no value for the prerequisite property
echo "Available" 'If the scan returns a valid check for the prerequisite property
script.
res=`echo $line | grep installedSoftware.TCR.version`
if [ $res ]; then
ExpValue=`echo $res | cut -d "=" -f2`
echo "\`wrlTrace "Starting" "installedSoftware.TCR.version"\`" >>/tmp/prs.check
echo "\`wrlTrace "Executing" "installedSoftware.TCR.version"\`" >>/tmp/prs.check
echo "\`wrlDebug "Starting" "installedSoftware.TCR.version"\`" >>/tmp/prs.check
echo "\`wrlDebug "Expected" "ExpValue" \`" >>/tmp/prs.check
echo "ss=\`./installedSoftware.TCR.version\`" >>/tmp/prs.check
echo "\`wrlTrace "Finished" "installedSoftware.TCR.version"\`" >>/tmp/prs.check
echo "echo \"os.userLimits=\$ss\"" >>/tmp/prs.check
echo "\`wrlDebug "Finished" "installedSoftware.TCR.version"\`" >>/tmp/prs.check
echo "\`wrlDebug "OutPutValueIs" \$ss\`" >>/tmp/prs.check
echo "\`wrlTrace "Done" "installedSoftware.TCR.version"\`" >>/tmp/prs.check
fi

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Prerequisite Scanner and is the answer not in the manual?

Questions and answers

Table of Contents