child_end_deployment_notify
The child_end_deployment_notify script (on UNIX) and the child_end_deployment_notify.cmd script (on Windows) runs on the NetBackup primary server. NetBackup calls the script each time a deployment child job completes. The script runs after all other deployment steps have completed.
To use this script, copy the following file from the primary server:
On UNIX: /usr/openv/netbackup/bin/goodies/child_end_deployment_notify
On Windows: install_path\NetBackup\bin\goodies\child_end_deployment_notify.cmd
Then place the script in the following location on the primary server:
On UNIX: /usr/openv/netbackup/bin/
On Windows: install_path\NetBackup\bin\
To run properly, the script must be executable. To make the script executable on a UNIX primary server, run chmod ugo+rx child_end_deployment_notify
NetBackup passes the following parameters to the script based on the platform:
Table: UNIX child_end_deployment_notify parameters
Parameter | Details |
|---|---|
JobID | Specifies the job ID of the child job. |
GroupJobID | Specifies the child job's parent job's job ID. |
PolicyName | Specifies the policy name of the deployment policy. |
ClientName | Specifies the host name of the client as it is found in the deployment policy. |
Operation | Specifies the operations to perform: precheck, stage, and install. |
Package | Specifies the deployment policy's package. |
PrecheckStatus | Specifies the status of the precheck child job step. |
StageStatus | Specifies the status of the stage step child job step, if performed. |
InstallStatus | Specifies the status of the install child job step, if performed. |
JobStatus | Specifies the exit status code for the child job. |
Table: Windows child_end_deployment_notify.cmd parameters
Parameter | Details |
|---|---|
%1 | Specifies the job ID of the child job. |
%2 | Specifies the child job's parent job's job ID. |
%3 | Specifies the policy name of the deployment policy. |
%4 | Specifies the host name of the client as it is found in the deployment policy. |
%5 | Specifies the operations to perform: precheck, stage, and install. |
%6 | Specifies the deployment policy's package. |
%7 | Specifies the status of the precheck child job step. |
%8 | Specifies the status of the stage step child job step, if performed. |
%9 | Specifies the status of the install child job step, if performed. |
%10 | Specifies the exit status code for the child job. |