This parameter is used only when the CMON configuration parameter is set to 1 (the recommended setting), and when the CMON thread that monitors the health of the Adaptive Server fails to start. See “[CONFIG]” for details about the CMON parameter.
CMON_FAIL_ACTION is
not specific to only mutually-aware OpenSwitch servers; it applies
to all OpenSwitch servers with CMON set to
1.
Use:
DEFAULT – to try and restart the CMON connection. If the problem has been resolved, OpenSwitch continues with its normal activity. If the problem is unresolved, OpenSwitch fails the client over to the next server.
CUSTOM, MANUAL, or CUSTOM_MANUAL – to execute a user-specified custom or manual script with a reason code of 1000, 1001, 2000, or 3000. See Table 6-3 for descriptions of the reason codes. OpenSwitch is suspended and waits indefinitely until the system administrator executes rp_go.
OpenSwitch currently supports only the DEFAULT action
for CMON_FAIL_ACTION.
See “User-specified actions” for additional details about these actions.
Use an exit code of 0 (zero). For CMON_FAIL_ACTION, the exit code only provides a way to notify the administrator how the script ran. Regardless of the exit code you provide, CMON_FAIL_ACTION performs the DEFAULT action after the script executes.