Video Screencast Help
Give us your opinion and win with Symantec! Please help us by taking this survey to tell us about your experience with Symantec Connect, so that we can continue to grow and improve.  Take the survey.

upgrade to 7.5.0.4

Created: 12 Feb 2013 | 4 comments

Hi

After upgrading to 7.5.0.4 from 7.5.0.3 EV Phaze acript stopped working  (parent_start_notify)

Any idea?

Cheers,

Itai

Discussion Filed Under:

Comments 4 CommentsJump to latest comment

RamNagalla's picture

does it customised scirpt? imean have added any  other commands into it?

Itai's picture

good question

here it is

@echo off
if "%2" == "EV_Phase1" goto phase2
if "%2" == "EV_Phase2" goto phase3
if "%2" == "EV_Phase3" goto phase4
goto End
:EV_Phase2
cmd /C "F:\Program Files\Veritas\NetBackup\bin\bpbackup" -i -p EV_Phase2 -s Full
goto End
:EV_Phase3
cmd /C "F:\Program Files\Veritas\NetBackup\bin\bpbackup" -i -p EV_Phase3 -s Full
goto End
:EV_Phase4
cmd /C "F:\Program Files\Veritas\NetBackup\bin\bpbackup" -i -p EV_Phase4 -s Full
:End

@REM
@REM $Header: parent_start_notify.cmd,v 1.2 2006/02/16 22:44:00 $
@REM
@REM bcpyrght
@REM ***************************************************************************
@REM * $VRTScprght: Copyright 1993 - 2012 Symantec Corporation, All Rights Reserved $ *
@REM ***************************************************************************
@REM ecpyrght
@REM
@REM parent_start_notify.cmd
@REM
@REM This script is called by the NetBackup GenBackupJob (nbjm), after the parent job starts.
@REM validation.
@REM
@REM NOTE:  this script will always be run in "background" mode, meaning that
@REM        GenBackupJob (nbjm) will NOT wait for it's completion.
@REM
@REM This script:
@REM receives 6 parameters:
@REM  %1 = CLIENT           - the client hostname
@REM  %2 = POLICY           - the policy label
@REM  %3 = SCHEDULE         - the schedule label
@REM  %4 = SCHEDULE_TYPE    - the type of schedule:  FULL INCR UBAK
@REM                                                 UARC
@REM  %5 = STATUS           - the backup status for this job
@REM  %6 = STREAM           - the backup stream number for this job always -1
@REM
@REM - Main program ------------------------------------------------------------
@REM -
@REM - This script only runs on NT 4.0 and succeeding versions of NT.  You must
@REM - have command extensions enabled.  Check the following registry entry:
@REM -
@REM - HKEY_CURRENT_USER\Software\Microsoft\Command Processor\EnableExtensions
@REM -
@REM - It should be set to 0x1 or you may have problems running this script.
@REM ---------------------------------------------------------------------------
@setlocal ENABLEEXTENSIONS
@set LISTPATHS="%~dp0\goodies\listpaths"
@for /F "delims=|" %%p in ('%LISTPATHS% /s NB_MAIL_SCRIPT') do @set NB_MAIL_SCRIPT="%%p"
@set OUTF="%~dp0\PARENT_START_CALLED"
@REM ---------------------------------------------------------------------------
@REM - Get date and time.
@REM ---------------------------------------------------------------------------
@for /F "tokens=1*" %%p in ('date /T') do @set DATE=%%p %%q
@for /F %%p in ('time /T') do @set DATE=%DATE% %%p
@REM ---------------------------------------------------------------------------
@REM - Check for proper parameter use.
@REM ---------------------------------------------------------------------------
@if "%6" == "" goto BadParams
@if "%7" == "" goto GoodParams
:BadParams
@echo %DATE% parent_start_notify expects 6 parameters: %* >> %OUTF%
@goto EndMain
:GoodParams
@REM ---------------------------------------------------------------------------
@REM - You may want to delete the output file elsewhere in order to
@REM - accumulate successful backup information.  If so, delete the
@REM - following line or move it to where it will do the most good.
@REM ---------------------------------------------------------------------------
@if exist %OUTF% del %OUTF%
@REM ---------------------------------------------------------------------------
@echo %DATE% ----------------------------- >> %OUTF%
@echo %DATE%        CLIENT:  %1 >> %OUTF%
@echo %DATE%        POLICY:  %2 >> %OUTF%
@echo %DATE%      SCHEDULE:  %3 >> %OUTF%
@echo %DATE% SCHEDULE TYPE:  %4 >> %OUTF%
@echo %DATE%        STATUS:  %5 >> %OUTF%
@echo %DATE%        STREAM:  %6 >> %OUTF%
@echo %DATE% ----------------------------- >> %OUTF%
@REM ---------------------------------------------------------------------------
@REM - might want to mail this info to someone
@REM -
@REM - @call %NB_MAIL_SCRIPT% someone_who_cares "NetBackup parent start notify" %OUTF%
@REM ---------------------------------------------------------------------------
:EndMain
@endlocal
@REM - End of Main Program -----------------------------------------------------

watsons's picture

I am not WIndows expert, but your script does not look it will do anything..

if "%2" == "EV_Phase1" goto phase2
if "%2" == "EV_Phase2" goto phase3
if "%2" == "EV_Phase3" goto phase4

Should it be changed to following instead?

if "%2" == "EV_Phase1" goto EV_Phase2
if "%2" == "EV_Phase2" goto EV_Phase3
if "%2" == "EV_Phase3" goto EV_Phase4

Itai's picture

Hi

The script worked very well..until upgrade to 7.5.0.4....upgrade was because of SLP bug...solved one thing..created a new problem.. :(