What are the valid exit codes for custom monitor, online and offline scripts?

Article:TECH18594  |  Created: 2002-01-25  |  Updated: 2007-01-20  |  Article URL http://www.symantec.com/docs/TECH18594
Article Type
Technical Solution


Environment

Issue



What are the valid exit codes for custom monitor, online and offline scripts?

Solution



Monitor Script Exit Codes

Custom monitor scripts use exit codes to let VERITAS Cluster Server (VCS) know the status of the resource or process that is being monitored. The values that VCS is expecting as return values are listed below with their meaning:

100 - indicates that the resource is offline.
101 - indicates that the resource is online and has a confidence level of 10.
102 - indicates that the resource is online and has a confidence level of 20.
103 - indicates that the resource is online and has a confidence level of 30.
104 - indicates that the resource is online and has a confidence level of 40.
105 - indicates that the resource is online and has a confidence level of 50.
106 - indicates that the resource is online and has a confidence level of 60.
107 - indicates that the resource is online and has a confidence level of 70.
108 - indicates that the resource is online and has a confidence level of 80.
109 - indicates that the resource is online and has a confidence level of 90.
110 - indicates that the resource is online and has a confidence level of 100.

If the exit values returned is not one of the values listed above, then the status is considered unknown (typically a value of 99 is used).

Use confidence levels of less than 100 for monitor cycles that only do a quick check of online status. Use the confidence level of 100 to indicate there is no doubt that the resource is online and functioning properly. The higher the confidence level, the more assured VCS is that the resource is online and functioning properly.

Online and Offline Exit Codes

Custom online and offline scripts use exit codes to let VCS know the number of seconds to wait after the online or offline script ends, before trying to monitor the resource status. For example, an exit code of 60 tells VCS to wait 60 seconds after the online or offline scripts ends, before running the monitor script to determine if a resource is online or offline. The typical return value is 0, which tells VCS to check the resource status immediately.



Legacy ID



245024


Article URL http://www.symantec.com/docs/TECH18594


Terms of use for this information are found in Legal Notices