Forum Discussion

GuyC's avatar
GuyC
Level 2
15 years ago

Scripting and PowerShell integration

I want to run a PowerShell command at the end of the backup of each virtual machine in a policy; the PS command would update a custom field i VMware vCenter with the last backup date and status (so the calling point would obviously have to pass those as parameters).

I have a feeling this should be fairly straightforward, but I am not familiar enough with the nuts and bolts of NBU to make it work.

Can anyone point me towards some helpfulr esources, please?

  • Hi,

    Use either backup_exit_notify.cmd script or bpend_notify.bat script. These scripts are run after completion of backup on Master server and client machine respectively. Within these script you can mention the PS command to be called up after backup completion.

     

    If you want to run the PS command on Master then use backup_exit_notify.cmd script. Else, if want to run it on client, use bpend_notify.bat.

    (You can read more about these scripts under NBU Admin Guide for Windows, Vol-2:http://www.symantec.com/docs/TECH52802)

    Once one of the required script is configured, use the method mentioned in following TechNote to execute custom scripts. The custom script in our scenario will be your PS command.

    http://www.symantec.com/docs/TECH52762: How to execute custom scripts from bpstart_notify and bpend_notify

  • Hi,

    Use either backup_exit_notify.cmd script or bpend_notify.bat script. These scripts are run after completion of backup on Master server and client machine respectively. Within these script you can mention the PS command to be called up after backup completion.

     

    If you want to run the PS command on Master then use backup_exit_notify.cmd script. Else, if want to run it on client, use bpend_notify.bat.

    (You can read more about these scripts under NBU Admin Guide for Windows, Vol-2:http://www.symantec.com/docs/TECH52802)

    Once one of the required script is configured, use the method mentioned in following TechNote to execute custom scripts. The custom script in our scenario will be your PS command.

    http://www.symantec.com/docs/TECH52762: How to execute custom scripts from bpstart_notify and bpend_notify