Previous Topic: Creating and Executing User-Defined ScriptsNext Topic: User-Defined Script Properties


How User-Defined Scripts Work with Arcserve RHA

Scripts for use within Arcserve RHA and its prior releases must be written to return numeric codes that define success (0) and failure states (any non-zero value). The software displays return codes in the event window so you can determine immediately when and where failures occur.

Scripts follow this format:

ScriptName (full path) Arguments

The script name is the name and full path of the executable script to be invoked. Add directories to this property in the form of <drive>:\<dir>\<file.ext>. The software displays directories as <drive>:/<dir>/<file.ext>. Arguments passed to the script are static and literal values.

Scripts must have the same name and reside in the same directory on both the Master and Replica servers.

Note: You cannot run scripts that activate user interface applications on Windows x64 systems.

Scripts can be executed from different scenario properties. The following topics describe the properties and how to set scripts for each.