Article ID: 260527 - Last Review: March 1, 2007 - Revision: 2.3 Generating Notifications for an MSCS Resource ProblemThis article was previously published under Q260527 SUMMARY
When a Microsoft Cluster Server resource stop working, there are no options for notifications, alerts, or event logs to be generated. By using a Generic Application resource, you can point to a batch file that performs a notification, such as a net send command or to logging an event.
MORE INFORMATION
First, create the batch file to be used to perform the notification. In this example, a net send command is used. Or, you can use Logevent.exe from the Microsoft Windows NT 4.0 Resource Kit or the Microsoft Windows 2000 Resource Kit to log events.
Create a file named Notify.bat with the following text:
REM -- Start of NOTIFY.BAT --- NOTE: If you want multiple users to get an notification, duplicate the START /B line, and then list another contact person.@echo off REM This batch files performs a NET SEND when starteds REM In this case it sends an alert to user name of AdminUserName, REM the group being monitored is Disk Group 1. REM Type 'NET SEND /?' for more information on the NET SEND command. REM The Computername environment variable is used to provide REM information as to which node owns the resource. START /B NET SEND AdminUserName "Disk Group 1 has been restarted on NODE: %Computername%" REM A Pause is added so that the General Application resource does REM not go into a failed state in Cluster Administrator. PAUSE REM -- End of NOTIFY.BAT --- Next, create a Generic Application resource in the appropriate group:
NOTE: You will be notified of every single problem, not just failovers. (By default, a resource must stop working three times before the group fails over to the other node.) You may see a large number of alerts with individual dependencies set. For more detailed information about what causes a resource to stop working, see the event logs and the following Microsoft Knowledge Base article for information about cluster logging: 168801
(http://support.microsoft.com/kb/168801/EN-US/
)
How to Enable Cluster Logging in Microsoft Cluster Server
| Article Translations
|

Back to the top
