Previous Topic: Browse EventsNext Topic: How User-Defined Scripts Work with Arcserve RHA


Creating and Executing User-Defined Scripts

Though scenarios are flexible, easy to use and intuitive to create, there may be times when you need powerful customization options to extend software benefits. User-defined scripts provide such customization, allowing you to embed additional operations in your scenarios. Scripts are limited only by your operating system. If a file can be executed from the command line on a particular host, it can be applied as a script within a scenario.

Scripts work in all product releases.

You can use batch files (.bat or .cmd), VBScript (.vbs) with Cscript.exe, or PowerShell (.ps) scripts with Arcserve RHA. Arcserve RHA r12.x and later versions include a PowerShell snap-in. Shell scripts (.sh) can be used on UNIX systems.

Example

You can create a batch file (example.bat) that executes a VBScript file with Cscript. To do so, first call the Cscript executable and then pass the VBScript file as a file call. Specify the batch file name in the Script Name (full path) field in the appropriate scenario property.

This section contains the following topics:

How User-Defined Scripts Work with Arcserve RHA

User-Defined Script Properties