06-08-2015 01:10 AM
Hi Team ,
Is there any possibility in NetBackup to perform the following -
Shutdown Service (any service in client Machine)
Perform Backup (client Machine)
Start Service (client Machine)
Restart Server (automatic restart of client machine by NetBackup)
Solved! Go to Solution.
06-08-2015 01:21 AM
a) Shutdown Service (any service in client Machine)
Yes - via bpstart_notify script
(See NBU Admin Guide II for details)
b) Perform Backup (client Machine)
Yes - via NBU policy
c) Start Service (client Machine)
Yes - via bpend_notify script
(See NBU Admin Guide II for details)
d) Restart Server (automatic restart of client machine by NetBackup)
This is not the role of a backup application.
06-08-2015 01:21 AM
a) Shutdown Service (any service in client Machine)
Yes - via bpstart_notify script
(See NBU Admin Guide II for details)
b) Perform Backup (client Machine)
Yes - via NBU policy
c) Start Service (client Machine)
Yes - via bpend_notify script
(See NBU Admin Guide II for details)
d) Restart Server (automatic restart of client machine by NetBackup)
This is not the role of a backup application.
06-08-2015 01:58 AM
thank you Marianne. I will check the document.
06-08-2015 03:08 AM
Here is the link: NetBackup Administrator's Guide, Volume II
NetBackup notify scripts can be found in Chapter 5.
06-08-2015 05:46 AM
please help to clarify -
if policy name is test_backup for which i need to set stop and start service , the scipt name will be bpstart_notify.test_backup.bat and bpend_notify.test_backup.bat. is it correct ?
while renaming the script , If I donot add ".schedule" , will backup run for all defined schedules in the policy "test_backup" ?
06-08-2015 06:02 AM
Correct.
Best to config policy to run as single stream, NOT multi-stream.
The notify scripts run for each stream.
There are many queries on this forum on how to ensure start-notify only runs on 1st stream and end-notify only runs on last stream, but configuration is 'tricky' and requires good scripting skills.
06-08-2015 06:34 AM
Thank you Marianne.
Does this script work for Vmware policy also or it only works for netbackup client agent based backups ?
Please verify if the following steps are correct -
1. copy "bpstart_notify.bat" & "bpend_notify.bat" from goodies to bin.
2. rename the "bpstart_notify.bat" to "bpstart_notify.test_backup.bat" (for specific policy "test_backup")
rename the "bpend_notify.bat" to "bpend_notify.test_backup.bat" (for specific policy "test_backup")
3. edit the file "bpstart_notify.test_backup.bat" as -
<<Add complete path and name of the .exe to stop the application service running on client>>
@if "%4" == "FULL" goto FULL
@if "%4" == "CINC" goto CINC
@if "%4" == "" goto FAIL
4. edit the file "bpend_notify.test_backup.bat" as -
<Add complete path and name of the .exe to start the application service running on client>
@if "%4" == "FULL" goto FULL
@if "%4" == "CINC" goto CINC
@if "%4" == "" goto FAIL
06-08-2015 06:52 AM
1. copy "bpstart_notify.bat" & "bpend_notify.bat" from goodies on the master server to bin on the CLIENT.
The script looks good.
You can also search this forum for sample scripts.
Like this one:
https://www-secure.symantec.com/connect/forums/need-know-how-run-bpstartnotify-script
(There are more...)
06-08-2015 07:25 AM
ahh....the script needs to run on client machine. thank you for correcting.
one last question - Does this script work for Vmware policy (agentless backup) or it only works for netbackup agent based backups ?
06-08-2015 07:30 AM
Nope. Not VMware policy.
Only for Standard and MS-Windows policies.
See this (OLD) TN: http://www.symantec.com/docs/TECH191756
06-08-2015 07:32 AM
ok. thank you very much Marianne :)