Configure Scripts

Prescripts and postscripts are scripts that can be run before or after Backup and Restore jobs run at the job-level. Supported scripts include shell scripts for Linux-based machines and Batch and PowerShell scripts for Windows-based machines. Scripts are created locally, uploaded to your environment through the Scripts pane, then applied to job definitions.

HYPERVISOR CONSIDERATIONS:

  • The user running the script must have the "Log on as a service" right enabled, which is required for running prescripts and postscripts. For more information about the "Log on as a service" right, see https://technet.microsoft.com/en-us/library/cc794944.aspx.
  • Windows Remote Shell (WinRM) must be enabled.

Upload a script:

Supported scripts include shell scripts for Linux-based machines and Batch and PowerShell scripts for Windows-based machines. Scripts must be created using the operating system's associated file format.

  1. From the navigation menu, expand Jobs and Operations, then click Script.
  2. In the Scripts section, click Upload Script. The Upload Script pane displays.
  3. In the Script field, browse for and select a local script to upload.
  4. Click Save. The script appears in the Scripts table and can be applied to supported jobs.

Set servers where scripts will be injected and executed:

  1. From the navigation menu, expand Jobs and Operations, then click Script.
  2. In the Script Server section, click Add Script Server. The Script Server Properties pane displays.
  3. Populate the fields in the Script Server Properties pane:
  4. Host Address
  5. Enter the resolvable IP address or a resolvable path and machine name.
  6. Use existing user
  7. Enable to select a previously entered username and password for the provider.
  8. Username
  9. Enter your username for the provider. If entering a SQL server, the user identity follows the default domain\Name format if the virtual machine is attached to a domain. The format <local administrator> is used if the user is a local administrator.
  10. Password
  11. Enter your password for the provider.
  12. OS Type
  13. Select the operating system of the application server. Available options include Linux/AIX and Windows.
  14. Click Save.

 


IBM Spectrum Protect Plus 10.1.2

Licensed Material - Property of IBM Corp. © IBM Corporation and other(s) 2018. IBM is a registered trademark of the IBM Corporation in the United States, other countries, or both. | 8/23/2018