Quantcast
Channel: Symantec Connect - Backup and Recovery - Discussions
Viewing all articles
Browse latest Browse all 8938

Nebtackup job status script

$
0
0
I need a solution

hi ,

 

i need some assistance regarding a script which i was using before netbackup upgrade 7.5

 

windows 2008 R2

netbackup 7.5.0.4

 

here is the script i am unable to run it from nbu command line

 

C:\Progra~1\Veritas\NetBackup\bin\admincmd\bperror -U -backstat -s info -hoursago 24 >> %LOGFILE%

similary i can get the output into a output file is attached

 

 

 

Script .cmd

set LOGFILE="C:\ALJScripts\Logs\status.txt"

 

echo ------------------------------------------------------------------------------------ > %LOGFILE%
echo Summary Report by Status Code >> %LOGFILE%
echo ------------------------------------------------------------------------------------ >> %LOGFILE%

bperror -backstat -by_statcode -U -hoursago 24 >> %LOGFILE%

echo ------------------------------------------------------------------------------------ >> %LOGFILE%
echo Detail Report >> %LOGFILE%
echo ------------------------------------------------------------------------------------ >> %LOGFILE%
bperror -U -backstat -s info -hoursago 24 >> %LOGFILE%
echo ------------------------------------------------------------------------------------ >> %LOGFILE%

REM echo Below Report with Kbytes Written >> %LOGFILE%
REM bperror -all -hoursago 12 | grep Kbytes >> %LOGFILE%

REM blat %LOGFILE% -t example@abc.com -subject "Backup Status for Jobs between 8:00 AM to 8:00 AM"

 

blat is configured and i m receiving emails

but this script is not running

any work around or guidance is appreciated

 

thank you

 

 


Viewing all articles
Browse latest Browse all 8938

Trending Articles