cancel
Showing results for 
Search instead for 
Did you mean: 

how to perform automatic service and server restart by Netbackup

Brits
Level 6

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)

 

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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.

 

View solution in original post

10 REPLIES 10

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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.

 

Brits
Level 6

thank you Marianne. I will check the document.

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Here is the link: NetBackup Administrator's Guide, Volume II   

NetBackup notify scripts can be found in Chapter 5.

 

Brits
Level 6

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" ? 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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.

Brits
Level 6

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

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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...)

 

Brits
Level 6

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 ?

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Nope. Not VMware policy.

Only for Standard and MS-Windows policies.
See this (OLD) TN: http://www.symantec.com/docs/TECH191756 

Brits
Level 6

ok. thank you very much Marianne :)