Server scripts

You can automate common administrative tasks with scripts that are stored in the server database. You can schedule a script for processing by using the administrative command scheduler on the server.

IBM Spectrum Protect scripts have the following capabilities and statements:

  • Command parameter substitution.
  • SELECT commands that you specify when the script is processed.
  • Command execution control, such as PARALLEL and SERIAL processing options.
  • Conditional logic flow statements. These logic flow statements include the following statements:
    • The IF clause; this clause determines how processing proceeds based on the current return code value.
    • The EXIT statement; this statement ends script processing.
    • The GOTO and LABEL statement. This statement directs logic flow to continue processing with the line that starts with the label specified.
  • Comment lines.

Sample scripts are provided in the scripts.smp file. The sample scripts have an example order of execution for scheduling administrative commands.

If one of the specified commands in the script does not process successfully, the remaining commands are not processed.