IBM Prerequisite Scanner User Manual page 62

Table of Contents

Advertisement

3. Call logging functions for trace and debug data before calling the custom
4. Call the custom collector.
5. Call the logging functions for trace and debug data upon exiting the custom
52
Prerequisite Scanner: User's Guide
res=`echo $line | grep [prefix_identifier.]property_name[.suffix_identifier]`
if [ $res ]; then
ExpValue=`echo $res | cut -d "=" -f2`
For example, to read the custom env.path.jar prerequisite property and check
whether the JRE is set in the PATH variable:
res=`echo $line | grep env.path.jar`
if [ $res ]; then
ExpValue=`echo $res | cut -d "=" -f2`
In the example:
echo "\`wrlTrace "Starting" "env.path.jar"\`" >>/tmp/prs.check
echo "\`wrlTrace "Executing" "env.path.jar"\`" >>/tmp/prs.check
echo "\`wrlDebug "Starting" "env.path.jar"\`" >>/tmp/prs.check
echo "\`wrlDebug "Expected" "ExpValue" \`" >>/tmp/prs.check
collector.
echo "\`wrlTrace "Starting" "[prefix_identifier.]property_name
[.suffix_identifier]"\`" >>/tmp/prs.check
echo "\`wrlTrace "Executing" "[prefix_identifier.]property_name
[.suffix_identifier]"\`" >>/tmp/prs.check
echo "\`wrlDebug "Starting" "[prefix_identifier.]property_name
[.suffix_identifier]"\`" >>/tmp/prs.check
echo "\`wrlDebug "Expected" "ExpValue" \`" >>/tmp/prs.check
Note: If the custom collector has subtypes, that is, [suffix_identifier] in the file
name and needs additional checks based on subtype, pass the
[differentiator_suffix_identifier] differentiator for the subtype to the custom
collector.
echo "ss=\`./[prefix_identifier.]property_name[.suffix_identifier]
[differentiator_suffix_identifier]\`" >>/tmp/prs.check
In the example:
echo "ss=\`./env.path.jar\`" >>/tmp/prs.check
Note: Examples of differentiators for the script_name subtype for the
os.file.script_name prerequisite properties are the paths to the scripts that are
passed to the os.filepath collector:
echo "ss=\`./os.filepath /usr/bin/expect\`" >>/tmp/prs.check #os.file.expect
echo "ss=\`./os.filepath /usr/bin/tar\`" >>/tmp/prs.check #os.file.tar
echo "ss=\`./os.filepath /usr/bin/gzip\`" >>/tmp/prs.check #os.file.gzip
collector.
echo "\`wrlTrace "Finished" "[prefix_identifier.]property_name
[.suffix_identifier]"\`" >/tmp/prs.check
echo "echo \"[prefix_identifier.]property_name
[.suffix_identifier]=\$ss\"" >>/tmp/prs.check
echo "\`wrlDebug "Finished" "[prefix_identifier.]property_name
[.suffix_identifier]"\`" >>/tmp/prs.check
echo "\`wrlDebug "OutPutValueIs" \$ss\`" >/tmp/prs.check
echo "\`wrlTrace "Done" "[prefix_identifier.]property_name
[.suffix_identifier]"\`" >>/tmp/prs.check
fi
In the example:
echo "ss=\`./env.path.jar\`" >>/tmp/prs.check
echo "\`wrlTrace "Finished" "env.path.jar"\`" >>/tmp/prs.check
echo "echo \"env.path.jar=\$ss\"" >>/tmp/prs.check

Advertisement

Table of Contents
loading

Table of Contents