Using state and status arguments in postscripts
The topic describes how to use state and status arguments in postscripts.
The functionality described in this topic (state and status arguments) applies only to postscripts for restore jobs. Backup jobs are not supported. Prescripts are not supported.
Certain positional arguments can be passed to a Retore job postscript for conditional logic. The arguments that can be passed are state and status. You can use the status argument, for example, if you want to perform an action only if a restore job completes successfully. Your script would perform the action only if the value of status were SUCCESS.
When passing the arguments via the Postscript field in the IBM® Storage Defender Copy Data Management user interface, the arguments must be surrounded by underscores ( _STATE_ and _STATUS_ ). When doing so, the arguments are replaced in the script with the actual corresponding values.
_STATE_ _STATUS_
state IA
status SUCCESS
Passing _STATE_ or _STATUS_ to a script for an unsupported script type (such as prescripts) or an unsupported job type (such as backup job scripts), simply passes “_STATE_” or “_STATUS_” as plain text.
An additional argument, _VOLUMES_, can also be added to a postscript to list the names of restored volumes.