HP P6000 Cluster Extension Software Administrator Guide (5697-2274, November 2012)

specified (there is an empty value for the object), no preprocessing or postprocessing is performed.
If the object is not defined, then the argument value is empty.
The following arguments are transferred to the scripts in this order:
1. Name (resource name)
2. Reserved
3. DR group name (DeviceGroup object)
4. Link state
5. DR mode (source/destination)
6. Log state
7. Failsafe mode
8. Failsafe lock state
9. Suspend mode state
10. Storage system WWN (local)
11. Storage system WWN (remote)
12. VCS firmware version
13. Application directory path (ApplicationDir object)
14. Log file location (LogDir object)
15. DC_A_Hosts node names
16. DC_B_Hosts node names
Pre-executables and post-executables must supply a return code. The return code is used to
determine whether a failover function is called.
Pre-execution return codes
DescriptionTextPre-execution return code
Pre-executable OK and failover action allowed.PRE_OK_TAKEOVER0
Pre-executable failed; no failover; stop application service
cluster-wide. Microsoft Cluster service does not allow
PRE_ERROR_GLOBAL1
cluster-wide or data-center-wide disabling of resources.
This is local error behavior.
Pre-executable failed; no failover; stop application service
in this data center. MSCS does not allow cluster-wide or
PRE_ERROR_DC2
data-center-wide disabling of resources. This is local error
behavior.
Pre-executable failed; no failover; stop application service
on this system.
PRE_ERROR_LOCAL3
Pre-executable failed; failover action allowed.PRE_ERROR_TAKEOVER4
Pre-executable OK; no failover; no post-exec.PRE_OK_NOTKVR_NOPST5
CAUTION: If the pre-execution program returns 1, 2, 3 or 5, a properly configured post-executable
is not executed. If a failover function fails, the post-executable is not executed.
Post-execution return codes
DescriptionTextPre-execution return code
Post-executable OK; continue.POST_OK0
Post-executable failed; stop application service
cluster-wide. MSCS does not allow cluster-wide or
POST_ERROR_GLOBAL1
Pre-execution and post-execution programs 61