Please enter search query.
Search <product_name> all support & community content...
Article: 100029405
Last Published: 2009-01-03
Ratings: 0 1
Product(s): NetBackup & Alta Data Protection
Problem
How to execute custom scripts from bpstart_notify and bpend_notify
Solution
Note:
Cohesity does not support any scripts that are modified from the default NetBackup script provided. The scripts can be adapted to provide an added service to the NetBackup program, however, these modifications will not be supported, and a default copy of the script must be available at all times to aid troubleshooting problems.
For UNIX:
For UNIX:
Look for the
following lines in your
bpstart_notify
and
bpend_notify
scripts and add the
absolute path of custom script file as shown below.
Note :
/<custom_script_directory>/custom_script is the absolute path and it needs to be added exactly under
#main script starts here
line under the script.
Example :
bpstart_notify.bat
<SNIP>
#--------------------------------------------------------------------
#main script starts here
#--------------------------------------------------------------------
/<custom_script_directory>/custom_script <---- Add this line, absolute path to your script
umask022
if[ "$#" -ne 5 ]
then
exit1
fi
</SNIP>
For
Windows:
Look for the following lines in your scripts and add the full path of your .bat file as shown below.
Example : bpend_notify.bat
<SNIP>
@REM--------------------------------------------------------------------
@REMmain script starts here
@REM This is a simple script that records what kindof backup will be done along
@REM with other relevant information (Clientname, policy name, etc) and
@REM appends the information to the resultsfile
@REM--------------------------------------------------------------------
"<Custom Script Directory>\ CustomScript1.bat" <---Add this line to the script.
if "%4" == "FULL" goto FULL
if "%4"== "CINC" goto CINC
if "%4" == "" goto FAIL
</SNIP>
Note : "<Custom Script Directory>\CustomScript2.bat" is the absolute path and it needs to be added exactly after the @REM-------------------------------------------------------------------- lines.