The Failover Cluster software provides a Generic Script Resource that is used to monitor and perform a clean-up or preparation of the cluster when a failover occurs. The Generic Script resource is a VB script with several predefined functions that are called depending on the state of a resource. For example, Online, Offline, IsAlive, etc. In the event of a failover of an AB Suite application, all the COM+ services are stopped and the status of the AB Suite applications is set to STOPPED. The ABSClusterMonitor.VBS script is used to monitor and call a standalone executable (ShutdownABS.exe) that shuts down all AB Suite COM+ services.
Note: Both the Sample Generic Script Resource VB Script and the standalone executable should be placed in the Data\Public folder. This is because the script and the executable expect to reside in this location, rather than it being a requirement of the Microsoft Failover Cluster software.
To add a generic script resource, perform the following:
Start the Server Manager MMC plug-in, and expand Features, Failover Cluster Manager, Machine name, and the Services and applications node.
Right-click the required Resource Group, and select Add a resource, Generic Script.
The New Resource Wizard appears.
Enter the location and name of the VB Script in the Script file path box.
Click Next to create the resource.
Click Finish after adding the required script to the resource group.
Note: If there are issues with the script, the resource fails to Add at this point. Check the Cluster logs via the “Cluster.exe” command line utility. The Log files are in the %windir%\Cluster\Reports folder.