Error handling in custom scripts
Suggest changes
-
PDF of this doc site
- Administration for UNIX
- Installation and Setup for Windows
Collection of separate PDF docs
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
SnapManager processes the custom script based on the specific return codes. For example, if your custom script returns a value of 0, 1, 2, or 3, SnapManager continues with the clone process. The return code also influences how SnapManager processes and returns the standard output of your script execution.
Return code |
Description |
Continue processing the operation |
0 |
The script completed successfully. |
Yes |
1 |
The script completed successfully, with informational messages. |
Yes |
2 |
The script completed, but includes warnings |
Yes |
3 |
The script fails, but the operation continues. |
Yes |
4 or >4 |
The script fails and the operation stops. |
No |