Creating Custom Collectors For Windows Systems; Creating Custom Vbscript Collectors Common To All Configuration Files - IBM Prerequisite Scanner User Manual

Table of Contents

Advertisement

Creating custom collectors for Windows systems

You can create custom connectors if the basic set collectors do not collect values for
the prerequisite properties required for the product to be installed. You can create
custom common VBScript collectors to collect data for prerequisite properties that
apply to any product and product version. Alternatively, you can create custom
product-specific ones to collect data that apply to a specific product and product
version. While each type of custom VBScript collector collects data by using the
same methods, the rules for creation, storage, and execution are slightly different.
Creating custom VBScript collectors common to all
configuration files
When you create custom common VBScript collectors, the file name must contain
the name of the prerequisite property and stored in the /lib subdirectory. The
collector contains code to obtain the actual value for a prerequisite property. It can
also use the common functions and sub routines to obtain the value if required.
Before you begin
Ensure that you review the set of predefined functions and sub routines in the
following appendixes before you create the collectors. Determine whether you can
use any of them to obtain the actual values:
v Appendix E, "Common functions for Windows systems," on page 113
v Appendix G, "File utility sub routines for Windows systems," on page 129
v Appendix F, "Logging utility sub routines for Windows systems," on page 127
v Appendix H, "Other common functions and sub routines for Windows systems,"
Determine whether the collector must check that the prerequisite property exists
and if it does, what other information must be gathered. Each check must return a
value, whether one exists or not. For example:
v Check whether an environment variable exists, such as the home directory of a
v Check whether the environment variable contains a JAR file, binary, or path,
v Check the actual value of an environment variable, such as the home directory
v Check whether a product is installed.
v Check what version of the product is installed.
Procedure
1. Create a VBScript file. Save the file in the ips_root/lib directory, with a variant
46
Prerequisite Scanner: User's Guide
on page 131
product, for example TCR_HOME for Tivoli Common Reporting.
such as the path to the JRE in the PATH environment variable.
of a product, for example TCR_HOME for Tivoli Common Reporting.
of the following file naming convention:
[prefix_identifier.]property_name.vbs
where:
prefix_identifier is the prefix identifier for a predefined category of
v
prerequisite properties as outlined in Table 3 on page 4.
v property_name is the prerequisite property name and is used in the collector
name.

Advertisement

Table of Contents
loading

Table of Contents