https://github.com/tksh164/wsfc-generic-script-sample
Sample script for generic script resource in Windows Server Failover Cluster
https://github.com/tksh164/wsfc-generic-script-sample
jscript sample windows-server wsfc-cluster
Last synced: 1 day ago
JSON representation
Sample script for generic script resource in Windows Server Failover Cluster
- Host: GitHub
- URL: https://github.com/tksh164/wsfc-generic-script-sample
- Owner: tksh164
- License: mit
- Created: 2018-12-05T15:49:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-08T15:28:35.000Z (over 7 years ago)
- Last Synced: 2025-11-10T16:26:16.506Z (7 months ago)
- Topics: jscript, sample, windows-server, wsfc-cluster
- Language: JavaScript
- Homepage:
- Size: 130 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sample script for generic script resource in Windows Server Failover Cluster
## Wait time in Online call
The Online call handler in this script has the wait time capability. You can set the wait time in seconds via OnlineSleepSeconds resource parameter using regedit.exe.

## Cluster log
This script writes some logs into the cluster log.
```
INFO [RES] Generic Script : Script-wide code begins execution.
INFO [RES] Generic Script : Entering Open function of [GenericScript Script (undefined)].
INFO [RES] Generic Script : Added OnlineSleep property. The Value is 1.
INFO [RES] Generic Script : Entering Close function of [GenericScript Script (undefined)].
INFO [RES] Generic Script : Entering Online function of [GenericScript Script (S:\GenericScript.js)].
INFO [RES] Generic Script : Entering LooksAlive function of [GenericScript Script (S:\GenericScript.js)].
INFO [RES] Generic Script : Entering IsAlive function of [GenericScript Script (S:\GenericScript.js)].
```