Using HP Insight Software from a Highly Available Central Management Server with Microsoft Cluster Service

24
Appendix A —Sample cluster resources creation script
This appendix includes a Microsoft Windows Script Host file that may be copied (e.g. cut and
pasted), customized for your environment, and then executed to create the required HA VSE cluster
resources. Also included are two VBScript script files containing common definitions and functions
used by the cluster resources creation script. Follow these steps to create the required cluster
resources:
1. Create the files HA-VSE_defines.vbs, HA-VSE_common.vbs, and HA-VSE_script.wsf by
copying the contents (e.g., using cut and paste) as listed below.
2. Modify the HA-VSE_defines.vbs file to reflect values specific to your installation. The
values for the following constants are likely to be unique to each configuration.
o simIPNW
o simIPAddr
o simIPNetmask
o simNWname
o simDiskDrive
3. To verify that all prerequisite conditions to create the cluster resources are satisfied,
execute the prerequisites check job step in the Windows Command line Window as
follows:
cscript HA-VSE_script.wsf //job:check
4. Ensure that the output of the prerequisites check job step reports all conditions are "OK"
before proceeding to the next step.
5. If all prerequisite conditions are met, execute the cluster resources definition job step as
follows:
cscript HA-VSE_script.wsf //job:define
6. The results of the cluster resources creation script may be validated using the Cluster
Administrator.
Notes:
If copying across page breaks, extraneous characters may be included in the text. Remove any
such extraneous characters to avoid syntax errors. For example, extraneous characters could result
in a syntax error such as the following:
ha-vse_script.wsf(81, 2) Windows Script Host: Invalid character
A line wrap in the document will appear as two lines in the source file. Remove extraneous new
lines to avoid syntax errors. For example, extraneous new lines could result in a syntax error such
as the following:
ha-vse_script.wsf(104, 76) Microsoft VBScript compilation error:
Unterminated string constant
Examine the lines (in this example, line 104), and edit to join together, removing extraneous new
lines.
……