13.32 SetResDependency

Use this Knowledge Script to define the resources required to run script jobs on a Windows computer. Resources can include physical file-system related resources such as logical disk drives or directories, or the availability of specific services. You can specify the dependency list by script category or define resources that apply to all script jobs.

The resources and services you specify must be active and available for jobs in the specified category to run. If any resource or service is not available, the jobs in the specified category are temporarily suspended until the specified resource or service becomes available.

Typically, this script is used to define shared cluster resources for physical cluster nodes. For information about running this script in active/passive and active/active cluster environments, see the chapter on cluster support in the AppManager Administrator Guide.

This script is used to ensure that jobs do not run when required resources are not available. For example, you may want to check that the Oracle Database services are running before running an Oracle job.

If you are monitoring a cluster environment, you use this script to identify the cluster resources for the active physical node. For example, assume you have an active/passive Exchange 2003 cluster with two physical nodes, SHASTA and VENICE and that this cluster uses the logical drive M: as its shared cluster resource. This shared cluster resource is only available to the active physical node. You use this script to ensure that the Exchange 2003 Knowledge Script jobs only run on the active node by setting the Knowledge Script category parameter to exch and the Required available resources parameter to specify the M: drive.

To remove dependencies, you must cold start the AppManager Client Resource Monitor and AppManager Client Communication Manager services using the -o start parameter.

13.32.1 Resource Objects

Windows 2003 Server or later

13.32.2 Default Schedule

The default interval for this script is Run once.

13.32.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Knowledge Script job categories

Indicate the script category for which you want to specify resource dependencies. To specify multiple categories, separate the names with commas and no spaces. The default is all (*) job categories.

Required available resources

Specify the physical resources required for running jobs in the specified category. Physical resources are file-system based and can include logical disk drives, directories, or specific files. You can enter multiple resources, separated by commas with no spaces. For example: J:,K:,K:\temp\test.log

Required active services

Specify the Windows services required for running jobs in the specified category. Active services are services that are running when checked. To specify multiple services, separate service names with commas and no spaces: MSSQLServer,SQLExecutive

Raise event when update to required resources succeeds?

Set to y to raise an event indicating the success of the operation. The default is n.

Event severity when resource update succeeds

Set the event notification level to give you the desired visibility for a successful operation. By default, the severity level is 25 (blue event indicator).